linux/drivers/net/ethernet/realtek
Justin Lai 68f9d8974b rtase: Modify the condition used to detect overflow in rtase_calc_time_mitigation
Fix the following compile error reported by the kernel test
robot by modifying the condition used to detect overflow in
rtase_calc_time_mitigation.

In file included from include/linux/mdio.h:10:0,
                  from drivers/net/ethernet/realtek/rtase/rtase_main.c:58:
 In function 'u16_encode_bits',
     inlined from 'rtase_calc_time_mitigation.constprop' at drivers/net/
     ethernet/realtek/rtase/rtase_main.c:1915:13,
     inlined from 'rtase_init_software_variable.isra.41' at drivers/net/
     ethernet/realtek/rtase/rtase_main.c:1961:13,
     inlined from 'rtase_init_one' at drivers/net/ethernet/realtek/
     rtase/rtase_main.c:2111:2:
>> include/linux/bitfield.h:178:3: error: call to '__field_overflow'
      declared with attribute error: value doesn't fit into mask
    __field_overflow();     \
    ^~~~~~~~~~~~~~~~~~
 include/linux/bitfield.h:198:2: note: in expansion of macro
 '____MAKE_OP'
   ____MAKE_OP(u##size,u##size,,)
   ^~~~~~~~~~~
 include/linux/bitfield.h:200:1: note: in expansion of macro
 '__MAKE_OP'
  __MAKE_OP(16)
  ^~~~~~~~~

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202503182158.nkAlbJWX-lkp@intel.com/
Fixes: a36e9f5cfe ("rtase: Add support for a pci table in this module")
Signed-off-by: Justin Lai <justinlai0215@realtek.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250424040444.5530-1-justinlai0215@realtek.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-04-25 18:59:42 -07:00
..
rtase rtase: Modify the condition used to detect overflow in rtase_calc_time_mitigation 2025-04-25 18:59:42 -07:00
8139cp.c
8139too.c eth: 8139too: fix calling napi_enable() in atomic context 2025-01-27 14:30:49 -08:00
Kconfig r8169: make Kconfig option for LED support user-visible 2025-02-04 18:11:14 -08:00
Makefile realtek: Update the Makefile and Kconfig in the realtek folder 2024-09-05 22:02:39 -07:00
atp.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
atp.h
r8169.h r8169: add support for RTL8125BP rev.b 2025-01-09 12:02:42 +01:00
r8169_firmware.c r8169: avoid duplicated messages if loading firmware fails and switch to warn level 2024-10-20 11:06:47 -05:00
r8169_firmware.h
r8169_leds.c
r8169_main.c r8169: disable RTL8126 ZRX-DC timeout 2025-03-24 12:18:49 -07:00
r8169_phy_config.c r8169: add support for RTL8125BP rev.b 2025-01-09 12:02:42 +01:00