From: kernel test robot <lkp@intel.com>
To: Biancaa Ramesh <biancaa2210329@ssn.edu.in>, linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
Biancaa Ramesh <biancaa2210329@ssn.edu.in>
Subject: Re: [PATCH] Kconfig:Uses glibc so strscpy has to be manually- added
Date: Wed, 22 Oct 2025 15:31:07 +0800 [thread overview]
Message-ID: <202510221519.nzy5mUJ3-lkp@intel.com> (raw)
In-Reply-To: <20251021171446.46942-1-biancaa2210329@ssn.edu.in>
Hi Biancaa,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.18-rc2 next-20251022]
[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/Biancaa-Ramesh/Kconfig-Uses-glibc-so-strscpy-has-to-be-manually-added/20251022-011608
base: linus/master
patch link: https://lore.kernel.org/r/20251021171446.46942-1-biancaa2210329%40ssn.edu.in
patch subject: [PATCH] Kconfig:Uses glibc so strscpy has to be manually- added
config: arm-randconfig-r071-20251022 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251022/202510221519.nzy5mUJ3-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/202510221519.nzy5mUJ3-lkp@intel.com/
All errors (new ones prefixed by >>):
scripts/kconfig/util.c: In function 'str_new':
>> scripts/kconfig/util.c:70:9: error: implicit declaration of function 'strscpy'; did you mean 'strlcpy'? [-Wimplicit-function-declaration]
70 | strscpy(gs.s, "\0");
| ^~~~~~~
| strlcpy
scripts/kconfig/symbol.c: In function 'sym_set_string_value':
>> scripts/kconfig/symbol.c:812:9: error: implicit declaration of function 'strscpy'; did you mean 'strlcpy'? [-Wimplicit-function-declaration]
812 | strscpy(val, newval);
| ^~~~~~~
| strlcpy
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/util.o] Error 1
scripts/kconfig/confdata.c: In function 'conf_touch_dep':
>> scripts/kconfig/confdata.c:157:9: error: implicit declaration of function 'strscpy'; did you mean 'strlcpy'? [-Wimplicit-function-declaration]
157 | strscpy(depfile_path + depfile_prefix_len, name);
| ^~~~~~~
| strlcpy
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/confdata.o] Error 1
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/symbol.o] Error 1
make[3]: Target 'oldconfig' not remade because of errors.
make[2]: *** [Makefile:742: oldconfig] Error 2
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'oldconfig' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'oldconfig' not remade because of errors.
--
scripts/kconfig/util.c: In function 'str_new':
>> scripts/kconfig/util.c:70:9: error: implicit declaration of function 'strscpy'; did you mean 'strlcpy'? [-Wimplicit-function-declaration]
70 | strscpy(gs.s, "\0");
| ^~~~~~~
| strlcpy
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/util.o] Error 1
scripts/kconfig/confdata.c: In function 'conf_touch_dep':
>> scripts/kconfig/confdata.c:157:9: error: implicit declaration of function 'strscpy'; did you mean 'strlcpy'? [-Wimplicit-function-declaration]
157 | strscpy(depfile_path + depfile_prefix_len, name);
| ^~~~~~~
| strlcpy
scripts/kconfig/symbol.c: In function 'sym_set_string_value':
>> scripts/kconfig/symbol.c:812:9: error: implicit declaration of function 'strscpy'; did you mean 'strlcpy'? [-Wimplicit-function-declaration]
812 | strscpy(val, newval);
| ^~~~~~~
| strlcpy
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/confdata.o] Error 1
make[3]: *** [scripts/Makefile.host:131: scripts/kconfig/symbol.o] Error 1
make[3]: Target 'olddefconfig' not remade because of errors.
make[2]: *** [Makefile:742: olddefconfig] Error 2
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Target 'olddefconfig' not remade because of errors.
make: *** [Makefile:248: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
vim +70 scripts/kconfig/util.c
62
63 /* Allocate initial growable string */
64 struct gstr str_new(void)
65 {
66 struct gstr gs;
67 gs.s = xmalloc(sizeof(char) * 64);
68 gs.len = 64;
69 gs.max_width = 0;
> 70 strscpy(gs.s, "\0");
71 return gs;
72 }
73
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-10-22 7:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-21 17:14 Biancaa Ramesh
2025-10-21 19:28 ` Markus Elfring
2025-10-22 7:31 ` kernel test robot [this message]
2025-10-22 7:41 ` kernel test robot
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=202510221519.nzy5mUJ3-lkp@intel.com \
--to=lkp@intel.com \
--cc=biancaa2210329@ssn.edu.in \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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
all inboxes | Powered by JetHome®