From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) by dpdk.org (Postfix) with ESMTP id 227D77CFF for ; Wed, 24 May 2017 17:12:53 +0200 (CEST) Received: by mail-wr0-f169.google.com with SMTP id j27so3148419wre.1 for ; Wed, 24 May 2017 08:12:53 -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=ouEd6UnkRh7OMCkxJimhXtGUeNjxAkHZWS860gHelZo=; b=EouIyLd3Fnu0goPKckc0NTKyRXeqFETGa6sjylopd9RVFglCD0eOfCX1h5g9xYdFHh xFVMOVEKQ+FBLVaelSiOyRGnjkyN1pmx8QHPqJIvA7t5vmyALA9AhaC1jsPJN7Gov+yI a0QrjQXyPdyc61d1Z0jEzbCbWlU8G0D/kuCqz9hKPCnsErpR5eC44ensfRiRfvn/9i/y fGWz/yxGPL5x3uGv1p0/7q1u6j4OKY3JjFPUB0LYyczuBvfF1heS2l2alxclghsG4azS JuJlVKTM2Ny6YMhIgjGiqaZxRpkXxYwLzXVrxTpcMa9bTYkKx5uXSP+x1do0D8dgM8FI 2fhw== 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=ouEd6UnkRh7OMCkxJimhXtGUeNjxAkHZWS860gHelZo=; b=IxyIVMThb13P4zRbJNFW1heU7ykKWc0cNC8bLn7g37TiORVDHerXqgOBAvRMA5oHtO ZWaUL5FsyK+ozvv5KfhEPOKCzrO/MO7C5gAf1xex250/trA+1ZAZr1GeXYk9qc1y+WYP QgBaZSFYjsVgX+MWbsjKEbQNHyuKXmunvXgHM9rvvITSZ6X8TJxdIFFSxW4WimrNImcy 27Aa15qZfANIVtwNdq8NWt+x9cGbr9Tct90+WVVDVF0op8uaiqX0QM/7wOEoe88WTUpN ATYfFfWvb3uYF3Nw1yEYT7rwe+ynoYsgUoKljxilo912p69VWoLxVuIVzuQc7Qus+y7y Ho/w== X-Gm-Message-State: AODbwcDP6/VEq7tCGjhEb6E4iV+TbAyAxWB7SqCV5jbW3AiHMo34B9C0 4oh84TY/+yryZ3gS X-Received: by 10.223.134.153 with SMTP id 25mr19434516wrx.29.1495638773691; Wed, 24 May 2017 08:12:53 -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 9sm5633351wmh.17.2017.05.24.08.12.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 08:12:52 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , Jan Blunck , Stephen Hemminger , Maxime Coquelin , Jerin Jacob , David Marchand , stable@dpdk.org Date: Wed, 24 May 2017 17:12:33 +0200 Message-Id: <97e7e3c451a3253ebfcb2fcfd2be9f6c140b4cb1.1495629122.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 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: Wed, 24 May 2017 15:12:54 -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 201b0ff..3893ad6 100644 --- a/lib/librte_eal/common/include/rte_bus.h +++ b/lib/librte_eal/common/include/rte_bus.h @@ -222,7 +222,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