Hi, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v6.1-rc4 next-20221111] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/wangkailong-jari-cn/samples-seccomp-fix-array_size-cocci-warning/20221113-180424 patch link: https://lore.kernel.org/r/2b3f2420.130.184706d34e6.Coremail.wangkailong%40jari.cn patch subject: [PATCH] samples/seccomp: fix array_size.cocci warning config: i386-allyesconfig compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/ee8a383f3aac9a380696920bd2b5a80c6a92e6e9 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review wangkailong-jari-cn/samples-seccomp-fix-array_size-cocci-warning/20221113-180424 git checkout ee8a383f3aac9a380696920bd2b5a80c6a92e6e9 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): samples/seccomp/bpf-fancy.c: In function 'main': >> samples/seccomp/bpf-fancy.c:83:41: warning: implicit declaration of function 'ARRAY_SIZE' [-Wimplicit-function-declaration] 83 | .len = (unsigned short)(ARRAY_SIZE(filter)), | ^~~~~~~~~~ -- /usr/bin/ld: samples/seccomp/bpf-fancy.o: in function `main': >> bpf-fancy.c:(.text.startup+0x4f2): undefined reference to `ARRAY_SIZE' >> /usr/bin/ld: bpf-fancy.c:(.text.startup+0x507): undefined reference to `ARRAY_SIZE' collect2: error: ld returned 1 exit status -- 0-DAY CI Kernel Test Service https://01.org/lkp