[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251119195400.1bf0cc68@kernel.org>
Date: Wed, 19 Nov 2025 19:54:00 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Maxime Chevallier <maxime.chevallier@...tlin.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
thomas.petazzoni@...tlin.com, Andrew Lunn <andrew@...n.ch>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>, Russell King
<linux@...linux.org.uk>, linux-arm-kernel@...ts.infradead.org, Christophe
Leroy <christophe.leroy@...roup.eu>, Herve Codina
<herve.codina@...tlin.com>, Florian Fainelli <f.fainelli@...il.com>, Heiner
Kallweit <hkallweit1@...il.com>, Vladimir Oltean <vladimir.oltean@....com>,
Köry Maincent <kory.maincent@...tlin.com>, Marek
Behún <kabel@...nel.org>, Oleksij Rempel
<o.rempel@...gutronix.de>, Nicolò Veronese
<nicveronese@...il.com>, Simon Horman <horms@...nel.org>,
mwojtas@...omium.org, Antoine Tenart <atenart@...nel.org>,
devicetree@...r.kernel.org, Conor Dooley <conor+dt@...nel.org>, Krzysztof
Kozlowski <krzk+dt@...nel.org>, Rob Herring <robh@...nel.org>, Romain
Gantois <romain.gantois@...tlin.com>, Daniel Golle <daniel@...rotopia.org>,
Dimitri Fedrau <dimitri.fedrau@...bherr.com>
Subject: Re: [PATCH net-next v17 03/15] net: phy: Introduce PHY ports
representation
On Wed, 19 Nov 2025 20:59:04 +0100 Maxime Chevallier wrote:
> diff --git a/net/ethtool/common.c b/net/ethtool/common.c
> index 2f4b70f104e8..8216e4ada58e 100644
> --- a/net/ethtool/common.c
> +++ b/net/ethtool/common.c
> @@ -460,6 +460,21 @@ const struct link_mode_info link_mode_params[] = {
> static_assert(ARRAY_SIZE(link_mode_params) == __ETHTOOL_LINK_MODE_MASK_NBITS);
> EXPORT_SYMBOL_GPL(link_mode_params);
>
> +const char ethtool_link_medium_names[][ETH_GSTRING_LEN] = {
> + [ETHTOOL_LINK_MEDIUM_BASET] = "BaseT",
> + [ETHTOOL_LINK_MEDIUM_BASEK] = "BaseK",
> + [ETHTOOL_LINK_MEDIUM_BASES] = "BaseS",
> + [ETHTOOL_LINK_MEDIUM_BASEC] = "BaseC",
> + [ETHTOOL_LINK_MEDIUM_BASEL] = "BaseL",
> + [ETHTOOL_LINK_MEDIUM_BASED] = "BaseD",
> + [ETHTOOL_LINK_MEDIUM_BASEE] = "BaseE",
> + [ETHTOOL_LINK_MEDIUM_BASEF] = "BaseF",
> + [ETHTOOL_LINK_MEDIUM_BASEV] = "BaseV",
> + [ETHTOOL_LINK_MEDIUM_BASEMLD] = "BaseMLD",
> + [ETHTOOL_LINK_MEDIUM_NONE] = "None",
> +};
> +static_assert(ARRAY_SIZE(ethtool_link_medium_names) == __ETHTOOL_LINK_MEDIUM_LAST);
Thanks for reshuffling things, this one needs a static tho:
net/ethtool/common.c:463:12: warning: symbol 'ethtool_link_medium_names' was not declared. Should it be static?
--
pw-bot: cr
Powered by blists - more mailing lists