From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 9FF7E2A58 for ; Tue, 4 Jul 2017 02:58:48 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id w126so181565976wme.0 for ; Mon, 03 Jul 2017 17:58:48 -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=RdqXrAHks9sxn8qLO9/pIQjW93wQYBDt7n8NAdQTlzA=; b=AbGlbh/D+nlMvgDWV2okIJwuCMmNGe+UgMssOWHQjGK0DzDzqRmZILlDiz9G71clru ohXCAtV1tiWehjUstSzHW5nCD0HrxTP6xn/3FqJmVn+ZE/LQXUVxBAHaDysFinvzPD07 kxadG15N0WqiJJbIqvnfDaoaYCDlTktGcN3/YjpI6XxZiMKsZKpQemiTuiTe5VIYtKyL A863J7hNlY/AVML/9XtONiUhcvXnCwOqt1od8xpj0sF9sQzd+sMX+aqXa/MJdjwAVD98 xYpGg+JueLIjhP6fnPyFMaKGGg8Yo6zYFjwis6DH19IZ2b3RHOuUA0DMZR4d1+bVHWEE 8o7A== 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=RdqXrAHks9sxn8qLO9/pIQjW93wQYBDt7n8NAdQTlzA=; b=R0XxjIrJOcTc3zpgR4SRyUeyBDSUuvkPh/Ldfp27tgKXtebkxNWRc0GaVZsjQnRaO7 5U+HzjqZdjTTiU22OnFwbXUxFaY2HGIxRVsCwB58QWAo/9gK5AAge4t2+RR0sIIcDhTp Fi94A8Qallxir1IQ422v2twDssdc/4xdOebi2T9FHBvBLsFTUmoptPeVb2+ypXDKyWVR mn5/vb/bTWhdtP8xIo+IXbuPKrvccteoP5kRLzt/GCN1M3M28Qx27bfa1xTjbMc2nsWM uWZZzi6xpoVkSLBrZdwtHqQpCmCjFR8+ZIe+6Gg8VxNButt4wV45VjyXTyJq/2S2ls5r I7kA== X-Gm-Message-State: AKS2vOxgTqwrb1fbmXbcWcH1azpNupH6JdPrUqeCjY/U1HLtds3ULqk2 dVKpHQ5UHHorf45Htwo= X-Received: by 10.28.63.139 with SMTP id m133mr17400291wma.63.1499129927953; Mon, 03 Jul 2017 17:58:47 -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 n189sm15162731wmd.0.2017.07.03.17.58.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Jul 2017 17:58:47 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , stable@dpdk.org Date: Tue, 4 Jul 2017 02:58:28 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Subject: [dpdk-dev] [PATCH v6 1/6] 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: Tue, 04 Jul 2017 00:58:48 -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 34ea9d5..c1c8fa5 100644 --- a/lib/librte_eal/common/include/rte_bus.h +++ b/lib/librte_eal/common/include/rte_bus.h @@ -258,7 +258,7 @@ struct rte_bus *rte_bus_find_by_name(const char *busname); #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