public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Pengpeng Hou <pengpeng@iscas.ac.cn>,
	Chris Zankel <chris@zankel.net>,
	Max Filippov <jcmvbkbc@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Pengpeng Hou <pengpeng@iscas.ac.cn>
Subject: Re: [PATCH] xtensa: iss: bound command line construction in platform_setup()
Date: Sun, 19 Apr 2026 07:23:33 +0800	[thread overview]
Message-ID: <202604190738.DDzpg4Ro-lkp@intel.com> (raw)
In-Reply-To: <20260417074226.9295-1-pengpeng@iscas.ac.cn>

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@intel.com/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@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/202604190738.DDzpg4Ro-lkp@intel.com/

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

      parent reply	other threads:[~2026-04-18 23:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-17  7:42 [PATCH] xtensa: iss: bound command line construction in platform_setup() Pengpeng Hou
2026-04-17  8:39 ` Max Filippov
2026-04-18 23:23 ` kernel test robot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202604190738.DDzpg4Ro-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chris@zankel.net \
    --cc=jcmvbkbc@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pengpeng@iscas.ac.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox