tree:
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex
head: 502cfc4cfd2a79c578c3a82fdd4abd920dde4c6f
commit: 65a9a52c002e0b86b9f4f79101d649fa732d8f86 [8/20] locking/rtmutex: Remove pointless
CONFIG_RT_MUTEXES=n stubs
config: arm64-allnoconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel rtmutex
git checkout 65a9a52c002e0b86b9f4f79101d649fa732d8f86
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:
kernel/rcu/../locking/rtmutex_common.h: In function 'task_has_pi_waiters':
> kernel/rcu/../locking/rtmutex_common.h:58:26: error: 'struct
task_struct' has no member named 'pi_waiters'
58 | return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~
include/linux/compiler_types.h:300:9: note: in definition of macro
'__compiletime_assert'
300 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro
'_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rbtree.h:40:31: note: in expansion of macro 'READ_ONCE'
40 | #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL)
| ^~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:58:10: note: in expansion of macro
'RB_EMPTY_ROOT'
58 | return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~~~~~~~~~~~~
> kernel/rcu/../locking/rtmutex_common.h:58:26: error: 'struct
task_struct' has no member named 'pi_waiters'
58 | return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~
include/linux/compiler_types.h:300:9: note: in definition of macro
'__compiletime_assert'
300 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro
'_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rbtree.h:40:31: note: in expansion of macro 'READ_ONCE'
40 | #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL)
| ^~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:58:10: note: in expansion of macro
'RB_EMPTY_ROOT'
58 | return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~~~~~~~~~~~~
> kernel/rcu/../locking/rtmutex_common.h:58:26: error: 'struct
task_struct' has no member named 'pi_waiters'
58 | return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~
include/linux/compiler_types.h:300:9: note: in definition of macro
'__compiletime_assert'
300 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro
'_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rbtree.h:40:31: note: in expansion of macro 'READ_ONCE'
40 | #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL)
| ^~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:58:10: note: in expansion of macro
'RB_EMPTY_ROOT'
58 | return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~~~~~~~~~~~~
> kernel/rcu/../locking/rtmutex_common.h:58:26: error: 'struct
task_struct' has no member named 'pi_waiters'
58 | return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~
include/linux/compiler_types.h:300:9: note: in definition of macro
'__compiletime_assert'
300 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro
'_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:21: note: in expansion of macro
'__native_word'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rbtree.h:40:31: note: in expansion of macro 'READ_ONCE'
40 | #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL)
| ^~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:58:10: note: in expansion of macro
'RB_EMPTY_ROOT'
58 | return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~~~~~~~~~~~~
> kernel/rcu/../locking/rtmutex_common.h:58:26: error: 'struct
task_struct' has no member named 'pi_waiters'
58 | return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~
include/linux/compiler_types.h:300:9: note: in definition of macro
'__compiletime_assert'
300 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro
'_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:36:2: note: in expansion of macro
'compiletime_assert'
36 | compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
| ^~~~~~~~~~~~~~~~~~
include/asm-generic/rwonce.h:49:2: note: in expansion of macro
'compiletime_assert_rwonce_type'
49 | compiletime_assert_rwonce_type(x); \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rbtree.h:40:31: note: in expansion of macro 'READ_ONCE'
40 | #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL)
| ^~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:58:10: note: in expansion of macro
'RB_EMPTY_ROOT'
58 | return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~~~~~~~~~~~~
> kernel/rcu/../locking/rtmutex_common.h:58:26: error: 'struct
task_struct' has no member named 'pi_waiters'
58 | return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~
include/linux/compiler_types.h:271:13: note: in definition of macro
'__unqual_scalar_typeof'
271 | _Generic((x), \
| ^
include/asm-generic/rwonce.h:50:2: note: in expansion of macro '__READ_ONCE'
50 | __READ_ONCE(x); \
| ^~~~~~~~~~~
include/linux/rbtree.h:40:31: note: in expansion of macro 'READ_ONCE'
40 | #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL)
| ^~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:58:10: note: in expansion of macro
'RB_EMPTY_ROOT'
58 | return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~~~~~~~~~~~~
In file included from arch/arm64/include/asm/rwonce.h:71,
from include/linux/compiler.h:248,
from include/linux/export.h:43,
from include/linux/linkage.h:7,
from include/linux/kernel.h:7,
from kernel/rcu/tree.c:21:
> kernel/rcu/../locking/rtmutex_common.h:58:26: error: 'struct
task_struct' has no member named 'pi_waiters'
58 | return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~
include/asm-generic/rwonce.h:44:72: note: in definition of macro '__READ_ONCE'
44 | #define __READ_ONCE(x) (*(const volatile __unqual_scalar_typeof(x) *)&(x))
| ^
include/linux/rbtree.h:40:31: note: in expansion of macro 'READ_ONCE'
40 | #define RB_EMPTY_ROOT(root) (READ_ONCE((root)->rb_node) == NULL)
| ^~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:58:10: note: in expansion of macro
'RB_EMPTY_ROOT'
58 | return !RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
| ^~~~~~~~~~~~~
In file included from kernel/rcu/tree.c:21:
kernel/rcu/../locking/rtmutex_common.h: In function 'task_top_pi_waiter':
kernel/rcu/../locking/rtmutex_common.h:63:19: error: 'struct task_struct' has
no member named 'pi_waiters'
63 | return rb_entry(p->pi_waiters.rb_leftmost, struct rt_mutex_waiter,
| ^~
include/linux/kernel.h:708:26: note: in definition of macro 'container_of'
708 | void *__mptr = (void *)(ptr); \
| ^~~
kernel/rcu/../locking/rtmutex_common.h:63:9: note: in expansion of macro
'rb_entry'
63 | return rb_entry(p->pi_waiters.rb_leftmost, struct rt_mutex_waiter,
| ^~~~~~~~
In file included from <command-line>:
kernel/rcu/../locking/rtmutex_common.h:63:19: error: 'struct task_struct' has
no member named 'pi_waiters'
63 | return rb_entry(p->pi_waiters.rb_leftmost, struct rt_mutex_waiter,
| ^~
include/linux/compiler_types.h:300:9: note: in definition of macro
'__compiletime_assert'
300 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro
'_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:709:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
709 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:709:20: note: in expansion of macro '__same_type'
709 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~
include/linux/rbtree.h:38:37: note: in expansion of macro 'container_of'
38 | #define rb_entry(ptr, type, member) container_of(ptr, type, member)
| ^~~~~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:63:9: note: in expansion of macro
'rb_entry'
63 | return rb_entry(p->pi_waiters.rb_leftmost, struct rt_mutex_waiter,
| ^~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:63:19: error: 'struct task_struct' has
no member named 'pi_waiters'
63 | return rb_entry(p->pi_waiters.rb_leftmost, struct rt_mutex_waiter,
| ^~
include/linux/compiler_types.h:300:9: note: in definition of macro
'__compiletime_assert'
300 | if (!(condition)) \
| ^~~~~~~~~
include/linux/compiler_types.h:320:2: note: in expansion of macro
'_compiletime_assert'
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro
'compiletime_assert'
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
include/linux/kernel.h:709:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
709 | BUILD_BUG_ON_MSG(!__same_type(*(ptr), ((type *)0)->member) && \
| ^~~~~~~~~~~~~~~~
include/linux/kernel.h:710:6: note: in expansion of macro '__same_type'
710 | !__same_type(*(ptr), void), \
| ^~~~~~~~~~~
include/linux/rbtree.h:38:37: note: in expansion of macro 'container_of'
38 | #define rb_entry(ptr, type, member) container_of(ptr, type, member)
| ^~~~~~~~~~~~
kernel/rcu/../locking/rtmutex_common.h:63:9: note: in expansion of macro
'rb_entry'
63 | return rb_entry(p->pi_waiters.rb_leftmost, struct rt_mutex_waiter,
| ^~~~~~~~
vim +58 kernel/rcu/../locking/rtmutex_common.h
23f78d4a03c53c kernel/rtmutex_common.h Ingo Molnar 2006-06-27 55
23f78d4a03c53c kernel/rtmutex_common.h Ingo Molnar 2006-06-27 56 static
inline int task_has_pi_waiters(struct task_struct *p)
23f78d4a03c53c kernel/rtmutex_common.h Ingo Molnar 2006-06-27 57 {
a23ba907d5e65d kernel/locking/rtmutex_common.h Davidlohr Bueso 2017-09-08 @58 return
!RB_EMPTY_ROOT(&p->pi_waiters.rb_root);
23f78d4a03c53c kernel/rtmutex_common.h Ingo Molnar 2006-06-27 59 }
23f78d4a03c53c kernel/rtmutex_common.h Ingo Molnar 2006-06-27 60
:::::: The code at line 58 was first introduced by commit
:::::: a23ba907d5e65d6aeea3e59c82fda9cd206a7aad locking/rtmutex: replace top-waiter and
pi_waiters leftmost caching
:::::: TO: Davidlohr Bueso <dave(a)stgolabs.net>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org