From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 6ABE72C8 for ; Tue, 4 Jul 2017 02:58:48 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id w126so181565910wme.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=DTfYWuECVC8hafsTBsysdJEp5ihqgA3CRb+v9zOkAyObkZx47hM8LPjlDdch4WXwjS 87tlyErTHg10dwbLw/Zuek0XZlMUvX4w/pjSIG5r2CVYjV8k3P5i61EZVlOCHgy5HVfp E/MNTiI1jgdJQ4agwgdfvXHFxWA6nvHLKQ6X8+y0zBV98M96FCPSNLGaCBPsYwq5eoZ4 0s1C28oRvYVkk3qgJndiH1C//Q3gXhn721YIFTzt6lYlO9lZiCHsz2GVdxJNKgoWnjo2 oCyG2vpvLJKSI7eEHsBk0BUH2oFnFbPoB8YKWfGyvQJM3HSeuKTe1yDb/wNoWpP5r53/ aEZg== X-Gm-Message-State: AKS2vOzB7kOh3GXam2m07t64w0V6ZYYJMCRx052q64+/2dg+BasIqCk7 fS5zMfL3z7auMqJz 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-stable] [PATCH v6 1/6] 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: 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