Messages in this thread | | | Date | Thu, 1 Jun 2023 22:33:53 +0800 | From | kernel test robot <> | Subject | pmu-events/jevents.c:72:22: warning: no previous prototype for 'convert' |
| |
Hi Kajol,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 929ed21dfdb6ee94391db51c9eedb63314ef6847 commit: 560ccbc4a52c567096023e0c6a9b920048e59017 perf jevents: Add support for parsing perchip/percore events date: 2 years, 9 months ago compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=560ccbc4a52c567096023e0c6a9b920048e59017 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 560ccbc4a52c567096023e0c6a9b920048e59017 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 <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202306012020.E4oEWbWO-lkp@intel.com/
Note: functions only called from assembly code should be annotated with the asmlinkage attribute All warnings (new ones prefixed by >>):
Warning: Kernel ABI header at 'tools/include/uapi/linux/in.h' differs from latest version at 'include/uapi/linux/in.h' Warning: Kernel ABI header at 'tools/include/uapi/linux/perf_event.h' differs from latest version at 'include/uapi/linux/perf_event.h' Makefile.config:697: No libcrypto.h found, disables jitted code injection, please install openssl-devel or libssl-dev >> pmu-events/jevents.c:72:22: warning: no previous prototype for 'convert' [-Wmissing-prototypes] 72 | enum aggr_mode_class convert(const char *aggr_mode) | ^~~~~~~ In file included from sigchain.c:3: In function 'xrealloc', inlined from 'sigchain_push.isra' at sigchain.c:26:2: subcmd-util.h:56:23: error: pointer may be used after 'realloc' [-Werror=use-after-free] 56 | ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to 'realloc' here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:58:31: error: pointer may be used after 'realloc' [-Werror=use-after-free] 58 | ret = realloc(ptr, 1); | ^~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to 'realloc' here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ In function 'xrealloc', inlined from 'sigchain_push' at sigchain.c:26:2, inlined from 'sigchain_push_common' at sigchain.c:53:2: subcmd-util.h:56:23: error: pointer may be used after 'realloc' [-Werror=use-after-free] 56 | ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to 'realloc' here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:58:31: error: pointer may be used after 'realloc' [-Werror=use-after-free] 58 | ret = realloc(ptr, 1); | ^~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to 'realloc' here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [tools/build/Makefile.build:96: tools/perf/sigchain.o] Error 1 make[6]: *** Waiting for unfinished jobs.... In file included from help.c:12: In function 'xrealloc', inlined from 'add_cmdname' at help.c:24:2: subcmd-util.h:56:23: error: pointer may be used after 'realloc' [-Werror=use-after-free] 56 | ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to 'realloc' here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ subcmd-util.h:58:31: error: pointer may be used after 'realloc' [-Werror=use-after-free] 58 | ret = realloc(ptr, 1); | ^~~~~~~~~~~~~~~ subcmd-util.h:52:21: note: call to 'realloc' here 52 | void *ret = realloc(ptr, size); | ^~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [tools/build/Makefile.build:96: tools/perf/help.o] Error 1 make[5]: *** [Makefile:59: tools/perf/libsubcmd-in.o] Error 2 make[4]: *** [Makefile.perf:811: tools/perf/libsubcmd.a] Error 2 make[4]: *** Waiting for unfinished jobs.... PERF_VERSION = 5.9.rc3.g560ccbc4a52c make[3]: *** [Makefile.perf:233: sub-make] Error 2 make[2]: *** [Makefile:70: all] Error 2
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
| |