* [rcu:boqun-dev/hazptr 1/1] include/linux/hazptr.h:14:2: error: unknown type name '____cacheline_aligned'
@ 2024-05-20 22:36 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-05-20 22:36 UTC (permalink / raw)
To: Boqun Feng; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rcu/linux.git boqun-dev/hazptr
head: ca2ab86d71c6d322c87127363aa4b665012a0ac2
commit: ca2ab86d71c6d322c87127363aa4b665012a0ac2 [1/1] WIP
config: s390-allnoconfig (https://download.01.org/0day-ci/archive/20240521/202405210611.aKkjAtWa-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project fa9b1be45088dce1e4b602d451f118128b94237b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240521/202405210611.aKkjAtWa-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/202405210611.aKkjAtWa-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/rcu/hazptr.c:5:
>> include/linux/hazptr.h:14:2: error: unknown type name '____cacheline_aligned'
14 | ____cacheline_aligned unsigned long slots[HAZPTR_SLOT_PER_CTX];
| ^
>> kernel/rcu/hazptr.c:41:33: error: invalid operands to binary expression ('void' and 'unsigned long')
41 | if (READ_ONCE(hzcp->slots[i]) == HAZPTR_UNUSED) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
>> kernel/rcu/hazptr.c:82:19: error: initializing 'unsigned long' with an expression of incompatible type 'void'
82 | unsigned long slot = READ_ONCE(ctx->slots[i]);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
vim +/____cacheline_aligned +14 include/linux/hazptr.h
8
9 struct hazptr_context {
10 // The lock of the percpu context lists.
11 spinlock_t *lock;
12
13 struct list_head list;
> 14 ____cacheline_aligned unsigned long slots[HAZPTR_SLOT_PER_CTX];
15 };
16
--
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:[~2024-05-20 22:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-20 22:36 [rcu:boqun-dev/hazptr 1/1] include/linux/hazptr.h:14:2: error: unknown type name '____cacheline_aligned' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox