linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Peter Oskolkov <posk@google.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org,
	Peter Zijlstra <peterz@infradead.org>
Subject: param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
Date: Fri, 13 Aug 2021 06:19:02 +0800	[thread overview]
Message-ID: <202108130654.6NPxhM5w-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 6584 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f8fbb47c6e86c0b75f8df864db702c3e3f757361
commit: f166b111e0491486fca0d105f09655ab718bd1c8 rseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ
date:   11 months ago
config: x86_64-randconfig-r031-20210811 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d39ebdae674c8efc84ebe8dc32716ec353220530)
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/torvalds/linux.git/commit/?id=f166b111e0491486fca0d105f09655ab718bd1c8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout f166b111e0491486fca0d105f09655ab718bd1c8
        # 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@intel.com>

All errors (new ones prefixed by >>):

>> param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
           while (!atomic_load(&args->percpu_list_ptr)) {}
                   ^           ~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
   #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
                               ^                 ~~~~~~
   param_test.c:1228:2: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
           atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a);
           ^            ~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
   #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
                                         ^                  ~~~~~~
>> param_test.c:1230:10: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid)
           while (!atomic_load(&args->stop)) {
                   ^           ~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
   #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
                               ^                 ~~~~~~
   param_test.c:1237:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
                   if (expect_b != atomic_load(&list_b.c[cpu_b].head->data)) {
                                   ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
   #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
                               ^                 ~~~~~~
   param_test.c:1243:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
                   atomic_store(&args->percpu_list_ptr, (intptr_t)&list_b);
                   ^            ~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
   #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
                                         ^                  ~~~~~~
   param_test.c:1254:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
                   expect_a = atomic_load(&list_a.c[cpu_a].head->data);
                              ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
   #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
                               ^                 ~~~~~~
   param_test.c:1261:19: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
                   if (expect_a != atomic_load(&list_a.c[cpu_a].head->data)) {
                                   ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
   #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
                               ^                 ~~~~~~
   param_test.c:1267:3: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
                   atomic_store(&args->percpu_list_ptr, (intptr_t)&list_a);
                   ^            ~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
   #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
                                         ^                  ~~~~~~
   param_test.c:1275:14: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid)
                   expect_b = atomic_load(&list_b.c[cpu_b].head->data);
                              ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:120:29: note: expanded from macro 'atomic_load'
   #define atomic_load(object) __c11_atomic_load(object, __ATOMIC_SEQ_CST)
                               ^                 ~~~~~~
   param_test.c:1334:2: error: address argument to atomic operation must be a pointer to _Atomic type ('int *' invalid)
           atomic_store(&thread_args.stop, 1);
           ^            ~~~~~~~~~~~~~~~~~
   /opt/cross/clang-767496d19c/lib/clang/14.0.0/include/stdatomic.h:117:39: note: expanded from macro 'atomic_store'
   #define atomic_store(object, desired) __c11_atomic_store(object, desired, __ATOMIC_SEQ_CST)
                                         ^                  ~~~~~~
   10 errors generated.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33635 bytes --]

             reply	other threads:[~2021-08-12 22:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12 22:19 kernel test robot [this message]
2021-08-21  2:41 param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('intptr_t *' (aka 'long *') invalid) kernel test robot

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=202108130654.6NPxhM5w-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=clang-built-linux@googlegroups.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterz@infradead.org \
    --cc=posk@google.com \
    /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;
as well as URLs for NNTP newsgroup(s).