llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 1/2] cgroup: add cpu.stat_percpu
       [not found] <20220107234138.1765668-1-joshdon@google.com>
@ 2022-01-08 11:03 ` kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-08 11:03 UTC (permalink / raw)
  To: Josh Don, Tejun Heo, Zefan Li, Johannes Weiner, Ingo Molnar,
	Peter Zijlstra, Juri Lelli, Vincent Guittot
  Cc: llvm, kbuild-all, Dietmar Eggemann, Steven Rostedt, Ben Segall

Hi Josh,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tj-cgroup/for-next]
[also build test ERROR on tip/sched/core tip/master v5.16-rc8 next-20220107]
[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]

url:    https://github.com/0day-ci/linux/commits/Josh-Don/cgroup-add-cpu-stat_percpu/20220108-074316
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-next
config: x86_64-randconfig-a014-20220107 (https://download.01.org/0day-ci/archive/20220108/202201081834.qK6yea4m-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project f3a344d2125fa37e59bae1b0874442c650a19607)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/d70517c43ca623321dcca220ce4c9b93059dc763
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Josh-Don/cgroup-add-cpu-stat_percpu/20220108-074316
        git checkout d70517c43ca623321dcca220ce4c9b93059dc763
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> kernel/cgroup/rstat.c:519:9: error: '__section__' attribute only applies to functions, global variables, Objective-C methods, and Objective-C properties
           static DEFINE_PER_CPU(struct cgroup_base_stat, cached_percpu_stats);
                  ^
   include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU'
           DEFINE_PER_CPU_SECTION(type, name, "")
           ^
   include/linux/percpu-defs.h:93:2: note: expanded from macro 'DEFINE_PER_CPU_SECTION'
           __PCPU_DUMMY_ATTRS char __pcpu_unique_##name;                   \
           ^
   include/linux/percpu-defs.h:54:2: note: expanded from macro '__PCPU_DUMMY_ATTRS'
           __section(".discard") __attribute__((unused))
           ^
   include/linux/compiler_attributes.h:276:56: note: expanded from macro '__section'
   #define __section(section)              __attribute__((__section__(section)))
                                                          ^
>> kernel/cgroup/rstat.c:519:9: error: non-extern declaration of '__pcpu_unique_cached_percpu_stats' follows extern declaration
   include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU'
           DEFINE_PER_CPU_SECTION(type, name, "")
           ^
   include/linux/percpu-defs.h:93:26: note: expanded from macro 'DEFINE_PER_CPU_SECTION'
           __PCPU_DUMMY_ATTRS char __pcpu_unique_##name;                   \
                                   ^
   <scratch space>:66:1: note: expanded from here
   __pcpu_unique_cached_percpu_stats
   ^
   kernel/cgroup/rstat.c:519:9: note: previous declaration is here
   include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU'
           DEFINE_PER_CPU_SECTION(type, name, "")
           ^
   include/linux/percpu-defs.h:92:33: note: expanded from macro 'DEFINE_PER_CPU_SECTION'
           extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name;            \
                                          ^
   <scratch space>:65:1: note: expanded from here
   __pcpu_unique_cached_percpu_stats
   ^
>> kernel/cgroup/rstat.c:519:9: error: 'section' attribute only applies to functions, global variables, Objective-C methods, and Objective-C properties
           static DEFINE_PER_CPU(struct cgroup_base_stat, cached_percpu_stats);
                  ^
   include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU'
           DEFINE_PER_CPU_SECTION(type, name, "")
           ^
   include/linux/percpu-defs.h:95:2: note: expanded from macro 'DEFINE_PER_CPU_SECTION'
           __PCPU_ATTRS(sec) __weak __typeof__(type) name
           ^
   include/linux/percpu-defs.h:50:26: note: expanded from macro '__PCPU_ATTRS'
           __percpu __attribute__((section(PER_CPU_BASE_SECTION sec)))     \
                                   ^
>> kernel/cgroup/rstat.c:519:49: error: non-extern declaration of 'cached_percpu_stats' follows extern declaration
           static DEFINE_PER_CPU(struct cgroup_base_stat, cached_percpu_stats);
                                                          ^
   kernel/cgroup/rstat.c:519:49: note: previous declaration is here
>> kernel/cgroup/rstat.c:519:9: error: weak declaration cannot have internal linkage
           static DEFINE_PER_CPU(struct cgroup_base_stat, cached_percpu_stats);
                  ^
   include/linux/percpu-defs.h:115:2: note: expanded from macro 'DEFINE_PER_CPU'
           DEFINE_PER_CPU_SECTION(type, name, "")
           ^
   include/linux/percpu-defs.h:95:20: note: expanded from macro 'DEFINE_PER_CPU_SECTION'
           __PCPU_ATTRS(sec) __weak __typeof__(type) name
                             ^
   include/linux/compiler_attributes.h:315:56: note: expanded from macro '__weak'
   #define __weak                          __attribute__((__weak__))
                                                          ^
   5 errors generated.


vim +/__section__ +519 kernel/cgroup/rstat.c

   515	
   516	void cgroup_base_stat_percpu_cputime_show(struct seq_file *seq)
   517	{
   518		static DEFINE_MUTEX(mutex);
 > 519		static DEFINE_PER_CPU(struct cgroup_base_stat, cached_percpu_stats);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

only message in thread, other threads:[~2022-01-08 11:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220107234138.1765668-1-joshdon@google.com>
2022-01-08 11:03 ` [PATCH 1/2] cgroup: add cpu.stat_percpu 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;
as well as URLs for NNTP newsgroup(s).