From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 762886841 for ; Thu, 1 Jun 2017 12:09:10 +0200 (CEST) Received: by mail-wm0-f54.google.com with SMTP id b84so151966129wmh.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=oAz1w90VrttOyCDxXnezQoYuDrdQWDu28WV8CZuXz8Li8bGJrzmeP0PF77d/pyzUhW tvmIJ/gHfILn1Eif7/TlB1VLl6pbCVSR3i7R7exP0pO8NhtqlgleurQ1WESyT/bXB6NU 8asMilLhguWa4sD8pbpGYICzHraj4pk7V9AFeLvNfp6vPkrU1L0Uy4WEMI6vW65oJDmY rbA0XjbZS12hBXEWmsadtZmXOiwPVB42RtPIqpuzafQxPmHg3eDzN/j9cu/l4fA9vszD IeFW5XVsRhlB83qPTAQUWp7Y4bra40ya7EaUDIJ90lzTT2mJzbOFUq5taxBpL6wtk2V/ NMUQ== X-Gm-Message-State: AODbwcBbtWxmfznmGAesthAtoHnFXUoVoclIi6fhHkvDLze2czL1igrK r/CSLwsB8vuue8CxnNA= 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-dev] [PATCH v3 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: Thu, 01 Jun 2017 10:09:10 -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