Re: [PATCH net-next v16 13/13] ax88796b: Add support for AX88772D, AX88179A and AX88279

From: kernel test robot

Date: Sun Oct 04 2026 - 11:53:54 EST


Hi Birger,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 071876fd50482a68603a9460d80dd6dd58827ee1]

url: https://github.com/intel-lab-lkp/linux/commits/Birger-Koblitz/phylink-Add-phylink_mac_interrupt/20261004-073905
base: 071876fd50482a68603a9460d80dd6dd58827ee1
patch link: https://lore.kernel.org/r/20261004-ax88179a-v16-13-2a9ae4e68f7b%40birger-koblitz.de
patch subject: [PATCH net-next v16 13/13] ax88796b: Add support for AX88772D, AX88179A and AX88279
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20261004/202610042301.MlmvbRpS-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261004/202610042301.MlmvbRpS-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610042301.MlmvbRpS-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/m68k/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:369,
from include/linux/array_size.h:5,
from include/linux/kernel.h:16,
from drivers/net/phy/ax88796b.c:6:
drivers/net/phy/ax88796b.c: In function 'asix_ax88772D_get_features':
>> drivers/net/phy/ax88796b.c:217:42: warning: unused variable 'mask' [-Wunused-variable]
217 | __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = {};
| ^~~~
include/linux/types.h:10:23: note: in definition of macro 'DECLARE_BITMAP'
10 | unsigned long name[BITS_TO_LONGS(bits)]
| ^~~~
drivers/net/phy/ax88796b.c:217:9: note: in expansion of macro '__ETHTOOL_DECLARE_LINK_MODE_MASK'
217 | __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = {};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/mask +217 drivers/net/phy/ax88796b.c

213
214 static int asix_ax88772D_get_features(struct phy_device *phydev)
215 {
216 int ret;
> 217 __ETHTOOL_DECLARE_LINK_MODE_MASK(mask) = {};
218
219 /* MDIO_DEVS1/2 empty, so set mmds_present bits to allow reading abilities */
220 phydev->c45_ids.mmds_present |= MDIO_DEVS_PMAPMD | MDIO_DEVS_AN;
221
222 ret = genphy_read_abilities(phydev);
223 if (ret < 0)
224 return ret;
225
226 /* AX88772D does not support reported 1000baseT mode */
227 linkmode_clear_bit(ETHTOOL_LINK_MODE_1000baseT_Full_BIT, phydev->supported);
228
229 return 0;
230 }
231

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki