public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Boqun Feng <boqun.feng@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [rcu:boqun-dev/hazptr 1/1] include/linux/hazptr.h:14:2: error: unknown type name '____cacheline_aligned'
Date: Tue, 21 May 2024 06:36:48 +0800	[thread overview]
Message-ID: <202405210611.aKkjAtWa-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-05-20 22:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202405210611.aKkjAtWa-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=boqun.feng@gmail.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox