From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by dpdk.org (Postfix) with ESMTP id EE9F223B for ; Wed, 24 May 2017 18:16:04 +0200 (CEST) Received: by mail-wm0-f53.google.com with SMTP id e127so79906915wmg.1 for ; Wed, 24 May 2017 09:16:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ouEd6UnkRh7OMCkxJimhXtGUeNjxAkHZWS860gHelZo=; b=raN3r9Hw6zI4QP40yKl5fDvT5EvULQLNTWE42k6wOdjVsA/YQYaEur+M1Ksbeh2PgO aIHVCbIO4H5w2fOtHYg/eTuzPC6N3o3LQOJi/mGb2RdMZbk8W/Zln2eHVOGG27luJco5 qp2pXMCfrsOB5COBNPpYIHwJMAan0HUUBfPKFOt6KU2b5CRumpHNtbR9iw0kXJ+96VN3 Mm+z+YCOcB18jcKun0u1D159kpC/jAPnDovf3MMbyaIGHgQ/29Cok859MPRa04s8NKdm UCKv2gHkUg9uxpQhzICrXSNViWNgpCYzN07t4lKTyksvxa3WaeDJiKz3IFOcdn140GYL uZGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ouEd6UnkRh7OMCkxJimhXtGUeNjxAkHZWS860gHelZo=; b=JJVlNWhwRAuQ641ChS2TGxKhR6DG4t3ysX+PDAM1wpu68zCkJf5r5DOIxr/2YL2hSo K5SzChijBxmR54wi8A2Saea7ZhdAZl3Zxkskyi7iWMt7pasT0fTJX8H+zk0imWbBpDTg 2HlajxkkPJc8Ub81OSlyq+6p1seVJdo6H0nvWKPVQUXy+Ca+m77WeCXkAbgu4vRrbJxp xjWvNIiSr4RWpwN4z/mkJDeDkABC2eS88Vo1cBPZYY/TQVOxwoy0lJuGza24Y20Ub1YU aHIwFRTAa6KX9GDBY2eI1eHyODLB7Kpv8FKz8QPYc1zlnRHl6eSLtzSPJRarDmrQWSuE 8mDw== X-Gm-Message-State: AODbwcCS74awEefRF9C+uLWp7cy1ruIcoj3Q93PfzNd84YYqF+q4Cs9D JGG89hFoHGzyIrif X-Received: by 10.28.97.134 with SMTP id v128mr6869325wmb.58.1495642564679; Wed, 24 May 2017 09:16:04 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id l7sm7783055wrc.52.2017.05.24.09.16.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 09:16:03 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , stable@dpdk.org Date: Wed, 24 May 2017 18:15:44 +0200 Message-Id: <6899b9c2d77945f77d2b95b7622f65cf36d3dfab.1495642202.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v2 1/9] bus: fix bus name registration X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 May 2017 16:16:05 -0000 The default bus registration function should not result in buses registering with double quotes within their names. Fixes: a97725791eec ("bus: introduce bus abstraction") Cc: stable@dpdk.org Signed-off-by: Gaetan Rivet --- lib/librte_eal/common/include/rte_bus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h index 201b0ff..3893ad6 100644 --- a/lib/librte_eal/common/include/rte_bus.h +++ b/lib/librte_eal/common/include/rte_bus.h @@ -222,7 +222,7 @@ struct rte_bus *rte_bus_find_by_device(const struct rte_device *dev); #define RTE_REGISTER_BUS(nm, bus) \ static void __attribute__((constructor(101), used)) businitfn_ ##nm(void) \ {\ - (bus).name = RTE_STR(nm);\ + (bus).name = nm;\ rte_bus_register(&bus); \ } -- 2.1.4