* [peterz-queue:locking/core 5/7] include/asm-generic/current.h:7:23: error: 'typeof' applied to a bit-field
@ 2023-08-09 21:23 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-09 21:23 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head: 47a35f56e63994577fabd8fbc58b6551416f8250
commit: 876dda04d9e0849c1d112180ec0e35cab6fbe494 [5/7] sched: Provide rt_mutex specific scheduler helpers
config: openrisc-randconfig-r015-20230809 (https://download.01.org/0day-ci/archive/20230810/202308100554.MBGJbzAA-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230810/202308100554.MBGJbzAA-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308100554.MBGJbzAA-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from ./arch/openrisc/include/generated/asm/bug.h:1,
from include/linux/bug.h:5,
from include/linux/thread_info.h:13,
from include/asm-generic/preempt.h:5,
from ./arch/openrisc/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:79,
from include/linux/spinlock.h:56,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from include/linux/highmem.h:5,
from kernel/sched/core.c:9:
kernel/sched/core.c: In function 'rt_mutex_pre_schedule':
>> include/asm-generic/current.h:7:23: error: 'typeof' applied to a bit-field
7 | #define get_current() (current_thread_info()->task)
| ^
include/asm-generic/bug.h:168:32: note: in definition of macro 'WARN_ON'
168 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
kernel/sched/core.c:7068:9: note: in expansion of macro 'lockdep_assert'
7068 | lockdep_assert(!fetch_and_set(current->sched_rt_mutex, 1));
| ^~~~~~~~~~~~~~
kernel/sched/core.c:7068:25: note: in expansion of macro 'fetch_and_set'
7068 | lockdep_assert(!fetch_and_set(current->sched_rt_mutex, 1));
| ^~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
kernel/sched/core.c:7068:39: note: in expansion of macro 'current'
7068 | lockdep_assert(!fetch_and_set(current->sched_rt_mutex, 1));
| ^~~~~~~
kernel/sched/core.c: In function 'rt_mutex_post_schedule':
>> include/asm-generic/current.h:7:23: error: 'typeof' applied to a bit-field
7 | #define get_current() (current_thread_info()->task)
| ^
include/asm-generic/bug.h:168:32: note: in definition of macro 'WARN_ON'
168 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
kernel/sched/core.c:7081:9: note: in expansion of macro 'lockdep_assert'
7081 | lockdep_assert(fetch_and_set(current->sched_rt_mutex, 0));
| ^~~~~~~~~~~~~~
kernel/sched/core.c:7081:24: note: in expansion of macro 'fetch_and_set'
7081 | lockdep_assert(fetch_and_set(current->sched_rt_mutex, 0));
| ^~~~~~~~~~~~~
include/asm-generic/current.h:8:17: note: in expansion of macro 'get_current'
8 | #define current get_current()
| ^~~~~~~~~~~
kernel/sched/core.c:7081:38: note: in expansion of macro 'current'
7081 | lockdep_assert(fetch_and_set(current->sched_rt_mutex, 0));
| ^~~~~~~
vim +/typeof +7 include/asm-generic/current.h
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 6
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 @7 #define get_current() (current_thread_info()->task)
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 8 #define current get_current()
aafe4dbed0bf6c Arnd Bergmann 2009-05-13 9
:::::: The code at line 7 was first introduced by commit
:::::: aafe4dbed0bf6cbdb2e9f03e1d42f8a540d8541d asm-generic: add generic versions of common headers
:::::: TO: Arnd Bergmann <arnd@arndb.de>
:::::: CC: Arnd Bergmann <arnd@klappe2.(none)>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-09 21:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 21:23 [peterz-queue:locking/core 5/7] include/asm-generic/current.h:7:23: error: 'typeof' applied to a bit-field kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.