tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-6.0.y head: dcf677c9377c88653b9cbbfc7e59e70f7a2af096 commit: a1ba348f53259d9f8e0cbd6821ec5265f1e7260c [1965/1969] bpf: Prevent bpf program recursion for raw tracepoint probes config: hexagon-buildonly-randconfig-r002-20221120 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project af8c49dc1ec44339d915d988ffe0f38da68ca0e7) 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/stable/linux-stable-rc.git/commit/?id=a1ba348f53259d9f8e0cbd6821ec5265f1e7260c git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git git fetch --no-tags linux-stable-rc linux-6.0.y git checkout a1ba348f53259d9f8e0cbd6821ec5265f1e7260c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash 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 security/security.c:13: include/linux/bpf.h:2310:20: error: static declaration of 'bpf_prog_inc_misses_counter' follows non-static declaration static inline void bpf_prog_inc_misses_counter(struct bpf_prog *prog) ^ include/linux/bpf.h:1970:14: note: previous declaration is here void notrace bpf_prog_inc_misses_counter(struct bpf_prog *prog); ^ In file included from security/security.c:25: >> include/linux/mman.h:154:9: warning: division by zero is undefined [-Wdivision-by-zero] _calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/mman.h:132:21: note: expanded from macro '_calc_vm_trans' : ((x) & (bit1)) / ((bit1) / (bit2)))) ^ ~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. vim +154 include/linux/mman.h ^1da177e4c3f415 Linus Torvalds 2005-04-16 145 ^1da177e4c3f415 Linus Torvalds 2005-04-16 146 /* ^1da177e4c3f415 Linus Torvalds 2005-04-16 147 * Combine the mmap "flags" argument into "vm_flags" used internally. ^1da177e4c3f415 Linus Torvalds 2005-04-16 148 */ ^1da177e4c3f415 Linus Torvalds 2005-04-16 149 static inline unsigned long ^1da177e4c3f415 Linus Torvalds 2005-04-16 150 calc_vm_flag_bits(unsigned long flags) ^1da177e4c3f415 Linus Torvalds 2005-04-16 151 { ^1da177e4c3f415 Linus Torvalds 2005-04-16 152 return _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) | b6fb293f2497a98 Jan Kara 2017-11-01 153 _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) | b3fbbea4c00220f Kevin Brodsky 2019-11-25 @154 _calc_vm_trans(flags, MAP_SYNC, VM_SYNC ) | b3fbbea4c00220f Kevin Brodsky 2019-11-25 155 arch_calc_vm_flag_bits(flags); ^1da177e4c3f415 Linus Torvalds 2005-04-16 156 } 00619bcc44d6b77 Jerome Marchand 2013-11-12 157 :::::: The code at line 154 was first introduced by commit :::::: b3fbbea4c00220f62e6f7e2514466e6ee81f7f60 mm: Introduce arch_calc_vm_flag_bits() :::::: TO: Kevin Brodsky :::::: CC: Catalin Marinas -- 0-DAY CI Kernel Test Service https://01.org/lkp