From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 9D95A7CA9 for ; Thu, 1 Jun 2017 12:09:10 +0200 (CEST) Received: by mail-wm0-f44.google.com with SMTP id d127so53520142wmf.0 for ; Thu, 01 Jun 2017 03:09:10 -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=ZvziaMdLfh1L969baoTexoswKU5vyNBXkTR58c8v3EQ=; b=pWOIpWnHB1w1pTmnRjFDLxryL9BN7s/yJzLsGLYKn0cKtmj4X2fYfVEWVkyxOllgah uu6KjksQfFLpB71N9AS3Fdr0SGrJUQyHg2G4vXXQ5b8nlc4tgsyq+r/7+XObYaHm9zBB p8skhICkJLf2TxyM9fTli25wFIf9NZZALg76Tk3h1NNGr1/A7erspxtA41jbQRxUfAv9 dHIutHvIoAPNhjyCZSOGq8MN9vP+QNocPTx905nwn3LdXNnywzo+GKsZdycaWjcGpu6m 7kyDsIQWuvOG+fYdAg3cqfWG5zbojmgiLBd1MxpxkchLmw7qr+GHNph3kfu9916BIMzX B0Gw== 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=ZvziaMdLfh1L969baoTexoswKU5vyNBXkTR58c8v3EQ=; b=jmiJgMdXTuy3tOtf2Rs00vJDfUcoIu5+gXVCz3TbZcJ1XfuFyuqwHk8yazN5C07gqD H7Ar2SCM6beAJ83MtyF9MDhw1ZMCRIBUCGdVCKLIoGA/MlB1HeFC4Im2WVUEle3JiWOy 00Na25JYrBQmFDbjmljrA/cSn/6p3Px+d7z+S9+Rbt24fF2UMFGr3gscnqOrcJaN69KQ E3MwdF9XqUkJoNzD75pCFBhpTa57IOClmwBoeeMpToQhueKsALCVbLSGugN1QBm3yu8L NioA1WUbOMSTeSExeW9F+tDRN7yZLd9zk+QPFU3j0I17qGfx5q54Lw9Lao9I0PxsZFCe AmUg== X-Gm-Message-State: AODbwcAbQZchfhnmD4hVXofGxSaDIfd4fkVymO7Jm3XWZ0MOSXPcMtPB pBaemNlInJntXPAIhD4= X-Received: by 10.28.214.211 with SMTP id n202mr989445wmg.105.1496311749881; Thu, 01 Jun 2017 03:09:09 -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 r10sm24305457wmd.9.2017.06.01.03.09.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 03:09:09 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , stable@dpdk.org Date: Thu, 1 Jun 2017 12:08:51 +0200 Message-Id: <5a4212c15c605fa66ec0ffc9188c52f1d04045b0.1496311609.git.gaetan.rivet@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-stable] [PATCH v3 1/9] bus: fix bus name registration X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2017 10:09:11 -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 3c59fc2..3bc4e1c 100644 --- a/lib/librte_eal/common/include/rte_bus.h +++ b/lib/librte_eal/common/include/rte_bus.h @@ -234,7 +234,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