main.c:276:31: error: passing argument 1 of 'fputc' makes integer from pointer without a cast
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
:::::: :::::: Manual check reason: "low confidence bisect report" :::::: BCC: [email protected] CC: [email protected] TO: Markus Elfring <[email protected]> CC: 0day robot <[email protected]> Hi Markus, FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant. tree: https://github.com/intel-lab-lkp/linux/commits/Markus-Elfring/tools-Use-fputc-calls-in-some-functions/20260806-165154 head: e56bf8a92708e92480f6dc2a8fcf773661b9e616 commit: e56bf8a92708e92480f6dc2a8fcf773661b9e616 tools: Use fputc() calls in some functions date: 2 hours ago :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260806/[email protected]/config) compiler: aarch64-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/20260806/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ All errors (new ones prefixed by >>): Makefile.config:564: No elfutils/debuginfod.h found, no debuginfo server support, please install libdebuginfod-dev/elfutils-debuginfod-client-devel or equivalent Makefile.config:938: No libllvm 13+ found, slower source file resolution, please install llvm-devel/llvm-dev Makefile.config:1044: No babeltrace2 found, disables 'perf data' CTF format support, please install libbabeltrace2-dev[el] Makefile.config:1134: Rust is not found. Test workloads with rust are disabled. PERF_VERSION = 7.2.rc4.ge56bf8a92708 cc1: warning: '-Wformat-y2k' ignored without '-Wformat' [-Wformat-y2k] cc1: warning: '-Wformat-security' ignored without '-Wformat' [-Wformat-security] main.c: In function 'fprint_hex': >> main.c:276:31: error: passing argument 1 of 'fputc' makes integer from pointer without a cast [-Wint-conversion] 276 | fputc(f, '\n'); | ^ | | | FILE * In file included from main.c:8: /usr/include/stdio.h:611:23: note: expected 'int' but argument is of type 'FILE *' 611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2)); | ~~~~^~~ >> main.c:276:34: error: passing argument 2 of 'fputc' makes pointer from integer without a cast [-Wint-conversion] 276 | fputc(f, '\n'); | ^~~~ | | | int /usr/include/stdio.h:611:34: note: expected 'FILE *' but argument is of type 'int' 611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2)); | ~~~~~~^~~~~~~~ make[4]: *** [Makefile:294: tools/perf/util/bpf_skel/.tmp/bootstrap/main.o] Error 1 make[4]: *** Waiting for unfinished jobs.... common.c: In function 'p_err': >> common.c:56:23: error: passing argument 1 of 'fputc' makes integer from pointer without a cast [-Wint-conversion] 56 | fputc(stderr, '\n'); | ^~~~~~ | | | FILE * In file included from common.c:15: /usr/include/stdio.h:611:23: note: expected 'int' but argument is of type 'FILE *' 611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2)); | ~~~~^~~ >> common.c:56:31: error: passing argument 2 of 'fputc' makes pointer from integer without a cast [-Wint-conversion] 56 | fputc(stderr, '\n'); | ^~~~ | | | int /usr/include/stdio.h:611:34: note: expected 'FILE *' but argument is of type 'int' 611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2)); | ~~~~~~^~~~~~~~ common.c: In function 'p_info': common.c:70:15: error: passing argument 1 of 'fputc' makes integer from pointer without a cast [-Wint-conversion] 70 | fputc(stderr, '\n'); | ^~~~~~ | | | FILE * /usr/include/stdio.h:611:23: note: expected 'int' but argument is of type 'FILE *' 611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2)); | ~~~~^~~ common.c:70:23: error: passing argument 2 of 'fputc' makes pointer from integer without a cast [-Wint-conversion] 70 | fputc(stderr, '\n'); | ^~~~ | | | int /usr/include/stdio.h:611:34: note: expected 'FILE *' but argument is of type 'int' 611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2)); | ~~~~~~^~~~~~~~ make[4]: *** [Makefile:294: tools/perf/util/bpf_skel/.tmp/bootstrap/common.o] Error 1 make[3]: *** [bpf_skel.mak:44: tools/perf/util/bpf_skel/.tmp/bootstrap/bpftool] Error 2 make[2]: *** [Makefile.perf:622: bpf-skel-prepare] Error 2 make[1]: *** [Makefile.perf:281: sub-make] Error 2 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki