
tree: https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS head: ba07135cf74b1424e2f7f0c60e59c5b206ab320c commit: 1af75aa95dc59c902a0ce961fa499b44a2fdf97c [1743/1743] sched/cputime: use sched idle time accounting config: x86_64-buildonly-randconfig-2004-20250802 (https://download.01.org/0day-ci/archive/20250804/202508041745.lcYK6ulr-lkp@i...) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250804/202508041745.lcYK6ulr-lkp@i...) 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/202508041745.lcYK6ulr-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/asm-generic/percpu.h:7, from arch/x86/include/asm/percpu.h:544, from arch/x86/include/asm/current.h:6, from include/linux/sched.h:12, from kernel/sched/sched.h:5, from kernel/sched/cputime.c:4:
kernel/sched/cputime.c:571:38: warning: ignoring attribute 'section (".data..percpu..shared_aligned")' because it conflicts with previous 'section (".data..percpu")' [-Wattributes] 571 | DEFINE_PER_CPU_SHARED_ALIGNED(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~ include/linux/percpu-defs.h:93:45: note: in definition of macro 'DEFINE_PER_CPU_SECTION' 93 | extern __PCPU_ATTRS(sec) __typeof__(type) name; \ | ^~~~ kernel/sched/cputime.c:571:1: note: in expansion of macro 'DEFINE_PER_CPU_SHARED_ALIGNED' 571 | DEFINE_PER_CPU_SHARED_ALIGNED(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/sched.h:935:36: note: previous declaration here 935 | DECLARE_PER_CPU(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~~ include/linux/percpu-defs.h:87:51: note: in definition of macro 'DECLARE_PER_CPU_SECTION' 87 | extern __PCPU_ATTRS(sec) __typeof__(type) name | ^~~~ kernel/sched/sched.h:935:1: note: in expansion of macro 'DECLARE_PER_CPU' 935 | DECLARE_PER_CPU(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~~~~~~ kernel/sched/cputime.c:571:38: warning: ignoring attribute 'section (".data..percpu..shared_aligned")' because it conflicts with previous 'section (".data..percpu")' [-Wattributes] 571 | DEFINE_PER_CPU_SHARED_ALIGNED(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~ include/linux/percpu-defs.h:95:20: note: in definition of macro 'DEFINE_PER_CPU_SECTION' 95 | __typeof__(type) name | ^~~~ kernel/sched/cputime.c:571:1: note: in expansion of macro 'DEFINE_PER_CPU_SHARED_ALIGNED' 571 | DEFINE_PER_CPU_SHARED_ALIGNED(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/sched/cputime.c:571:50: note: previous declaration here 571 | DEFINE_PER_CPU_SHARED_ALIGNED(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~~ include/linux/percpu-defs.h:93:51: note: in definition of macro 'DEFINE_PER_CPU_SECTION' 93 | extern __PCPU_ATTRS(sec) __typeof__(type) name; \ | ^~~~ kernel/sched/cputime.c:571:1: note: in expansion of macro 'DEFINE_PER_CPU_SHARED_ALIGNED' 571 | DEFINE_PER_CPU_SHARED_ALIGNED(struct rq_cputime, rq_cputimes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +571 kernel/sched/cputime.c 569 570 int use_sched_idle_time __read_mostly;
571 DEFINE_PER_CPU_SHARED_ALIGNED(struct rq_cputime, rq_cputimes); 572
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki