Re: [PATCH] xtensa: iss: bound command line construction in platform_setup()
From: kernel test robot
Date: Sat Apr 18 2026 - 19:23:56 EST
Hi Pengpeng,
kernel test robot noticed the following build warnings:
[auto build test WARNING on jcmvbkbc-xtensa/xtensa-for-next]
[also build test WARNING on linus/master v7.0 next-20260417]
[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/Pengpeng-Hou/xtensa-iss-bound-command-line-construction-in-platform_setup/20260417-224100
base: https://github.com/jcmvbkbc/linux-xtensa xtensa-for-next
patch link: https://lore.kernel.org/r/20260417074226.9295-1-pengpeng%40iscas.ac.cn
patch subject: [PATCH] xtensa: iss: bound command line construction in platform_setup()
config: xtensa-allnoconfig (https://download.01.org/0day-ci/archive/20260419/202604190738.DDzpg4Ro-lkp@xxxxxxxxx/config)
compiler: xtensa-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260419/202604190738.DDzpg4Ro-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604190738.DDzpg4Ro-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
arch/xtensa/platforms/iss/setup.c: In function 'platform_setup':
>> arch/xtensa/platforms/iss/setup.c:75:54: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'void *' [-Wformat=]
75 | "%s%s", i > 1 ? " " : "",
| ~^
| |
| char *
| %p
76 | argv[i]);
| ~~~~~~~
| |
| void *
vim +75 arch/xtensa/platforms/iss/setup.c
54
55 void __init platform_setup(char **p_cmdline)
56 {
57 static void *argv[COMMAND_LINE_SIZE / sizeof(void *)] __initdata;
58 static char cmdline[COMMAND_LINE_SIZE] __initdata;
59 int argc = simc_argc();
60 int argv_size = simc_argv_size();
61
62 if (argc > 1) {
63 if (argv_size > sizeof(argv)) {
64 pr_err("%s: command line too long: argv_size = %d\n",
65 __func__, argv_size);
66 } else {
67 int i, len = 0;
68
69 cmdline[0] = 0;
70 simc_argv((void *)argv);
71
72 for (i = 1; i < argc; ++i) {
73 len += scnprintf(cmdline + len,
74 COMMAND_LINE_SIZE - len,
> 75 "%s%s", i > 1 ? " " : "",
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki