Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1322044rdb; Tue, 30 Jan 2024 15:14:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFx86uB7zWPfR097wvgHZv0LUko6Y7VUTYIomccp9YkiPRIixuQ/9mrEuPdVFMG5DKTOD24 X-Received: by 2002:a25:2944:0:b0:dc6:ad44:e8a5 with SMTP id p65-20020a252944000000b00dc6ad44e8a5mr69882ybp.12.1706656498274; Tue, 30 Jan 2024 15:14:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706656498; cv=pass; d=google.com; s=arc-20160816; b=iPd4ZsiTn4KzxBlw+C8/W7NE08Zj48Zyyg23miOvz08nUi4uOIKyx1UMYMQ9aXdhjG t3jDW6uFPq8+lW0jm4+83XjSEfMpd23XcEPJegEjNOCO8qsdDXuj2Fjcpw3pcXb7TZg+ ZT2Igp0A85ctdeS8m9ktHAqlKICraDJI9VyGO8E8J9rDqQHNZPCKbFw18/evZhDHTwKP UVWrllaiAHh26tGBP1iOKVIpX9FEj5wS82VC39n1jDtp6FGLeWW+G8ikYWHG3Qp3ZMR/ P4jUe9rRBErdbvvOha7DhjKViGUJeAA1Ersek04Qa6TfFIi7tW14VzM5yIun4Q/Y9+Z4 M0Cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Hf1TfNPEAVg2+sm+zOsODiJx7A0P5Vk/5MG78DTQkas=; fh=mTvjTqym02yeN0tlAPLrMKgv4tfcsXLZmOUHn1dWpO8=; b=SxxkLt5/78R6WYWXyfEA9pnw3YtweHvzF29Gt4J3ZU+jyLoYw/K9TdB6lqt+uX9yLL hpTTAQz3SqrMlfOZTicpQFdo5lxPC9YO5cXUY6m1OK3zEuQuZKWR6I828o98G1tfljhp EHFx54XXL9B6hXUlAWxS2/4YKJ9ECDsVmktENCtZimyFjGkdtCX4/bZ20W0A3/ywDLt9 JHcHUMln9p4VQOZdDp0Im+K7M2jaApAshBWckEqZ1IyJHgixnXJcS4kc9xM5QXq2yYkw i0OoGACBJOUOI9G+Y/s0EZiIkv6ppCuS/yZiDnwbgoq1ZYgZ/mrYCYnoQZnOXJFX1BSE gycA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nQPns0AK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gm14-20020a056214268e00b0067f89610cdcsi11040740qvb.180.2024.01.30.15.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:14:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nQPns0AK; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-45452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A9F301C24467 for ; Tue, 30 Jan 2024 23:14:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D267C7F46A; Tue, 30 Jan 2024 23:14:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nQPns0AK" Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 222CD7D41F; Tue, 30 Jan 2024 23:14:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706656448; cv=none; b=Zr5eShLDL6AyWK3xYYvlE8KVlQlqpJh/veSWl8kx7H2eBHWFgT/KnokST8c4iFQv7ebb4hPdkjyEeyPEQFuxgow6IaClrm7fuNcPmLuJ6bA8N03DC9hOZ/4ROc+yVIySuSX6R9QQak4yhof9iXimS2+iVm1dXmleHVSjo8Q3dmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706656448; c=relaxed/simple; bh=nhxEsQ4kP9am+iHjOX0gRwocvhLSYlIe7d8qonzPVKI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hi7FqHVDweJQtsCXCrqolR9tKcGeQM14AzbBu0Vebyg6R+s2X/9DlAAKb1QVCGRbEM+CSpJoqC4299HQx9d503qFElO05Fn3ZE+G9ms5vY90jBC4ebZ5I+WgU89O5Xx46+pfMy3popDiTQ9d1ck/cL2+pyoxiXQDSvbMYSsnE1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nQPns0AK; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d8ef977f1eso14996445ad.0; Tue, 30 Jan 2024 15:14:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706656446; x=1707261246; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Hf1TfNPEAVg2+sm+zOsODiJx7A0P5Vk/5MG78DTQkas=; b=nQPns0AKCfu327lAZnNqgSPLszIo0BF7Qc2LQaHEad8VecaMXqJspYNYRP+zh9cwSz 7OaWmCbL+gHxDWQvhcS9IPkfDN+PgO8prQM9pW1AshTOq6TbnklXBnDGhViH7RreKo4U TPi/mH2HYl77hXINUXjFaRF0jQvh9/UzyxowxkRNlSffIix8YQKiiwb5a0Hwk/BpXbEJ Agjb8zTcBpSD9e7cAvCD7i1cbdnKIXge0OjALKn5yMBSpGnwJhZQpxmh2TggL0MgPPMt 1vwedmlKzq1ms9KOTwdR39oAEEO1aEssHLjYYUclQu2VyO07uqoX5eOrDnSPEyu7cz04 bteQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706656446; x=1707261246; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Hf1TfNPEAVg2+sm+zOsODiJx7A0P5Vk/5MG78DTQkas=; b=U+7qmdzhM1KyfKZ/ta3vRfZXR68/+FlhcPoqwWBRorEW+PEZ1S4GXVSf3Cp3tAKqgO i8iOlpzOrvLDBMcKQVY2sUHk2SaKcDiqmks46wkeoeSCUVbT/SQMyqv3sfxKIxvVbLz0 Mq9LFZKiQ4q4AC1qt5TsfrL8cp58KpBX/nLQjAzNH5nPKOlzcJAAvP7m8WK886HAuuGj aznSmkboCHlRPjgM+982LutmNjcT8RCT/ygJjZp4bFL0r/7kohMnuUUzP/iiv3hPsyck qD47YZqjcqWium/gi80MfnkPUKNDTaa4c+7N6Q3VToTXrH7bnRs9A7bN8kbcQDxSVkZd IQPw== X-Gm-Message-State: AOJu0Yzfdg3YN4MnbkAMY4CL/+GOx4vP6VokJ0qiXkwYua4OOmXf2mYk vPLgHH17/Zyc2e5JZlp+3+GFpXCf3rDGGeGWxzNqkTWxTwpoB2GN X-Received: by 2002:a17:902:7086:b0:1d7:72b9:b114 with SMTP id z6-20020a170902708600b001d772b9b114mr27314plk.60.1706656446368; Tue, 30 Jan 2024 15:14:06 -0800 (PST) Received: from tresc054937.tre-sc.gov.br ([2804:c:204:200:2be:43ff:febc:c2fb]) by smtp.gmail.com with ESMTPSA id jx2-20020a170903138200b001d8f251c8b2sm3473203plb.221.2024.01.30.15.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:14:05 -0800 (PST) From: Luiz Angelo Daros de Luca Date: Tue, 30 Jan 2024 20:13:21 -0300 Subject: [PATCH net-next v5 02/11] net: dsa: realtek: introduce REALTEK_DSA namespace Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240130-realtek_reverse-v5-2-ecafd9283a07@gmail.com> References: <20240130-realtek_reverse-v5-0-ecafd9283a07@gmail.com> In-Reply-To: <20240130-realtek_reverse-v5-0-ecafd9283a07@gmail.com> To: Linus Walleij , =?utf-8?q?Alvin_=C5=A0ipraga?= , Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Luiz Angelo Daros de Luca , Florian Fainelli X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=6005; i=luizluca@gmail.com; h=from:subject:message-id; bh=nhxEsQ4kP9am+iHjOX0gRwocvhLSYlIe7d8qonzPVKI=; b=owEBbQGS/pANAwAIAbsR27rRBztWAcsmYgBluYKwjoa6w6zX073GSamHTiGgKs90pZ4omyPhr 03MxiIDvYKJATMEAAEIAB0WIQQRByhHhc1bOhL6L/i7Edu60Qc7VgUCZbmCsAAKCRC7Edu60Qc7 VgagB/9oIGlqnQSfhR4ZrnB4wQ0DsBl4N69LfXkXRIsN96ccnk9/gMKPPapEjUBMeGmU7l98QPo LKNPPomiYKgVSaAnTgdWbSz+7xYDKkGTKLH0BSQpzKfsFcZYLq/U6G+1hfQoClnCNPSrl09+8iV bSV6KWzd49O8NqNgnzH/zQJpaEKJxWmYHtNtacxFO+sF7yvBOxF1IqKQB3kB+3jWWzZaFDssaHa mlj9NwtE45D2gEAtPtLb3le94yd+aZadhemcC+9AAj54vcJyQur705n8SzL2rYTkHlWBw5MPXSV IM4s1HyMUlv3M1SeT27ak1NXuLYU+0F5k9YC7eNo3LbTMDkW X-Developer-Key: i=luizluca@gmail.com; a=openpgp; fpr=1107284785CD5B3A12FA2FF8BB11DBBAD1073B56 Create a namespace to group the exported symbols. Signed-off-by: Luiz Angelo Daros de Luca Reviewed-by: Vladimir Oltean Reviewed-by: Florian Fainelli --- drivers/net/dsa/realtek/realtek-mdio.c | 1 + drivers/net/dsa/realtek/realtek-smi.c | 1 + drivers/net/dsa/realtek/rtl8365mb.c | 1 + drivers/net/dsa/realtek/rtl8366-core.c | 22 +++++++++++----------- drivers/net/dsa/realtek/rtl8366rb.c | 1 + 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/drivers/net/dsa/realtek/realtek-mdio.c b/drivers/net/dsa/realtek/realtek-mdio.c index 292e6d087e8b..c2572463679f 100644 --- a/drivers/net/dsa/realtek/realtek-mdio.c +++ b/drivers/net/dsa/realtek/realtek-mdio.c @@ -288,3 +288,4 @@ mdio_module_driver(realtek_mdio_driver); MODULE_AUTHOR("Luiz Angelo Daros de Luca "); MODULE_DESCRIPTION("Driver for Realtek ethernet switch connected via MDIO interface"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(REALTEK_DSA); diff --git a/drivers/net/dsa/realtek/realtek-smi.c b/drivers/net/dsa/realtek/realtek-smi.c index 755546ed8db6..668336515119 100644 --- a/drivers/net/dsa/realtek/realtek-smi.c +++ b/drivers/net/dsa/realtek/realtek-smi.c @@ -565,3 +565,4 @@ module_platform_driver(realtek_smi_driver); MODULE_AUTHOR("Linus Walleij "); MODULE_DESCRIPTION("Driver for Realtek ethernet switch connected via SMI interface"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(REALTEK_DSA); diff --git a/drivers/net/dsa/realtek/rtl8365mb.c b/drivers/net/dsa/realtek/rtl8365mb.c index b072045eb154..c42ee8241ca2 100644 --- a/drivers/net/dsa/realtek/rtl8365mb.c +++ b/drivers/net/dsa/realtek/rtl8365mb.c @@ -2177,3 +2177,4 @@ EXPORT_SYMBOL_GPL(rtl8365mb_variant); MODULE_AUTHOR("Alvin Šipraga "); MODULE_DESCRIPTION("Driver for RTL8365MB-VC ethernet switch"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(REALTEK_DSA); diff --git a/drivers/net/dsa/realtek/rtl8366-core.c b/drivers/net/dsa/realtek/rtl8366-core.c index 59f98d2c8769..7c6520ba3a26 100644 --- a/drivers/net/dsa/realtek/rtl8366-core.c +++ b/drivers/net/dsa/realtek/rtl8366-core.c @@ -34,7 +34,7 @@ int rtl8366_mc_is_used(struct realtek_priv *priv, int mc_index, int *used) return 0; } -EXPORT_SYMBOL_GPL(rtl8366_mc_is_used); +EXPORT_SYMBOL_NS_GPL(rtl8366_mc_is_used, REALTEK_DSA); /** * rtl8366_obtain_mc() - retrieve or allocate a VLAN member configuration @@ -187,7 +187,7 @@ int rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member, return ret; } -EXPORT_SYMBOL_GPL(rtl8366_set_vlan); +EXPORT_SYMBOL_NS_GPL(rtl8366_set_vlan, REALTEK_DSA); int rtl8366_set_pvid(struct realtek_priv *priv, unsigned int port, unsigned int vid) @@ -217,7 +217,7 @@ int rtl8366_set_pvid(struct realtek_priv *priv, unsigned int port, return 0; } -EXPORT_SYMBOL_GPL(rtl8366_set_pvid); +EXPORT_SYMBOL_NS_GPL(rtl8366_set_pvid, REALTEK_DSA); int rtl8366_enable_vlan4k(struct realtek_priv *priv, bool enable) { @@ -243,7 +243,7 @@ int rtl8366_enable_vlan4k(struct realtek_priv *priv, bool enable) priv->vlan4k_enabled = enable; return 0; } -EXPORT_SYMBOL_GPL(rtl8366_enable_vlan4k); +EXPORT_SYMBOL_NS_GPL(rtl8366_enable_vlan4k, REALTEK_DSA); int rtl8366_enable_vlan(struct realtek_priv *priv, bool enable) { @@ -265,7 +265,7 @@ int rtl8366_enable_vlan(struct realtek_priv *priv, bool enable) return ret; } -EXPORT_SYMBOL_GPL(rtl8366_enable_vlan); +EXPORT_SYMBOL_NS_GPL(rtl8366_enable_vlan, REALTEK_DSA); int rtl8366_reset_vlan(struct realtek_priv *priv) { @@ -290,7 +290,7 @@ int rtl8366_reset_vlan(struct realtek_priv *priv) return 0; } -EXPORT_SYMBOL_GPL(rtl8366_reset_vlan); +EXPORT_SYMBOL_NS_GPL(rtl8366_reset_vlan, REALTEK_DSA); int rtl8366_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, @@ -345,7 +345,7 @@ int rtl8366_vlan_add(struct dsa_switch *ds, int port, return 0; } -EXPORT_SYMBOL_GPL(rtl8366_vlan_add); +EXPORT_SYMBOL_NS_GPL(rtl8366_vlan_add, REALTEK_DSA); int rtl8366_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) @@ -389,7 +389,7 @@ int rtl8366_vlan_del(struct dsa_switch *ds, int port, return 0; } -EXPORT_SYMBOL_GPL(rtl8366_vlan_del); +EXPORT_SYMBOL_NS_GPL(rtl8366_vlan_del, REALTEK_DSA); void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data) @@ -403,7 +403,7 @@ void rtl8366_get_strings(struct dsa_switch *ds, int port, u32 stringset, for (i = 0; i < priv->num_mib_counters; i++) ethtool_puts(&data, priv->mib_counters[i].name); } -EXPORT_SYMBOL_GPL(rtl8366_get_strings); +EXPORT_SYMBOL_NS_GPL(rtl8366_get_strings, REALTEK_DSA); int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset) { @@ -417,7 +417,7 @@ int rtl8366_get_sset_count(struct dsa_switch *ds, int port, int sset) return priv->num_mib_counters; } -EXPORT_SYMBOL_GPL(rtl8366_get_sset_count); +EXPORT_SYMBOL_NS_GPL(rtl8366_get_sset_count, REALTEK_DSA); void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) { @@ -441,4 +441,4 @@ void rtl8366_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) data[i] = mibvalue; } } -EXPORT_SYMBOL_GPL(rtl8366_get_ethtool_stats); +EXPORT_SYMBOL_NS_GPL(rtl8366_get_ethtool_stats, REALTEK_DSA); diff --git a/drivers/net/dsa/realtek/rtl8366rb.c b/drivers/net/dsa/realtek/rtl8366rb.c index e3b6a470ca67..6661d4ba6882 100644 --- a/drivers/net/dsa/realtek/rtl8366rb.c +++ b/drivers/net/dsa/realtek/rtl8366rb.c @@ -1938,3 +1938,4 @@ EXPORT_SYMBOL_GPL(rtl8366rb_variant); MODULE_AUTHOR("Linus Walleij "); MODULE_DESCRIPTION("Driver for RTL8366RB ethernet switch"); MODULE_LICENSE("GPL"); +MODULE_IMPORT_NS(REALTEK_DSA); -- 2.43.0