From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gaetan.rivet@6wind.com>
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 <dev@dpdk.org>; Thu,  8 Jun 2017 01:56:23 +0200 (CEST)
Received: by mail-wr0-f171.google.com with SMTP id q97so12018348wrb.2
 for <dev@dpdk.org>; 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 <gaetan.rivet@6wind.com>
To: dev@dpdk.org
Cc: Gaetan Rivet <gaetan.rivet@6wind.com>,
	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: <cover.1496876810.git.gaetan.rivet@6wind.com>
References: <cover.1496311609.git.gaetan.rivet@6wind.com>
 <cover.1496876810.git.gaetan.rivet@6wind.com>
In-Reply-To: <cover.1496876810.git.gaetan.rivet@6wind.com>
References: <cover.1496876810.git.gaetan.rivet@6wind.com>
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 <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=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 <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