Re: [PATCH] add utsname_set_field to reuse code in setdomainname and sethostname

From: kernel test robot

Date: Fri Nov 06 2026 - 10:59:49 EST


Hi Laurijssen,

kernel test robot noticed the following build errors:

[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on brauner-vfs/vfs.all linus/master v7.4-rc1 next-20261105]
[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/Laurijssen/add-utsname_set_field-to-reuse-code-in-setdomainname-and-sethostname/20261105-130751
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20261105120751.920311-1-laurijssen%40protonmail.com
patch subject: [PATCH] add utsname_set_field to reuse code in setdomainname and sethostname
config: sh-randconfig-1000-20261106 (https://download.01.org/0day-ci/archive/20261106/202611062313.QD6BbpXI-lkp@xxxxxxxxx/config)
compiler: sh4-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261106/202611062313.QD6BbpXI-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611062313.QD6BbpXI-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

sh4-linux-ld: kernel/sys.o: in function `__se_sys_sethostname':
>> kernel/sys.c:1422:(.text+0x3d5c): undefined reference to `utsname_set_field'
sh4-linux-ld: kernel/sys.o: in function `__se_sys_setdomainname':
kernel/sys.c:1455:(.text+0x3edc): undefined reference to `utsname_set_field'


vim +1422 kernel/sys.c

5cacdb4add1b1e5 Christoph Hellwig 2010-03-10 1421
5a8a82b1d306a32 Heiko Carstens 2009-01-14 @1422 SYSCALL_DEFINE2(sethostname, char __user *, name, int, len)
^1da177e4c3f415 Linus Torvalds 2005-04-16 1423 {
58c79d6f0053050 Laurijssen 2026-11-05 1424 return utsname_set_field(name, len, UTS_PROC_HOSTNAME);
^1da177e4c3f415 Linus Torvalds 2005-04-16 1425 }
^1da177e4c3f415 Linus Torvalds 2005-04-16 1426

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