From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by dpdk.org (Postfix) with ESMTP id 35D3C7D00 for ; Wed, 24 May 2017 17:12:53 +0200 (CEST) Received: by mail-wr0-f172.google.com with SMTP id w50so56962197wrc.0 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=bDwHD1NJ7ldG1pBpIHrz8s4dBPgDLQlVIaemqxE12163XXj/WcWA55L1W1o6FpDyP6 wABacZFkhJxfEtrdEOc8XpRuenPIJ2AT9nurwBAyVURi94KPWCZOmWPCypKduI38XIO1 QpGUhhS5fNKN4LJJY1UR6Hg4NecBXVafdKdFwdrZfPLLPDmO18xamh1KyXLS5Am1d0F1 6fyNqAHmJVRGJ0tzPQnG/rlvpTNlSVIkyLxJWVW0Zw7sCAZ4JXIlEDyd9EBMNN+t0SYv 4arzaMgi1SZtJCMWYaaVzW8eW/+9fE9Vb70HDok0GCDlHtQXTt/RhfqhL0iu5uSJs7XF 03Nw== X-Gm-Message-State: AODbwcC1KZTIuPr6/9oyx4ivrtzEtSwgeOSREN+afP6DkOFs0rwiIMcZ PRY4gSXZJBrmDZGS 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-stable] [PATCH 1/9] 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: Wed, 24 May 2017 15:12:55 -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