LKML Archive on lore.kernel.org
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: Sat, 21 Aug 2021 10:41:12 +0800	[thread overview]
Message-ID: <202108211006.GsR2nGqN-lkp@intel.com> (raw)

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

Hi Peter,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fa54d366a6e4fe3e16322abdb8b5115f8be0da8b
commit: f166b111e0491486fca0d105f09655ab718bd1c8 rseq/selftests: Test MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ
date:   11 months ago
config: x86_64-randconfig-a002-20210819 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d9c5613e856cf2addfbf892fc4c1ce9ef9feceaa)
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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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-9e9d70591e/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: 35532 bytes --]

             reply	other threads:[~2021-08-21  2:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21  2:41 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-08-12 22:19 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=202108211006.GsR2nGqN-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 \
    --subject='Re: param_test.c:1156:10: error: address argument to atomic operation must be a pointer to _Atomic type ('\''intptr_t *'\'' (aka '\''long *'\'') invalid)' \
    /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

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).