kernel/time/namespace.c:481:10: sparse: sparse: Initializer entry defined twice

From: kernel test robot

Date: Thu Dec 03 2026 - 05:33:04 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106
commit: c0aac5975bafc86f6817b14e9f71dcb5064a9183 ns: pad refcount
date: 12 months ago
config: i386-randconfig-2301-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203113106.n3lyAHPh-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203113106.n3lyAHPh-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
| Fixes: c0aac5975baf ("ns: pad refcount")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203113106.n3lyAHPh-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> kernel/time/namespace.c:481:10: sparse: sparse: Initializer entry defined twice
kernel/time/namespace.c:483:10: sparse: also defined here

vim +481 kernel/time/namespace.c

769071ac9f20b6 Andrei Vagin 2019-11-12 479
769071ac9f20b6 Andrei Vagin 2019-11-12 480 struct time_namespace init_time_ns = {
c2bbd2db521b01 Christian Brauner 2025-11-10 @481 .ns = NS_COMMON_INIT(init_time_ns),
769071ac9f20b6 Andrei Vagin 2019-11-12 482 .user_ns = &init_user_ns,
afaa7b5ac7c874 Dmitry Safonov 2019-11-12 483 .frozen_offsets = true,
769071ac9f20b6 Andrei Vagin 2019-11-12 484 };
b36c823b9a4be5 Christian Brauner 2025-09-12 485

:::::: The code at line 481 was first introduced by commit
:::::: c2bbd2db521b018c59fb0ff8e1cdfa8ee907ba88 ns: drop custom reference count initialization for initial namespaces

:::::: TO: Christian Brauner <brauner@xxxxxxxxxx>
:::::: CC: Christian Brauner <brauner@xxxxxxxxxx>

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