linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ryota Sakamoto <sakamo.ryota@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	linux-kernel@vger.kernel.org,
	Ryota Sakamoto <sakamo.ryota@gmail.com>
Subject: Re: [PATCH] lib/tests: add KUnit test for argv_split()
Date: Tue, 3 Feb 2026 06:42:05 +0800	[thread overview]
Message-ID: <202602030650.7n64kb2g-lkp@intel.com> (raw)
In-Reply-To: <20260203-kunit-argv_split-v1-1-0d3545314a41@gmail.com>

Hi Ryota,

kernel test robot noticed the following build errors:

[auto build test ERROR on 18f7fcd5e69a04df57b563360b88be72471d6b62]

url:    https://github.com/intel-lab-lkp/linux/commits/Ryota-Sakamoto/lib-tests-add-KUnit-test-for-argv_split/20260203-004209
base:   18f7fcd5e69a04df57b563360b88be72471d6b62
patch link:    https://lore.kernel.org/r/20260203-kunit-argv_split-v1-1-0d3545314a41%40gmail.com
patch subject: [PATCH] lib/tests: add KUnit test for argv_split()
config: sparc-randconfig-001-20260203 (https://download.01.org/0day-ci/archive/20260203/202602030650.7n64kb2g-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260203/202602030650.7n64kb2g-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/202602030650.7n64kb2g-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> lib/tests/argv_split_kunit.c:55:3: warning: braces around scalar initializer
      .argv = {},
      ^
   lib/tests/argv_split_kunit.c:55:3: note: (near initialization for 'argv_split_cases[5].argv')
>> lib/tests/argv_split_kunit.c:55:11: error: empty scalar initializer
      .argv = {},
              ^
   lib/tests/argv_split_kunit.c:55:11: note: (near initialization for 'argv_split_cases[5].argv')


vim +55 lib/tests/argv_split_kunit.c

    19	
    20	static struct argv_split_test_case argv_split_cases[] = {
    21		{
    22			.str = "basic words",
    23			.input = "foo bar",
    24			.argc = 2,
    25			.argv = (const char *[]){ "foo", "bar" },
    26		},
    27		{
    28			.str = "single word",
    29			.input = "foobar",
    30			.argc = 1,
    31			.argv = (const char *[]){ "foobar" },
    32		},
    33		{
    34			.str = "leading/trailing whitespace",
    35			.input = "   hello  world ",
    36			.argc = 2,
    37			.argv = (const char *[]){ "hello", "world" },
    38		},
    39		{
    40			.str = "mixing space",
    41			.input = " \t foo \n bar   baz",
    42			.argc = 3,
    43			.argv = (const char *[]){ "foo", "bar", "baz" },
    44		},
    45		{
    46			.str = "quotes are treated as literals",
    47			.input = "ls \"my file/\"",
    48			.argc = 3,
    49			.argv = (const char *[]){ "ls", "\"my", "file/\"" },
    50		},
    51		{
    52			.str = "empty",
    53			.input = "",
    54			.argc = 0,
  > 55			.argv = {},
    56		},
    57	};
    58	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


           reply	other threads:[~2026-02-02 22:42 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20260203-kunit-argv_split-v1-1-0d3545314a41@gmail.com>]

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=202602030650.7n64kb2g-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sakamo.ryota@gmail.com \
    /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