tree: https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git testing head: fa4e5651c0b97e9e3c7da34810d2e3cb8065696e commit: 316580b69d0a7aeeee5063af47438b626bc47cbd [1172/1208] u64_stats: provide u64_stats_t type config: powerpc-defconfig (attached as .config) compiler: powerpc64-linux-gcc (GCC) 7.4.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 316580b69d0a7aeeee5063af47438b626bc47cbd # save the attached .config to linux build tree GCC_VERSION=7.4.0 make.cross ARCH=powerpc If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All error/warnings (new ones prefixed by >>): In file included from ./arch/powerpc/include/generated/asm/local64.h:1:0, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/powerpc/kernel/asm-offsets.c:23: include/linux/u64_stats_sync.h: In function 'u64_stats_read': >> include/asm-generic/local64.h:30:37: warning: passing argument 1 of 'local_read' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define local64_read(l) local_read(&(l)->a) ^ >> include/linux/u64_stats_sync.h:80:9: note: in expansion of macro 'local64_read' return local64_read(&p->v); ^~~~~~~~~~~~ In file included from include/asm-generic/local64.h:22:0, from ./arch/powerpc/include/generated/asm/local64.h:1, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/powerpc/kernel/asm-offsets.c:23: arch/powerpc/include/asm/local.h:20:24: note: expected 'local_t * {aka struct <anonymous> *}' but argument is of type 'const local_t * {aka const struct <anonymous> *}' static __inline__ long local_read(local_t *l) ^~~~~~~~~~ -- In file included from ./arch/powerpc/include/generated/asm/local64.h:1:0, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/memcontrol.h:13, from include/linux/tracehook.h:50, from arch/powerpc//kernel/ptrace.c:25: include/linux/u64_stats_sync.h: In function 'u64_stats_read': >> include/asm-generic/local64.h:30:37: error: passing argument 1 of 'local_read' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] #define local64_read(l) local_read(&(l)->a) ^ >> include/linux/u64_stats_sync.h:80:9: note: in expansion of macro 'local64_read' return local64_read(&p->v); ^~~~~~~~~~~~ In file included from include/asm-generic/local64.h:22:0, from ./arch/powerpc/include/generated/asm/local64.h:1, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/memcontrol.h:13, from include/linux/tracehook.h:50, from arch/powerpc//kernel/ptrace.c:25: arch/powerpc/include/asm/local.h:20:24: note: expected 'local_t * {aka struct <anonymous> *}' but argument is of type 'const local_t * {aka const struct <anonymous> *}' static __inline__ long local_read(local_t *l) ^~~~~~~~~~ cc1: all warnings being treated as errors -- In file included from ./arch/powerpc/include/generated/asm/local64.h:1:0, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/hugetlb.h:9, from arch/powerpc//kvm/book3s_hv.c:39: include/linux/u64_stats_sync.h: In function 'u64_stats_read': >> include/asm-generic/local64.h:30:37: error: passing argument 1 of 'local_read' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] #define local64_read(l) local_read(&(l)->a) ^ >> include/linux/u64_stats_sync.h:80:9: note: in expansion of macro 'local64_read' return local64_read(&p->v); ^~~~~~~~~~~~ In file included from include/asm-generic/local64.h:22:0, from ./arch/powerpc/include/generated/asm/local64.h:1, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/hugetlb.h:9, from arch/powerpc//kvm/book3s_hv.c:39: arch/powerpc/include/asm/local.h:20:24: note: expected 'local_t * {aka struct <anonymous> *}' but argument is of type 'const local_t * {aka const struct <anonymous> *}' static __inline__ long local_read(local_t *l) ^~~~~~~~~~ In file included from arch/powerpc//kvm/trace_hv.h:505:0, from arch/powerpc//kvm/book3s_hv.c:79: include/trace/define_trace.h: At top level: include/trace/define_trace.h:95:42: fatal error: ./trace_hv.h: No such file or directory #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) ^ cc1: all warnings being treated as errors compilation terminated. -- In file included from ./arch/powerpc/include/generated/asm/local64.h:1:0, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/powerpc/kernel/asm-offsets.c:23: include/linux/u64_stats_sync.h: In function 'u64_stats_read': >> include/asm-generic/local64.h:30:37: warning: passing argument 1 of 'local_read' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define local64_read(l) local_read(&(l)->a) ^ >> include/linux/u64_stats_sync.h:80:9: note: in expansion of macro 'local64_read' return local64_read(&p->v); ^~~~~~~~~~~~ In file included from include/asm-generic/local64.h:22:0, from ./arch/powerpc/include/generated/asm/local64.h:1, from include/linux/u64_stats_sync.h:72, from include/linux/cgroup-defs.h:20, from include/linux/cgroup.h:28, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from include/linux/suspend.h:5, from arch/powerpc/kernel/asm-offsets.c:23: arch/powerpc/include/asm/local.h:20:24: note: expected 'local_t * {aka struct <anonymous> *}' but argument is of type 'const local_t * {aka const struct <anonymous> *}' static __inline__ long local_read(local_t *l) ^~~~~~~~~~ 7 real 4 user 3 sys 112.73% cpu make prepare vim +30 include/asm-generic/local64.h 1996bda2a42480 Peter Zijlstra 2010-05-21 29 1996bda2a42480 Peter Zijlstra 2010-05-21 @30 #define local64_read(l) local_read(&(l)->a) 1996bda2a42480 Peter Zijlstra 2010-05-21 31 #define local64_set(l,i) local_set((&(l)->a),(i)) 1996bda2a42480 Peter Zijlstra 2010-05-21 32 #define local64_inc(l) local_inc(&(l)->a) 1996bda2a42480 Peter Zijlstra 2010-05-21 33 #define local64_dec(l) local_dec(&(l)->a) 1996bda2a42480 Peter Zijlstra 2010-05-21 34 #define local64_add(i,l) local_add((i),(&(l)->a)) 1996bda2a42480 Peter Zijlstra 2010-05-21 35 #define local64_sub(i,l) local_sub((i),(&(l)->a)) 1996bda2a42480 Peter Zijlstra 2010-05-21 36 :::::: The code at line 30 was first introduced by commit :::::: 1996bda2a42480c275656233e631ee0966574be4 arch: Implement local64_t :::::: TO: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> :::::: CC: Ingo Molnar <mingo@xxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation
Attachment:
.config.gz
Description: application/gzip