tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 1bd8b75fe6adeaa89d02968bdd811ffe708cf839 commit: d6f1e89bdbb87365adcf16dfca40cdef6726d616 [9925/10852] sunhme: Return an ERR_PTR from quattro_pci_find config: sparc-randconfig-r015-20220926 compiler: sparc-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=d6f1e89bdbb87365adcf16dfca40cdef6726d616 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout d6f1e89bdbb87365adcf16dfca40cdef6726d616 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/net/ethernet/sun/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/string.h:20, from include/linux/bitmap.h:11, from include/linux/cpumask.h:12, from include/linux/mm_types_task.h:14, from include/linux/mm_types.h:5, from include/linux/buildid.h:5, from include/linux/module.h:14, from drivers/net/ethernet/sun/sunhme.c:17: drivers/net/ethernet/sun/sunhme.c: In function 'quattro_sbus_find': >> arch/sparc/include/asm/string.h:18:29: warning: 'memset' used with length equal to number of elements without multiplication by element size [-Wmemset-elt-size] 18 | #define memset(s, c, count) __builtin_memset(s, c, count) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/sun/sunhme.c:2504:9: note: in expansion of macro 'memset' 2504 | memset(qp->happy_meals, 0, sizeof(*qp->happy_meals)); | ^~~~~~ drivers/net/ethernet/sun/sunhme.c: In function 'happy_meal_sbus_probe_one': drivers/net/ethernet/sun/sunhme.c:2646:13: error: 'hme_version_printed' undeclared (first use in this function) 2646 | if (hme_version_printed++ == 0) | ^~~~~~~~~~~~~~~~~~~ drivers/net/ethernet/sun/sunhme.c:2646:13: note: each undeclared identifier is reported only once for each function it appears in In file included from include/linux/kernel.h:29, from include/linux/cpumask.h:10: drivers/net/ethernet/sun/sunhme.c:2647:40: error: 'version' undeclared (first use in this function) 2647 | printk(KERN_INFO "%s", version); | ^~~~~~~ include/linux/printk.h:436:33: note: in definition of macro 'printk_index_wrap' 436 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ drivers/net/ethernet/sun/sunhme.c:2647:17: note: in expansion of macro 'printk' 2647 | printk(KERN_INFO "%s", version); | ^~~~~~ vim +/memset +18 arch/sparc/include/asm/string.h 70a6fcf3283a0a Al Viro 2016-01-17 16 70a6fcf3283a0a Al Viro 2016-01-17 17 #define __HAVE_ARCH_MEMSET 70a6fcf3283a0a Al Viro 2016-01-17 @18 #define memset(s, c, count) __builtin_memset(s, c, count) 70a6fcf3283a0a Al Viro 2016-01-17 19 :::::: The code at line 18 was first introduced by commit :::::: 70a6fcf3283a0ac1e11737c6d90c0753f9824e9d [sparc] unify 32bit and 64bit string.h :::::: TO: Al Viro :::::: CC: Al Viro -- 0-DAY CI Kernel Test Service https://01.org/lkp