All of lore.kernel.org
 help / color / mirror / Atom feed
* tests/builtin-test.c:520:13: error: invalid storage class for function 'drain_child_process_err'
@ 2026-05-15  1:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-15  1:35 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Ian Rogers <irogers@google.com>
CC: 0day robot <lkp@intel.com>

tree:   https://github.com/intel-lab-lkp/linux/commits/Ian-Rogers/perf-jevents-py-Make-generated-C-code-more-kernel-style/20260515-050303
head:   1486b474d48345ed0cca3daad8c9966bc7c84764
commit: 324a137bfa4a31dcf2a9ec59f7ccef9a25977c18 perf test: Refactor parallel poll loop to drain all pipes simultaneously
date:   5 hours ago
:::::: branch date: 5 hours ago
:::::: commit date: 5 hours ago
config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260515/202605150337.7N09s8AH-lkp@intel.com/config)
compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/202605150337.7N09s8AH-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202605150337.7N09s8AH-lkp@intel.com/

All errors (new ones prefixed by >>):

   Makefile.config:577: No elfutils/debuginfod.h found, no debuginfo server support, please install libdebuginfod-dev/elfutils-debuginfod-client-devel or equivalent
   Makefile.config:964: No libllvm 13+ found, slower source file resolution, please install llvm-devel/llvm-dev
   Makefile.config:1160: Rust is not found. Test workloads with rust are disabled.
     PERF_VERSION = 7.1.rc2.g324a137bfa4a
   tests/builtin-test.c: In function 'finish_tests_parallel':
>> tests/builtin-test.c:520:13: error: invalid storage class for function 'drain_child_process_err'
     520 | static void drain_child_process_err(struct child_test *child)
         |             ^~~~~~~~~~~~~~~~~~~~~~~
>> tests/builtin-test.c:531:12: error: invalid storage class for function 'finish_tests_parallel'
     531 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |            ^~~~~~~~~~~~~~~~~~~~~
>> tests/builtin-test.c:531:12: error: declaration of 'finish_tests_parallel' shadows a global declaration [-Werror=shadow]
   tests/builtin-test.c:514:12: note: shadowed declaration is here
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |            ^~~~~~~~~~~~~~~~~~~~~
   tests/builtin-test.c: In function 'finish_tests_parallel':
>> tests/builtin-test.c:531:54: error: declaration of 'child_tests' shadows a parameter [-Werror=shadow]
     531 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
   tests/builtin-test.c:514:54: note: shadowed declaration is here
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
>> tests/builtin-test.c:531:74: error: declaration of 'num_tests' shadows a parameter [-Werror=shadow]
     531 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                   ~~~~~~~^~~~~~~~~
   tests/builtin-test.c:514:74: note: shadowed declaration is here
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                   ~~~~~~~^~~~~~~~~
>> tests/builtin-test.c:531:89: error: declaration of 'width' shadows a parameter [-Werror=shadow]
     531 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                                     ~~~~^~~~~
   tests/builtin-test.c:514:89: note: shadowed declaration is here
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                                     ~~~~^~~~~
>> tests/builtin-test.c:533:16: error: declaration of 'next_to_print' shadows a previous local [-Werror=shadow]
     533 |         size_t next_to_print = 0;
         |                ^~~~~~~~~~~~~
   tests/builtin-test.c:516:16: note: shadowed declaration is here
     516 |         size_t next_to_print = 0;
         |                ^~~~~~~~~~~~~
>> tests/builtin-test.c:534:24: error: declaration of 'pfds' shadows a previous local [-Werror=shadow]
     534 |         struct pollfd *pfds;
         |                        ^~~~
   tests/builtin-test.c:517:24: note: shadowed declaration is here
     517 |         struct pollfd *pfds;
         |                        ^~~~
>> tests/builtin-test.c:535:17: error: declaration of 'pfd_indices' shadows a previous local [-Werror=shadow]
     535 |         size_t *pfd_indices;
         |                 ^~~~~~~~~~~
   tests/builtin-test.c:518:17: note: shadowed declaration is here
     518 |         size_t *pfd_indices;
         |                 ^~~~~~~~~~~
>> tests/builtin-test.c:536:16: error: declaration of 'num_pfds' shadows a previous local [-Werror=shadow]
     536 |         size_t num_pfds = 0;
         |                ^~~~~~~~
   tests/builtin-test.c:519:16: note: shadowed declaration is here
     519 |         size_t num_pfds = 0;
         |                ^~~~~~~~
   tests/builtin-test.c: In function 'finish_tests_parallel':
>> tests/builtin-test.c:695:12: error: invalid storage class for function 'start_test'
     695 | static int start_test(struct test_suite *test, int curr_suite, int curr_test_case,
         |            ^~~~~~~~~~
   tests/builtin-test.c: In function 'start_test':
   tests/builtin-test.c:696:48: error: declaration of 'width' shadows a parameter [-Werror=shadow]
     696 |                 struct child_test **child, int width, int pass)
         |                                            ~~~~^~~~~
   tests/builtin-test.c:514:89: note: shadowed declaration is here
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                                     ~~~~^~~~~
   tests/builtin-test.c: In function 'finish_tests_parallel':
>> tests/builtin-test.c:749:15: error: 'num_tests' redeclared as different kind of symbol
     749 | static size_t num_tests;
         |               ^~~~~~~~~
   tests/builtin-test.c:514:74: note: previous definition of 'num_tests' with type 'size_t' {aka 'long unsigned int'}
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                   ~~~~~~~^~~~~~~~~
>> tests/builtin-test.c:750:28: error: 'child_tests' redeclared as different kind of symbol
     750 | static struct child_test **child_tests;
         |                            ^~~~~~~~~~~
   tests/builtin-test.c:514:54: note: previous definition of 'child_tests' with type 'struct child_test **'
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
>> tests/builtin-test.c:753:13: error: invalid storage class for function 'cmd_test_sig_handler'
     753 | static void cmd_test_sig_handler(int sig)
         |             ^~~~~~~~~~~~~~~~~~~~
>> tests/builtin-test.c:758:12: error: invalid storage class for function '__cmd_test'
     758 | static int __cmd_test(struct test_suite **suites, int argc, const char *argv[],
         |            ^~~~~~~~~~
   tests/builtin-test.c: In function '__cmd_test':
   tests/builtin-test.c:761:20: error: declaration of 'width' shadows a parameter [-Werror=shadow]
     761 |         static int width = 0;
         |                    ^~~~~
   tests/builtin-test.c:514:89: note: shadowed declaration is here
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                                     ~~~~^~~~~
   tests/builtin-test.c: In function 'finish_tests_parallel':
>> tests/builtin-test.c:874:12: error: invalid storage class for function 'perf_test__list'
     874 | static int perf_test__list(FILE *fp, struct test_suite **suites, int argc, const char **argv)
         |            ^~~~~~~~~~~~~~~
>> tests/builtin-test.c:897:12: error: invalid storage class for function 'workloads__fprintf_list'
     897 | static int workloads__fprintf_list(FILE *fp)
         |            ^~~~~~~~~~~~~~~~~~~~~~~
>> tests/builtin-test.c:908:12: error: invalid storage class for function 'run_workload'
     908 | static int run_workload(const char *work, int argc, const char **argv)
         |            ^~~~~~~~~~~~
>> tests/builtin-test.c:921:12: error: invalid storage class for function 'perf_test__config'
     921 | static int perf_test__config(const char *var, const char *value,
         |            ^~~~~~~~~~~~~~~~~
>> tests/builtin-test.c:930:28: error: invalid storage class for function 'build_suites'
     930 | static struct test_suite **build_suites(void)
         |                            ^~~~~~~~~~~~
   tests/builtin-test.c:983:5: error: declaration of 'cmd_test' shadows a global declaration [-Werror=shadow]
     983 | int cmd_test(int argc, const char **argv)
         |     ^~~~~~~~
   In file included from tests/builtin-test.c:22:
   tools/perf/builtin.h:45:5: note: shadowed declaration is here
      45 | int cmd_test(int argc, const char **argv);
         |     ^~~~~~~~
   tests/builtin-test.c:1064:1: error: expected declaration or statement at end of input
    1064 | }
         | ^
   tests/builtin-test.c:519:16: error: unused variable 'num_pfds' [-Werror=unused-variable]
     519 |         size_t num_pfds = 0;
         |                ^~~~~~~~
   tests/builtin-test.c:518:17: error: unused variable 'pfd_indices' [-Werror=unused-variable]
     518 |         size_t *pfd_indices;
         |                 ^~~~~~~~~~~
   tests/builtin-test.c:517:24: error: unused variable 'pfds' [-Werror=unused-variable]
     517 |         struct pollfd *pfds;
         |                        ^~~~
   tests/builtin-test.c:516:16: error: unused variable 'next_to_print' [-Werror=unused-variable]
     516 |         size_t next_to_print = 0;
         |                ^~~~~~~~~~~~~
   tests/builtin-test.c:1064:1: error: no return statement in function returning non-void [-Werror=return-type]
    1064 | }
         | ^
   tests/builtin-test.c:514:54: error: unused parameter 'child_tests' [-Werror=unused-parameter]
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
   tests/builtin-test.c:514:74: error: unused parameter 'num_tests' [-Werror=unused-parameter]
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                   ~~~~~~~^~~~~~~~~
   tests/builtin-test.c:514:89: error: unused parameter 'width' [-Werror=unused-parameter]
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |                                                                                     ~~~~^~~~~
   tests/builtin-test.c: At top level:
   tests/builtin-test.c:983:5: error: 'cmd_test' defined but not used [-Werror=unused-function]
     983 | int cmd_test(int argc, const char **argv)
         |     ^~~~~~~~
   tests/builtin-test.c:514:12: error: 'finish_tests_parallel' defined but not used [-Werror=unused-function]
     514 | static int finish_tests_parallel(struct child_test **child_tests, size_t num_tests, int width)
         |            ^~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
   make[4]: *** [tools/build/Makefile.build:95: tests/builtin-test.o] Error 1
   make[4]: *** Waiting for unfinished jobs....
   make[3]: *** [tools/build/Makefile.build:158: tests] Error 2
   make[2]: *** [Makefile.perf:785: perf-test-in.o] Error 2
   make[2]: *** Waiting for unfinished jobs....
   make[1]: *** [Makefile.perf:289: sub-make] Error 2

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-15  1:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-15  1:35 tests/builtin-test.c:520:13: error: invalid storage class for function 'drain_child_process_err' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.