[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202510221519.nzy5mUJ3-lkp@intel.com>
Date: Wed, 22 Oct 2025 15:31:07 +0800
From: kernel test robot <lkp@...el.com>
To: Biancaa Ramesh <biancaa2210329@....edu.in>,
linux-kernel@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev,
Biancaa Ramesh <biancaa2210329@....edu.in>
Subject: Re: [PATCH] Kconfig:Uses glibc so strscpy has to be manually- added
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@...el.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
Powered by blists - more mailing lists