tree: git://people.freedesktop.org/~agd5f/linux.git amd-mainline-dkms-5.4 head: fa14e19bd78eecca201da26d22c7b95ee06769c6 commit: 8c3adae9aacd0da9c2baa6715005a808712b23b6 [1278/2653] drm/amdkcl: Test whether kref_read() function is available config: m68k-allmodconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 9.2.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 8c3adae9aacd0da9c2baa6715005a808712b23b6 # save the attached .config to linux build tree GCC_VERSION=9.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag Reported-by: kbuild test robot lkp@intel.com
All error/warnings (new ones prefixed by >>):
In file included from <command-line>: include/kcl/kcl_kref.h:7:28: error: redefinition of 'kref_read' 7 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from include/kcl/kcl_kref.h:4, from <command-line>: include/linux/kref.h:34:28: note: previous definition of 'kref_read' was here 34 | static inline unsigned int kref_read(const struct kref *kref) | ^~~~~~~~~ In file included from include/linux/kernel.h:11, from include/linux/list.h:9, from include/linux/preempt.h:11, from include/linux/spinlock.h:51, from include/linux/kref.h:16, from include/kcl/kcl_kref.h:4, from <command-line>: include/kcl/kcl_kref.h: In function 'kref_read':
arch/m68k/include/asm/atomic.h:21:38: error: 'refcount_t' {aka 'const struct refcount_struct'} has no member named 'counter'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~ include/linux/compiler.h:261:17: note: in definition of macro '__READ_ONCE' 261 | union { typeof(x) __val; char __c[1]; } __u; \ | ^
arch/m68k/include/asm/atomic.h:21:25: note: in expansion of macro 'READ_ONCE'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~~~~~~~~ include/kcl/kcl_kref.h:9:9: note: in expansion of macro 'atomic_read' 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~
arch/m68k/include/asm/atomic.h:21:38: error: 'refcount_t' {aka 'const struct refcount_struct'} has no member named 'counter'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~ include/linux/compiler.h:263:22: note: in definition of macro '__READ_ONCE' 263 | __read_once_size(&(x), __u.__c, sizeof(x)); \ | ^
arch/m68k/include/asm/atomic.h:21:25: note: in expansion of macro 'READ_ONCE'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~~~~~~~~ include/kcl/kcl_kref.h:9:9: note: in expansion of macro 'atomic_read' 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~
arch/m68k/include/asm/atomic.h:21:38: error: 'refcount_t' {aka 'const struct refcount_struct'} has no member named 'counter'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~ include/linux/compiler.h:263:42: note: in definition of macro '__READ_ONCE' 263 | __read_once_size(&(x), __u.__c, sizeof(x)); \ | ^
arch/m68k/include/asm/atomic.h:21:25: note: in expansion of macro 'READ_ONCE'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~~~~~~~~ include/kcl/kcl_kref.h:9:9: note: in expansion of macro 'atomic_read' 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~
arch/m68k/include/asm/atomic.h:21:38: error: 'refcount_t' {aka 'const struct refcount_struct'} has no member named 'counter'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~ include/linux/compiler.h:265:30: note: in definition of macro '__READ_ONCE' 265 | __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ | ^
arch/m68k/include/asm/atomic.h:21:25: note: in expansion of macro 'READ_ONCE'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~~~~~~~~ include/kcl/kcl_kref.h:9:9: note: in expansion of macro 'atomic_read' 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~
arch/m68k/include/asm/atomic.h:21:38: error: 'refcount_t' {aka 'const struct refcount_struct'} has no member named 'counter'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~ include/linux/compiler.h:265:50: note: in definition of macro '__READ_ONCE' 265 | __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \ | ^
arch/m68k/include/asm/atomic.h:21:25: note: in expansion of macro 'READ_ONCE'
21 | #define atomic_read(v) READ_ONCE((v)->counter) | ^~~~~~~~~ include/kcl/kcl_kref.h:9:9: note: in expansion of macro 'atomic_read' 9 | return atomic_read(&kref->refcount); | ^~~~~~~~~~~
vim +21 arch/m68k/include/asm/atomic.h
69f99746a2cfd8 Greg Ungerer 2010-09-08 20 62e8a3258bda11 Peter Zijlstra 2015-09-18 @21 #define atomic_read(v) READ_ONCE((v)->counter) 62e8a3258bda11 Peter Zijlstra 2015-09-18 22 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) 69f99746a2cfd8 Greg Ungerer 2010-09-08 23
:::::: The code at line 21 was first introduced by commit :::::: 62e8a3258bda118f24ff462fe04cfbe75b8189b5 atomic, arch: Audit atomic_{read,set}()
:::::: TO: Peter Zijlstra peterz@infradead.org :::::: CC: Ingo Molnar mingo@kernel.org
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org