* Re: [PATCH] tools: Use fputc() calls in some functions
[not found] <48f2d61f-d468-49b7-881e-f00777db073f@web.de>
@ 2026-08-06 17:40 ` kernel test robot
2026-08-06 21:50 ` kernel test robot
1 sibling, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-08-06 17:40 UTC (permalink / raw)
To: Markus Elfring, acpica-devel, bpf, coresight, kvm, linux-acpi,
linux-arm-kernel, linux-gpio, linux-kselftest, linux-mm,
linux-perf-users, linux-pm, linux-trace-kernel, linuxppc-dev,
mptcp, netdev, platform-driver-x86, virtualization, Adrian Hunter,
Alex Mastro, Alex Williamson, Alexander Shishkin,
Alexei Starovoitov, Andi Kleen, Andrew Lunn, Andrew Morton,
Andrii Nakryiko, Ankur Arora, Arnaldo Carvalho de Melo,
Bartosz Golaszewski
Cc: llvm, oe-kbuild-all, Linux Memory Management List
Hi Markus,
kernel test robot noticed the following build errors:
[auto build test ERROR on perf-tools-next/perf-tools-next]
[also build test ERROR on tip/perf/core perf-tools/perf-tools linus/master v7.2-rc6 next-20260806]
[cannot apply to acme/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Markus-Elfring/tools-Use-fputc-calls-in-some-functions/20260806-165154
base: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git perf-tools-next
patch link: https://lore.kernel.org/r/48f2d61f-d468-49b7-881e-f00777db073f%40web.de
patch subject: [PATCH] tools: Use fputc() calls in some functions
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260806/202608061909.wj199SHx-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260806/202608061909.wj199SHx-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/oe-kbuild-all/202608061909.wj199SHx-lkp@intel.com/
All errors (new ones prefixed by >>):
>> builtin-check.c:300:8: error: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct _IO_FILE *') to parameter of type 'int' [-Wint-conversion]
300 | fputc(stderr, '\n');
| ^~~~~~
/usr/include/stdio.h:155:16: note: expanded from macro 'stderr'
155 | #define stderr stderr
| ^~~~~~
/usr/include/stdio.h:611:23: note: passing argument to parameter '__c' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
>> builtin-check.c:300:16: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wint-conversion]
300 | fputc(stderr, '\n');
| ^~~~
/usr/include/stdio.h:611:34: note: passing argument to parameter '__stream' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
2 errors generated.
make[5]: *** [tools/build/Makefile.build:95: tools/objtool/builtin-check.o] Error 1
>> disas.c:540:9: error: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct _IO_FILE *') to parameter of type 'int' [-Wint-conversion]
540 | fputc(stream, '\n');
| ^~~~~~
/usr/include/stdio.h:611:23: note: passing argument to parameter '__c' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
>> disas.c:540:17: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wint-conversion]
540 | fputc(stream, '\n');
| ^~~~
/usr/include/stdio.h:611:34: note: passing argument to parameter '__stream' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
2 errors generated.
make[5]: *** [tools/build/Makefile.build:95: tools/objtool/disas.o] Error 1
make[5]: Target '__build' not remade because of errors.
make[4]: *** [Makefile:123: tools/objtool/objtool-in.o] Error 2
make[4]: Target 'all' not remade because of errors.
make[3]: *** [Makefile:74: objtool] Error 2
make[2]: *** [Makefile:1587: tools/objtool] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools: Use fputc() calls in some functions
[not found] <48f2d61f-d468-49b7-881e-f00777db073f@web.de>
2026-08-06 17:40 ` [PATCH] tools: Use fputc() calls in some functions kernel test robot
@ 2026-08-06 21:50 ` kernel test robot
2026-08-07 6:33 ` Markus Elfring
1 sibling, 1 reply; 3+ messages in thread
From: kernel test robot @ 2026-08-06 21:50 UTC (permalink / raw)
To: Markus Elfring, acpica-devel, bpf, coresight, kvm, linux-acpi,
linux-arm-kernel, linux-gpio, linux-kselftest, linux-mm,
linux-perf-users, linux-pm, linux-trace-kernel, linuxppc-dev,
mptcp, netdev, platform-driver-x86, virtualization, Adrian Hunter,
Alex Mastro, Alex Williamson, Alexander Shishkin,
Alexei Starovoitov, Andi Kleen, Andrew Lunn, Andrew Morton,
Andrii Nakryiko, Ankur Arora, Arnaldo Carvalho de Melo,
Bartosz Golaszewski
Cc: llvm, oe-kbuild-all, Linux Memory Management List
Hi Markus,
kernel test robot noticed the following build errors:
[auto build test ERROR on perf-tools-next/perf-tools-next]
[also build test ERROR on tip/perf/core perf-tools/perf-tools linus/master v7.2-rc6 next-20260806]
[cannot apply to acme/perf/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Markus-Elfring/tools-Use-fputc-calls-in-some-functions/20260806-165154
base: https://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git perf-tools-next
patch link: https://lore.kernel.org/r/48f2d61f-d468-49b7-881e-f00777db073f%40web.de
patch subject: [PATCH] tools: Use fputc() calls in some functions
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260807/202608070547.MRKfa3bH-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260807/202608070547.MRKfa3bH-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/oe-kbuild-all/202608070547.MRKfa3bH-lkp@intel.com/
All errors (new ones prefixed by >>):
>> builtin-check.c:300:8: error: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct _IO_FILE *') to parameter of type 'int' [-Wint-conversion]
300 | fputc(stderr, '\n');
| ^~~~~~
/usr/include/stdio.h:155:16: note: expanded from macro 'stderr'
155 | #define stderr stderr
| ^~~~~~
/usr/include/stdio.h:611:23: note: passing argument to parameter '__c' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
>> builtin-check.c:300:16: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wint-conversion]
300 | fputc(stderr, '\n');
| ^~~~
/usr/include/stdio.h:611:34: note: passing argument to parameter '__stream' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
2 errors generated.
>> disas.c:540:9: error: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct _IO_FILE *') to parameter of type 'int' [-Wint-conversion]
540 | fputc(stream, '\n');
| ^~~~~~
/usr/include/stdio.h:611:23: note: passing argument to parameter '__c' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
>> disas.c:540:17: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'FILE *' (aka 'struct _IO_FILE *') [-Wint-conversion]
540 | fputc(stream, '\n');
| ^~~~
/usr/include/stdio.h:611:34: note: passing argument to parameter '__stream' here
611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
| ^
make[5]: *** [tools/build/Makefile.build:96: tools/objtool/builtin-check.o] Error 1
2 errors generated.
make[5]: *** [tools/build/Makefile.build:95: tools/objtool/disas.o] Error 1
make[5]: Target '__build' not remade because of errors.
make[4]: *** [Makefile:123: tools/objtool/objtool-in.o] Error 2
make[4]: Target 'all' not remade because of errors.
make[3]: *** [Makefile:74: objtool] Error 2
make[2]: *** [Makefile:1587: tools/objtool] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: tools: Use fputc() calls in some functions
2026-08-06 21:50 ` kernel test robot
@ 2026-08-07 6:33 ` Markus Elfring
0 siblings, 0 replies; 3+ messages in thread
From: Markus Elfring @ 2026-08-07 6:33 UTC (permalink / raw)
To: lkp, acpica-devel, bpf, coresight, kvm, linux-acpi,
linux-arm-kernel, linux-gpio, linux-kselftest, linux-mm,
linux-perf-users, linux-pm, linux-trace-kernel, linuxppc-dev,
mptcp, netdev, platform-driver-x86, virtualization, Adrian Hunter,
Alex Mastro, Alex Williamson, Alexander Shishkin,
Alexei Starovoitov, Andi Kleen, Andrew Lunn, Andrew Morton,
Andrii Nakryiko, Ankur Arora, Arnaldo Carvalho de Melo,
Bartosz Golaszewski
Cc: llvm, oe-kbuild-all, LKML, kernel-janitors
…
> All errors (new ones prefixed by >>):
>
>>> builtin-check.c:300:8: error: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct _IO_FILE *') to parameter of type 'int' [-Wint-conversion]
> 300 | fputc(stderr, '\n');
> | ^~~~~~
> /usr/include/stdio.h:155:16: note: expanded from macro 'stderr'
> 155 | #define stderr stderr
> | ^~~~~~
> /usr/include/stdio.h:611:23: note: passing argument to parameter '__c' here
> 611 | extern int fputc (int __c, FILE *__stream) __nonnull ((2));
> | ^…
Would you become interested to take another look at a corrected source code transformation approach?
Improving output for single characters (with SmPL)?
https://lore.kernel.org/cocci/406093f5-ee7d-4ae9-808b-2b42d4846eab@web.de/
https://sympa.inria.fr/sympa/arc/cocci/2026-07/msg00055.html
https://lkml.org/lkml/2026/7/23/2205
Can similar adjustments become more helpful for further software areas?
Regards,
Markus
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-07 6:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <48f2d61f-d468-49b7-881e-f00777db073f@web.de>
2026-08-06 17:40 ` [PATCH] tools: Use fputc() calls in some functions kernel test robot
2026-08-06 21:50 ` kernel test robot
2026-08-07 6:33 ` Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox