Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [frederic-dynticks:timers/core-v4 9/15] kernel/sched/core.c:5521:3: error: field designator 'idle_sleeptime_seq' does not refer to any field in type 'typeof(struct kernel_cpustat)' (aka 'struct kernel_cpustat')
@ 2026-05-07 14:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-07 14:53 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git timers/core-v4
head:   4c91a3f3d50ec8ceda89c083db92beb25a5526ee
commit: e7ac735799f7047514ea9badbbdff16e96a5556d [9/15] tick/sched: Move dyntick-idle cputime accounting to cputime code
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20260507/202605072245.sxSsDd16-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260507/202605072245.sxSsDd16-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/202605072245.sxSsDd16-lkp@intel.com/

All errors (new ones prefixed by >>):

>> kernel/sched/core.c:5521:3: error: field designator 'idle_sleeptime_seq' does not refer to any field in type 'typeof(struct kernel_cpustat)' (aka 'struct kernel_cpustat')
    5521 |         .idle_sleeptime_seq = SEQCNT_ZERO(kernel_cpustat.idle_sleeptime_seq)
         |         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8055:12: warning: array index -1 is before the beginning of the array [-Warray-bounds]
    8055 |                                        preempt_modes[preempt_dynamic_mode] : "undef",
         |                                        ^             ~~~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c:8030:1: note: array 'preempt_modes' declared here
    8030 | const char *preempt_modes[] = {
         | ^
   1 warning and 1 error generated.


vim +5521 kernel/sched/core.c

  5518	
  5519	DEFINE_PER_CPU(struct kernel_stat, kstat);
  5520	DEFINE_PER_CPU(struct kernel_cpustat, kernel_cpustat) = {
> 5521		.idle_sleeptime_seq = SEQCNT_ZERO(kernel_cpustat.idle_sleeptime_seq)
  5522	};
  5523	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-07 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 14:53 [frederic-dynticks:timers/core-v4 9/15] kernel/sched/core.c:5521:3: error: field designator 'idle_sleeptime_seq' does not refer to any field in type 'typeof(struct kernel_cpustat)' (aka 'struct kernel_cpustat') kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox