tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: bce9332220bd677d83b19d21502776ad555a0e73 commit: 025bd7c753aab18cd594924a46ab46ac47209df9 selftests/bpf: Add test for bpf_get_branch_snapshot date: 1 year, 3 months ago compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce: # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=025bd7c753aab18cd594924a46ab46ac47209df9 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 025bd7c753aab18cd594924a46ab46ac47209df9 make O=/tmp/kselftest headers make O=/tmp/kselftest -C tools/testing/selftests If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:16:14: warning: no previous prototype for 'bpf_testmod_loop_test' [-Wmissing-prototypes] 16 | noinline int bpf_testmod_loop_test(int n) | ^~~~~~~~~~~~~~~~~~~~~ tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:29:1: warning: no previous prototype for 'bpf_testmod_test_read' [-Wmissing-prototypes] 29 | bpf_testmod_test_read(struct file *file, struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~ tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c:51:1: warning: no previous prototype for 'bpf_testmod_test_write' [-Wmissing-prototypes] 51 | bpf_testmod_test_write(struct file *file, struct kobject *kobj, | ^~~~~~~~~~~~~~~~~~~~~~ vim +/bpf_testmod_loop_test +16 tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c 15 > 16 noinline int bpf_testmod_loop_test(int n) 17 { 18 int i, sum = 0; 19 20 /* the primary goal of this test is to test LBR. Create a lot of 21 * branches in the function, so we can catch it easily. 22 */ 23 for (i = 0; i < n; i++) 24 sum += i; 25 return sum; 26 } 27 -- 0-DAY CI Kernel Test Service https://01.org/lkp