[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202508250002.afAgRCmk-lkp@intel.com>
Date: Mon, 25 Aug 2025 00:40:03 +0800
From: kernel test robot <lkp@...el.com>
To: David Yang <mmyangfl@...il.com>, netdev@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, David Yang <mmyangfl@...il.com>,
Andrew Lunn <andrew@...n.ch>, Vladimir Oltean <olteanv@...il.com>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Simon Horman <horms@...nel.org>,
Russell King <linux@...linux.org.uk>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next v6 3/3] net: dsa: yt921x: Add support for
Motorcomm YT921x
Hi David,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/David-Yang/dt-bindings-net-dsa-yt921x-Add-Motorcomm-YT921x-switch-support/20250824-085750
base: net-next/main
patch link: https://lore.kernel.org/r/20250824005116.2434998-4-mmyangfl%40gmail.com
patch subject: [PATCH net-next v6 3/3] net: dsa: yt921x: Add support for Motorcomm YT921x
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250825/202508250002.afAgRCmk-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250825/202508250002.afAgRCmk-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508250002.afAgRCmk-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/dsa/yt921x.c: In function 'yt921x_port_down':
>> drivers/net/dsa/yt921x.c:2683:13: warning: variable 'mask' set but not used [-Wunused-but-set-variable]
2683 | u32 mask;
| ^~~~
vim +/mask +2683 drivers/net/dsa/yt921x.c
2680
2681 static int yt921x_port_down(struct yt921x_priv *priv, int port)
2682 {
> 2683 u32 mask;
2684 u32 ctrl;
2685 int res;
2686
2687 ctrl = YT921X_PORT_LINK | YT921X_PORT_RX_MAC_EN | YT921X_PORT_TX_MAC_EN;
2688 res = yt921x_smi_clear_bits(priv, YT921X_PORTn_CTRL(port), ctrl);
2689 if (res)
2690 return res;
2691
2692 if (yt921x_port_is_external(port)) {
2693 ctrl = YT921X_SGMII_LINK;
2694 res = yt921x_smi_clear_bits(priv, YT921X_SGMIIn(port), ctrl);
2695 if (res)
2696 return res;
2697
2698 mask = YT921X_XMII_LINK;
2699 res = yt921x_smi_clear_bits(priv, YT921X_XMIIn(port), ctrl);
2700 if (res)
2701 return res;
2702 }
2703
2704 return 0;
2705 }
2706
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists