From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f171.google.com (mail-wr0-f171.google.com [209.85.128.171]) by dpdk.org (Postfix) with ESMTP id 314622BBD for ; Thu, 8 Jun 2017 01:56:23 +0200 (CEST) Received: by mail-wr0-f171.google.com with SMTP id q97so12018348wrb.2 for ; Wed, 07 Jun 2017 16:56:23 -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=nlAZPQQD10TuAP6A/NAcdPZcJ5hF9CoZ0EOZQyVGohg=; b=fAwlPdLlWQj9JRCGSyx3YPxpRnPaOw1kkLR7Va3MGYzBmaGhD7XCR5LdXu13FYfmak SNsyJM4OrE37a12ixcYoP4gb597e2CMfiP+10wSx/zYkWxP4iNZ3U7V2jDkbjwkCBQof ex0iL9bR+YJ1IqOlRILh79Kml3+BsuYfCovmAhTxNh5g8cV6Xqxh1izOGWkjPbKm1NsJ Td20S1cbli2nIvNLtPmOp2pq8E32I10dyDsAwFcjtkmGEzhUjDugYxW6dd7DhUKZNiz6 zdIbbgzSj1aiiYJVZs0087CKEa/KfLiIebqKwSlTyIjhKKF05nYGaARlpgm1j5VsuYrn 8oDw== 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=nlAZPQQD10TuAP6A/NAcdPZcJ5hF9CoZ0EOZQyVGohg=; b=DE3+eEo5m5ReaakF0rIB1lw0eAhzuOx1q9WflpnNoKCcR0uY5Ua2ZEX2v2Ilk3MNsk WzbAeN7L0MwcfBaG+FhiMDQxHiHzpp/+5OYBtINJFzQ6H8siKrZbskOduZHsuYON7KrB ORnCkGeo9RJZbhytPK7gR/8oQxjqbvXdRfO+E9Ju3iK+k/8+hboI6VtwvoRZfo5AmNbZ F8bOK5i7UV+64r+B5rQ8RDBuD+hYjKjp7qfI/GlWNqNsVee+7z/B4+D1aGSx3s//Dkc6 O+5rYJH/M3rB16jT7wRb7Ez+QPxuBha4z4y3WxIsJ/Ccm7dGfi6QALcUuP3duoHF1zXe sTSQ== X-Gm-Message-State: AODbwcByJJPqkTqG/+NXEg3cPW2lLx30/bD5Nk5bgC3UC+XJ32/ZCXoR +4TZF85z1vMMF06vieg= X-Received: by 10.223.129.183 with SMTP id 52mr10637347wra.71.1496879782688; Wed, 07 Jun 2017 16:56:22 -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 m40sm2624808wrm.4.2017.06.07.16.56.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Jun 2017 16:56:22 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet , stable@dpdk.org Date: Thu, 8 Jun 2017 01:56:01 +0200 Message-Id: <3483427e578a4b9c3ff42e7aee98027bd6ff9be0.1496876810.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 v4 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, 07 Jun 2017 23:56:23 -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 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