Hi Heiner, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Heiner-Kallweit/net-phy-realtek-add-support-for-reading-MDIO_MMD_VEND2-regs-on-RTL8125-RTL8126/20250110-195043 base: net-next/main patch link: https://lore.kernel.org/r/dbfeb139-808f-4345-afe8-830b7f4da26a%40gmail.com patch subject: [PATCH net-next 3/3] net: phy: realtek: add hwmon support for temp sensor on RTL822x config: i386-randconfig-013-20250111 (https://download.01.org/0day-ci/archive/20250111/202501111711.i1W0TGwl-lkp@xxxxxxxxx/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250111/202501111711.i1W0TGwl-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/202501111711.i1W0TGwl-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> drivers/net/phy/realtek_hwmon.c:3:4: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 2 | * | int 3 | * HWMON support for Realtek PHY's | ^ >> drivers/net/phy/realtek_hwmon.c:3:9: error: expected ';' after top level declarator 3 | * HWMON support for Realtek PHY's | ^ | ; drivers/net/phy/realtek_hwmon.c:3:33: warning: missing terminating ' character [-Winvalid-pp-token] 3 | * HWMON support for Realtek PHY's | ^ In file included from drivers/net/phy/realtek_hwmon.c:8: In file included from include/linux/hwmon.h:15: In file included from include/linux/bitops.h:5: In file included from ./arch/x86/include/generated/uapi/asm/types.h:1: In file included from include/uapi/asm-generic/types.h:7: include/asm-generic/int-ll64.h:16:9: error: unknown type name '__s8'; did you mean '__u8'? 16 | typedef __s8 s8; | ^~~~ | __u8 include/uapi/asm-generic/int-ll64.h:21:23: note: '__u8' declared here 21 | typedef unsigned char __u8; | ^ In file included from drivers/net/phy/realtek_hwmon.c:9: In file included from include/linux/phy.h:15: In file included from include/linux/spinlock.h:60: In file included from include/linux/thread_info.h:60: In file included from arch/x86/include/asm/thread_info.h:59: In file included from arch/x86/include/asm/cpufeature.h:5: In file included from arch/x86/include/asm/processor.h:35: In file included from include/linux/math64.h:6: include/linux/math.h:115:1: error: unknown type name '__s8'; did you mean '__u8'? 115 | __STRUCT_FRACT(s8) | ^ include/linux/math.h:112:2: note: expanded from macro '__STRUCT_FRACT' 112 | __##type numerator; \ | ^ <scratch space>:221:1: note: expanded from here 221 | __s8 | ^ include/uapi/asm-generic/int-ll64.h:21:23: note: '__u8' declared here 21 | typedef unsigned char __u8; | ^ In file included from drivers/net/phy/realtek_hwmon.c:9: In file included from include/linux/phy.h:15: In file included from include/linux/spinlock.h:60: In file included from include/linux/thread_info.h:60: In file included from arch/x86/include/asm/thread_info.h:59: In file included from arch/x86/include/asm/cpufeature.h:5: In file included from arch/x86/include/asm/processor.h:35: In file included from include/linux/math64.h:6: include/linux/math.h:115:1: error: unknown type name '__s8'; did you mean '__u8'? 115 | __STRUCT_FRACT(s8) | ^ include/linux/math.h:113:2: note: expanded from macro '__STRUCT_FRACT' 113 | __##type denominator; \ | ^ <scratch space>:222:1: note: expanded from here 222 | __s8 | ^ include/uapi/asm-generic/int-ll64.h:21:23: note: '__u8' declared here 21 | typedef unsigned char __u8; | ^ In file included from drivers/net/phy/realtek_hwmon.c:9: In file included from include/linux/phy.h:16: In file included from include/linux/ethtool.h:17: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/net/phy/realtek_hwmon.c:9: In file included from include/linux/phy.h:16: In file included from include/linux/ethtool.h:17: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:98:25: warning: array index 2 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] 98 | return (set->sig[3] | set->sig[2] | | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ In file included from drivers/net/phy/realtek_hwmon.c:9: In file included from include/linux/phy.h:16: In file included from include/linux/ethtool.h:17: In file included from include/linux/compat.h:17: In file included from include/linux/fs.h:33: In file included from include/linux/percpu-rwsem.h:7: In file included from include/linux/rcuwait.h:6: In file included from include/linux/sched/signal.h:6: include/linux/signal.h:114:11: warning: array index 3 is past the end of the array (that has type 'const unsigned long[2]') [-Warray-bounds] 114 | return (set1->sig[3] == set2->sig[3]) && | ^ ~ arch/x86/include/asm/signal.h:24:2: note: array 'sig' declared here 24 | unsigned long sig[_NSIG_WORDS]; | ^ vim +/int +3 drivers/net/phy/realtek_hwmon.c > 3 * HWMON support for Realtek PHY's 4 * 5 * Author: Heiner Kallweit <hkallweit1@xxxxxxxxx> 6 */ 7 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki