Greeting, FYI, we noticed the following commit (built with gcc-11): commit: 30463f9f35e37cbab112e0bbe41ce3b577e7714f ("[PATCH 1/3] perf bench syscall: Introduce bench_syscall_common()") url: https://github.com/intel-lab-lkp/linux/commits/Tiezhu-Yang/perf-Add-more-syscalls-to-benchmark/20220906-110930 base: https://git.kernel.org/cgit/linux/kernel/git/acme/linux.git perf/core patch link: https://lore.kernel.org/lkml/1662433577-23266-2-git-send-email-yangtiezhu@loongson.cn in testcase: perf-test version: perf-test-x86_64-git-1_20220520 with following parameters: type: lkp test-description: The internal Perf Test suite. on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz (Kaby Lake) with 32G memory caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag | Reported-by: kernel test robot | Link: https://lore.kernel.org/r/202209201556.9c0204f5-oliver.sang@intel.com CC bench/syscall.o CC arch/common.o bench/syscall.c: In function ‘bench_syscall_common’: bench/syscall.c:46:8: error: ‘__NR_getppid’ undeclared (first use in this function); did you mean ‘__getpgid’? 46 | case __NR_getppid: | ^~~~~~~~~~~~ | __getpgid bench/syscall.c:46:8: note: each undeclared identifier is reported only once for each function it appears in bench/syscall.c: In function ‘bench_syscall_basic’: bench/syscall.c:101:42: error: ‘__NR_getppid’ undeclared (first use in this function); did you mean ‘__getpgid’? 101 | return bench_syscall_common(argc, argv, __NR_getppid); | ^~~~~~~~~~~~ | __getpgid bench/syscall.c:102:1: error: control reaches end of non-void function [-Werror=return-type] 102 | } | ^ cc1: all warnings being treated as errors make[4]: *** [/usr/src/perf_selftests-x86_64-rhel-8.3-func-30463f9f35e37cbab112e0bbe41ce3b577e7714f/tools/build/Makefile.build:97: bench/syscall.o] Error 1 make[3]: *** [/usr/src/perf_selftests-x86_64-rhel-8.3-func-30463f9f35e37cbab112e0bbe41ce3b577e7714f/tools/build/Makefile.build:139: bench] Error 2 make[3]: *** Waiting for unfinished jobs.... ... LD util/perf-in.o make[2]: *** [Makefile.perf:660: perf-in.o] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile.perf:240: sub-make] Error 2 make: *** [Makefile:70: all] Error 2 make: Leaving directory '/usr/src/perf_selftests-x86_64-rhel-8.3-func-30463f9f35e37cbab112e0bbe41ce3b577e7714f/tools/perf' failed to setup linux perf To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests sudo bin/lkp install job.yaml # job file is attached in this email bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run sudo bin/lkp run generated-yaml-file # if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state. -- 0-DAY CI Kernel Test Service https://01.org/lkp