patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Gaetan Rivet <gaetan.rivet@6wind.com>
To: dev@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>, stable@dpdk.org
Subject: [dpdk-stable] [PATCH v4 1/9] bus: fix bus name registration
Date: Thu,  8 Jun 2017 01:56:01 +0200	[thread overview]
Message-ID: <3483427e578a4b9c3ff42e7aee98027bd6ff9be0.1496876810.git.gaetan.rivet@6wind.com> (raw)
In-Reply-To: <cover.1496876810.git.gaetan.rivet@6wind.com>
In-Reply-To: <cover.1496876810.git.gaetan.rivet@6wind.com>

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 <gaetan.rivet@6wind.com>
---
 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 cb44e46..7264e3f 100644
--- a/lib/librte_eal/common/include/rte_bus.h
+++ b/lib/librte_eal/common/include/rte_bus.h
@@ -247,7 +247,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

  parent reply	other threads:[~2017-06-07 23:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1495629122.git.gaetan.rivet@6wind.com>
2017-05-24 15:12 ` [dpdk-stable] [PATCH " Gaetan Rivet
     [not found] ` <cover.1495642202.git.gaetan.rivet@6wind.com>
2017-05-24 16:15   ` [dpdk-stable] [PATCH v2 " Gaetan Rivet
     [not found]   ` <cover.1496311609.git.gaetan.rivet@6wind.com>
2017-06-01 10:08     ` [dpdk-stable] [PATCH v3 " Gaetan Rivet
     [not found]     ` <cover.1496876810.git.gaetan.rivet@6wind.com>
2017-06-07 23:56       ` Gaetan Rivet [this message]
     [not found]       ` <cover.1497999826.git.gaetan.rivet@6wind.com>
2017-06-20 23:30         ` [dpdk-stable] [PATCH v5 1/7] " Gaetan Rivet
2017-06-27 15:53           ` [dpdk-stable] [dpdk-dev] " Bruce Richardson
2017-06-27 19:19           ` Jan Blunck
2017-07-04  1:05             ` Gaëtan Rivet
     [not found]         ` <cover.1499127915.git.gaetan.rivet@6wind.com>
2017-07-04  0:58           ` [dpdk-stable] [PATCH v6 1/6] " Gaetan Rivet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3483427e578a4b9c3ff42e7aee98027bd6ff9be0.1496876810.git.gaetan.rivet@6wind.com \
    --to=gaetan.rivet@6wind.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).