From: kernel test robot <lkp@intel.com>
To: Douglas Anderson <dianders@chromium.org>,
Daniel Thompson <daniel.thompson@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev,
kgdb-bugreport@lists.sourceforge.net,
Douglas Anderson <dianders@chromium.org>,
Christophe JAILLET <christophe.jaillet@wanadoo.fr>,
Jason Wessel <jason.wessel@windriver.com>,
Thorsten Blum <thorsten.blum@toblux.com>,
Yuran Pereira <yuran.pereira@hotmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 11/13] kdb: Abstract out parsing for mdWcN
Date: Wed, 19 Jun 2024 05:02:13 +0800 [thread overview]
Message-ID: <202406190433.U3alc3Xi-lkp@intel.com> (raw)
In-Reply-To: <20240617173426.11.I899d035485269f5110a3323fbb1680fbba718e4c@changeid>
Hi Douglas,
kernel test robot noticed the following build warnings:
[auto build test WARNING on v6.10-rc4]
[also build test WARNING on linus/master next-20240618]
[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/Douglas-Anderson/kdb-Get-rid-of-minlen-for-the-md-command/20240618-084245
base: v6.10-rc4
patch link: https://lore.kernel.org/r/20240617173426.11.I899d035485269f5110a3323fbb1680fbba718e4c%40changeid
patch subject: [PATCH 11/13] kdb: Abstract out parsing for mdWcN
config: arc-randconfig-001-20240619 (https://download.01.org/0day-ci/archive/20240619/202406190433.U3alc3Xi-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240619/202406190433.U3alc3Xi-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/202406190433.U3alc3Xi-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/debug/kdb/kdb_main.c:1606: warning: Function parameter or struct member 'bytesperword' not described in 'kdb_md_parse_arg0'
vim +1606 kernel/debug/kdb/kdb_main.c
1593
1594 /**
1595 * kdb_md_parse_arg0() - Parse argv[0] for "md" command
1596 *
1597 * @cmd: The name of the command, like "md"
1598 * @arg0: The value of argv[0].
1599 * @repeat: If argv0 modifies repeat count we'll adjust here.
1600 * @bytesperword Ifargv0 modifies bytesperword we'll adjust here.
1601 *
1602 * Return: true if this was a valid cmd; false otherwise.
1603 */
1604 static bool kdb_md_parse_arg0(const char *cmd, const char *arg0,
1605 int *repeat, int *bytesperword)
> 1606 {
1607 int cmdlen = strlen(cmd);
1608
1609 /* arg0 must _start_ with the command string or it's a no-go. */
1610 if (strncmp(cmd, arg0, cmdlen) != 0)
1611 return false;
1612
1613 /* If it's just the base command, we're done and it's good. */
1614 if (arg0[cmdlen] == '\0')
1615 return true;
1616
1617 /*
1618 * The first byte after the base command must be bytes per word, a
1619 * digit. The actual value of bytesperword will be validated later.
1620 */
1621 if (!isdigit(arg0[cmdlen]))
1622 return false;
1623 *bytesperword = (int)(arg0[cmdlen] - '0');
1624 cmdlen++;
1625
1626 /* After the bytes per word must be end of string or a 'c'. */
1627 if (arg0[cmdlen] == '\0')
1628 return true;
1629 if (arg0[cmdlen] != 'c')
1630 return false;
1631 cmdlen++;
1632
1633 /* After the "c" is the repeat. */
1634 return kstrtouint(arg0 + cmdlen, 10, repeat) == 0;
1635 }
1636
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-06-18 21:02 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-18 0:34 [PATCH 00/13] kdb: Add the ability to read iomapped memory via kdb + clean up "md" commands Douglas Anderson
2024-06-18 0:34 ` [PATCH 01/13] kdb: Get rid of "minlen" for the "md" command Douglas Anderson
2024-06-18 0:34 ` [PATCH 02/13] kdb: Document the various "md" commands better Douglas Anderson
2024-06-18 11:24 ` Daniel Thompson
2024-06-18 14:42 ` Doug Anderson
2024-06-18 0:34 ` [PATCH 03/13] kdb: Use "bool" in "md" implementation where appropriate Douglas Anderson
2024-06-18 0:34 ` [PATCH 04/13] kdb: Drop "offset" and "name" args to kdbgetaddrarg() Douglas Anderson
2024-06-18 0:34 ` [PATCH 05/13] kdb: Separate out "mdr" handling Douglas Anderson
2024-06-18 11:29 ` Daniel Thompson
2024-06-18 0:34 ` [PATCH 06/13] kdb: Remove "mdW" and "mdWcN" handling of "W" == 0 Douglas Anderson
2024-06-18 11:37 ` Daniel Thompson
2024-06-18 14:42 ` Doug Anderson
2024-06-18 0:34 ` [PATCH 07/13] kdb: Tweak "repeat" handling code for "mdW" and "mdWcN" Douglas Anderson
2024-06-18 12:57 ` Daniel Thompson
2024-06-18 14:43 ` Doug Anderson
2024-06-18 0:34 ` [PATCH 08/13] kdb: In kdb_md() make `repeat` and `mdcount` calculations more obvious Douglas Anderson
2024-06-18 0:34 ` [PATCH 09/13] kdb: Use 'unsigned int' in kdb_md() where appropriate Douglas Anderson
2024-06-18 15:26 ` Daniel Thompson
2024-06-18 0:34 ` [PATCH 10/13] kdb: Replease simple_strtoul() with kstrtouint() in kdb_md() Douglas Anderson
2024-06-18 0:34 ` [PATCH 11/13] kdb: Abstract out parsing for mdWcN Douglas Anderson
2024-06-18 21:02 ` kernel test robot [this message]
2024-06-18 0:34 ` [PATCH 12/13] kdb: Add mdpW / mdpWcN commands Douglas Anderson
2024-06-18 0:34 ` [PATCH 13/13] kdb: Add mdi, mdiW / mdiWcN commands to show iomapped memory Douglas Anderson
2024-06-18 15:59 ` Daniel Thompson
2024-06-18 19:33 ` Doug Anderson
2024-06-21 15:43 ` Daniel Thompson
2024-06-21 19:52 ` Doug Anderson
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=202406190433.U3alc3Xi-lkp@intel.com \
--to=lkp@intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=daniel.thompson@linaro.org \
--cc=dianders@chromium.org \
--cc=jason.wessel@windriver.com \
--cc=kgdb-bugreport@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=thorsten.blum@toblux.com \
--cc=yuran.pereira@hotmail.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