tree:
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
linux-5.9.y-rt-rebase
head: ae29d238360226f2ec8d2531d96e64dc6901bf54
commit: b02dafecf64ca01e271279e17a0f25592c74dafa [99/233] locking/rtmutex: add ww_mutex
addon for mutex-rt
config: x86_64-randconfig-a004-20201005 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
5fbab4025eb57b12f2842ab188ff07a110708e1d)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/com...
git remote add linux-rt-devel
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.9.y-rt-rebase
git checkout b02dafecf64ca01e271279e17a0f25592c74dafa
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the linux-rt-devel/linux-5.9.y-rt-rebase HEAD
ae29d238360226f2ec8d2531d96e64dc6901bf54 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
In file included from arch/x86/kernel/asm-offsets.c:9:
In file included from include/linux/crypto.h:20:
In file included from include/linux/slab.h:15:
In file included from include/linux/gfp.h:6:
In file included from include/linux/mmzone.h:16:
> include/linux/seqlock.h:218:60: error: incomplete definition of
type 'struct ww_mutex'
SEQCOUNT_LOCKTYPE(struct ww_mutex, ww_mutex,
true, &s->lock->base)
~~~~~~~^
include/linux/seqlock.h:192:33: note: expanded from macro 'SEQCOUNT_LOCKTYPE'
__SEQ_LOCK(lockdep_assert_held(lockmember)); \
^~~~~~~~~~
include/linux/lockdep.h:294:43: note: expanded from macro
'lockdep_assert_held'
WARN_ON(debug_locks && !lockdep_is_held(l)); \
^
include/linux/lockdep.h:270:47: note: expanded from macro 'lockdep_is_held'
#define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map)
^~~~
include/asm-generic/bug.h:119:25: note: expanded from macro 'WARN_ON'
int __ret_warn_on = !!(condition); \
^~~~~~~~~
include/linux/seqlock.h:135:26: note: expanded from macro '__SEQ_LOCK'
#define __SEQ_LOCK(expr) expr
^~~~
include/linux/seqlock.h:218:26: note: forward declaration of 'struct ww_mutex'
SEQCOUNT_LOCKTYPE(struct ww_mutex, ww_mutex, true,
&s->lock->base)
^
1 error generated.
make[2]: *** [scripts/Makefile.build:117: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1198: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +218 include/linux/seqlock.h
55f3560df975f55 Ahmed S. Darwish 2020-07-20 213
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 214
SEQCOUNT_LOCKTYPE(raw_spinlock_t, raw_spinlock, false, s->lock)
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 215
SEQCOUNT_LOCKTYPE(spinlock_t, spinlock, false, s->lock)
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 216
SEQCOUNT_LOCKTYPE(rwlock_t, rwlock, false, s->lock)
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 217 SEQCOUNT_LOCKTYPE(struct
mutex, mutex, true, s->lock)
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 @218 SEQCOUNT_LOCKTYPE(struct
ww_mutex, ww_mutex, true, &s->lock->base)
a8772dccb2ec7b1 Peter Zijlstra 2020-07-23 219
:::::: The code at line 218 was first introduced by commit
:::::: a8772dccb2ec7b139db1b3ba782ecb12ed92d7c3 seqlock: Fold seqcount_LOCKNAME_t
definition
:::::: TO: Peter Zijlstra <peterz(a)infradead.org>
:::::: CC: Peter Zijlstra <peterz(a)infradead.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org