Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [arnd-playground:randconfig-7.3-next 628/673] include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
Date: Fri, 25 Sep 2026 23:07:37 +0200	[thread overview]
Message-ID: <202609252035.roEHB44F-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/arnd/playground.git randconfig-7.3-next
head:   0a1affa74ef2f2c5c5ee74fc604e47a1aefdd286
commit: 5f609cf4ad6407b1967d07a8d6383a7edb182d45 [628/673] fixup clang __diag
config: s390-randconfig-2001-20260925 (https://download.01.org/0day-ci/archive/20260925/202609252035.roEHB44F-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 57e112ccb2a509c0e1d36963b187fccdd59566de)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260925/202609252035.roEHB44F-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/202609252035.roEHB44F-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from kernel/kcov.c:11:
   In file included from include/linux/fs.h:5:
   In file included from include/linux/fs/super.h:5:
   In file included from include/linux/fs/super_types.h:13:
   In file included from include/linux/percpu-rwsem.h:7:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/kcov.c:925:7: error: assigning to 'unsigned int' from incompatible type 'void'
     925 |         mode = context_unsafe(kcov->mode);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/kcov.c:925:30: warning: expression result unused [-Wunused-value]
     925 |         mode = context_unsafe(kcov->mode);
         |                               ~~~~  ^~~~
   1 warning and 2 errors generated.
--
>> lib/test_context-analysis.c:24:33: error: invalid operands to binary expression ('void' and 'int')
      24 |         BUILD_BUG_ON(context_unsafe(3) != 3); /* plain expression */
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   include/linux/build_bug.h:51:19: note: expanded from macro 'BUILD_BUG_ON'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:40:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
   include/linux/compiler_types.h:705:22: note: expanded from macro 'compiletime_assert'
     705 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:693:23: note: expanded from macro '_compiletime_assert'
     693 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:685:9: note: expanded from macro '__compiletime_assert'
     685 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   lib/test_context-analysis.c:25:42: error: invalid operands to binary expression ('void' and 'int')
      25 |         BUILD_BUG_ON(context_unsafe((void)2; 3) != 3); /* does not swallow semi-colon */
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   include/linux/build_bug.h:51:19: note: expanded from macro 'BUILD_BUG_ON'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:40:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
   include/linux/compiler_types.h:705:22: note: expanded from macro 'compiletime_assert'
     705 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:693:23: note: expanded from macro '_compiletime_assert'
     693 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:685:9: note: expanded from macro '__compiletime_assert'
     685 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   lib/test_context-analysis.c:26:42: error: invalid operands to binary expression ('void' and 'int')
      26 |         BUILD_BUG_ON(context_unsafe((void)2, 3) != 3); /* does not swallow commas */
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
   include/linux/build_bug.h:51:19: note: expanded from macro 'BUILD_BUG_ON'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:40:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
   include/linux/compiler_types.h:705:22: note: expanded from macro 'compiletime_assert'
     705 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:693:23: note: expanded from macro '_compiletime_assert'
     693 |         __compiletime_assert(condition, msg, prefix, suffix)
         |         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:685:9: note: expanded from macro '__compiletime_assert'
     685 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
>> lib/test_context-analysis.c:24:30: warning: expression result unused [-Wunused-value]
      24 |         BUILD_BUG_ON(context_unsafe(3) != 3); /* plain expression */
         |                                     ^
   include/linux/compiler-context-analysis.h:218:2: note: expanded from macro 'context_unsafe'
     218 |         __VA_ARGS__;                    \
         |         ^~~~~~~~~~~
   include/linux/build_bug.h:51:19: note: expanded from macro 'BUILD_BUG_ON'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |                          ^~~~~~~~~
   include/linux/build_bug.h:40:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                                          ^~~~
   include/linux/compiler_types.h:705:22: note: expanded from macro 'compiletime_assert'
     705 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:693:23: note: expanded from macro '_compiletime_assert'
     693 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:685:9: note: expanded from macro '__compiletime_assert'
     685 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   lib/test_context-analysis.c:25:39: warning: expression result unused [-Wunused-value]
      25 |         BUILD_BUG_ON(context_unsafe((void)2; 3) != 3); /* does not swallow semi-colon */
         |                                              ^
   include/linux/compiler-context-analysis.h:218:2: note: expanded from macro 'context_unsafe'
     218 |         __VA_ARGS__;                    \
         |         ^~~~~~~~~~~
   include/linux/build_bug.h:51:19: note: expanded from macro 'BUILD_BUG_ON'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |                          ^~~~~~~~~
   include/linux/build_bug.h:40:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                                          ^~~~
   include/linux/compiler_types.h:705:22: note: expanded from macro 'compiletime_assert'
     705 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:693:23: note: expanded from macro '_compiletime_assert'
     693 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:685:9: note: expanded from macro '__compiletime_assert'
     685 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   lib/test_context-analysis.c:26:39: warning: expression result unused [-Wunused-value]
      26 |         BUILD_BUG_ON(context_unsafe((void)2, 3) != 3); /* does not swallow commas */
         |                                              ^
   include/linux/compiler-context-analysis.h:218:2: note: expanded from macro 'context_unsafe'
     218 |         __VA_ARGS__;                    \
         |         ^~~~~~~~~~~
   include/linux/build_bug.h:51:19: note: expanded from macro 'BUILD_BUG_ON'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |                          ^~~~~~~~~
   include/linux/build_bug.h:40:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                                          ^~~~
   include/linux/compiler_types.h:705:22: note: expanded from macro 'compiletime_assert'
     705 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                             ^~~~~~~~~
   include/linux/compiler_types.h:693:23: note: expanded from macro '_compiletime_assert'
     693 |         __compiletime_assert(condition, msg, prefix, suffix)
         |                              ^~~~~~~~~
   include/linux/compiler_types.h:685:9: note: expanded from macro '__compiletime_assert'
     685 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   lib/test_context-analysis.c:416:8: warning: expression result unused [-Wunused-value]
     416 |         (void)unrcu_pointer(d->data);
         |               ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:500:26: note: expanded from macro 'unrcu_pointer'
     500 | #define unrcu_pointer(p) __unrcu_pointer(p, __UNIQUE_ID(rcu))
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:491:3: note: expanded from macro '__unrcu_pointer'
     487 | #define __unrcu_pointer(p, local)                                       \
         |                                                                         ~
     488 | context_unsafe(                                                         \
         | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     489 |         typeof(*p) *local = (typeof(*p) *__force)(p);                   \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     490 |         rcu_check_sparse(p, __rcu);                                     \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     491 |         ((typeof(*p) __force __kernel *)(local))                        \
         |         ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler-context-analysis.h:218:2: note: expanded from macro '\
   context_unsafe'
     218 |         __VA_ARGS__;                    \
         |         ^~~~~~~~~~~
   4 warnings and 3 errors generated.
--
   In file included from lib/stackdepot.c:17:
   In file included from include/linux/debugfs.h:15:
   In file included from include/linux/fs.h:5:
   In file included from include/linux/fs/super.h:5:
   In file included from include/linux/fs/super_types.h:13:
   In file included from include/linux/percpu-rwsem.h:7:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> lib/stackdepot.c:512:7: error: assigning to 'void *' from incompatible type 'void'
     512 |         pool = context_unsafe(stack_pools[pool_index]);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> lib/stackdepot.c:512:46: warning: expression result unused [-Wunused-value]
     512 |         pool = context_unsafe(stack_pools[pool_index]);
         |                               ~~~~~~~~~~~ ~~~~~~~~~~^
   1 warning and 2 errors generated.
--
   In file included from lib/rhashtable.c:17:
   In file included from include/linux/irq_work.h:6:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from lib/rhashtable.c:26:
>> include/linux/rhashtable.h:781:6: error: invalid argument type 'void' to unary expression
     781 |         if (unlikely(rcu_access_pointer(tbl->future_tbl))) {
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:77:40: note: expanded from macro 'unlikely'
      77 | # define unlikely(x)    __builtin_expect(!!(x), 0)
         |                                           ^~~~
>> lib/rhashtable.c:521:6: error: invalid argument type 'void' to unary expression
     521 |         if (likely(rcu_access_pointer(tbl->future_tbl)))
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler.h:76:38: note: expanded from macro 'likely'
      76 | # define likely(x)      __builtin_expect(!!(x), 1)
         |                                           ^~~~
>> lib/rhashtable.c:643:3: error: statement requires expression of scalar type ('void' invalid)
     643 |                 if (rcu_access_pointer(tbl->future_tbl))
         |                 ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   4 errors generated.
--
   In file included from crypto/authencesn.c:12:
   In file included from include/crypto/internal/hash.h:12:
   In file included from include/crypto/hash.h:12:
   In file included from include/linux/scatterlist.h:8:
   In file included from include/linux/mm.h:36:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.
--
   In file included from crypto/scompress.c:10:
   In file included from include/crypto/internal/scompress.h:12:
   In file included from include/crypto/internal/acompress.h:12:
   In file included from include/crypto/acompress.h:18:
   In file included from include/linux/scatterlist.h:8:
   In file included from include/linux/mm.h:36:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> crypto/scompress.c:101:3: error: statement requires expression of scalar type ('void' invalid)
     101 |                 if (context_unsafe(scratch->src))
         |                 ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> crypto/scompress.c:101:31: warning: expression result unused [-Wunused-value]
     101 |                 if (context_unsafe(scratch->src))
         |                                    ~~~~~~~~~^~~
   include/linux/compiler-context-analysis.h:218:2: note: expanded from macro 'context_unsafe'
     218 |         __VA_ARGS__;                    \
         |         ^~~~~~~~~~~
   1 warning and 2 errors generated.
--
   In file included from block/fops.c:8:
   In file included from include/linux/mm.h:36:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from block/fops.c:12:
   In file included from include/linux/buffer_head.h:15:
>> include/linux/pagemap.h:179:7: error: assigning to 'void *' from incompatible type 'void'
     179 |         head = rcu_access_pointer(mapping->i_pages.xa_head);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   2 errors generated.
--
   In file included from drivers/nvme/host/fc.c:6:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
   In file included from arch/s390/include/asm/elf.h:173:
   In file included from arch/s390/include/asm/mmu_context.h:11:
   In file included from arch/s390/include/asm/pgalloc.h:18:
   In file included from include/linux/mm.h:36:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/nvme/host/fc.c:13:
   In file included from drivers/nvme/host/nvme.h:21:
   In file included from include/trace/events/block.h:10:
   In file included from include/linux/buffer_head.h:15:
>> include/linux/pagemap.h:179:7: error: assigning to 'void *' from incompatible type 'void'
     179 |         head = rcu_access_pointer(mapping->i_pages.xa_head);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/nvme/host/fc.c:18:
   In file included from include/scsi/scsi_transport_fc.h:18:
>> include/scsi/scsi_host.h:793:9: error: returning 'void' from a function with incompatible result type 'enum scsi_host_state'
     793 |         return context_unsafe(READ_ONCE(shost->shost_state));
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/compiler-context-analysis.h:215:30: note: expanded from macro 'context_unsafe'
     215 | #define context_unsafe(...)             \
         |                                         ^
     216 | ({                                      \
         | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     217 |         disable_context_analysis();     \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     218 |         __VA_ARGS__;                    \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     219 |         enable_context_analysis()       \
         |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     220 | })
         | ~~
   3 errors generated.
--
   In file included from drivers/nvme/host/multipath.c:6:
   In file included from include/linux/backing-dev.h:13:
   In file included from include/linux/fs.h:5:
   In file included from include/linux/fs/super.h:5:
   In file included from include/linux/fs/super_types.h:13:
   In file included from include/linux/percpu-rwsem.h:7:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/nvme/host/multipath.c:9:
   In file included from include/trace/events/block.h:10:
   In file included from include/linux/buffer_head.h:15:
>> include/linux/pagemap.h:179:7: error: assigning to 'void *' from incompatible type 'void'
     179 |         head = rcu_access_pointer(mapping->i_pages.xa_head);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/nvme/host/multipath.c:249:10: error: invalid operands to binary expression ('struct nvme_ns *' and 'void')
     249 |                 if (ns == rcu_access_pointer(head->current_path[node])) {
         |                     ~~ ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   3 errors generated.
--
   In file included from drivers/nvme/host/core.c:7:
   In file included from include/linux/async.h:14:
   In file included from include/linux/device.h:32:
   In file included from include/linux/device/driver.h:21:
   In file included from include/linux/module.h:20:
   In file included from include/linux/elf.h:6:
   In file included from arch/s390/include/asm/elf.h:173:
   In file included from arch/s390/include/asm/mmu_context.h:11:
   In file included from arch/s390/include/asm/pgalloc.h:18:
   In file included from include/linux/mm.h:36:
>> include/linux/rcuwait.h:23:10: error: invalid argument type 'void' to unary expression
      23 |         return !!rcu_access_pointer(w->task);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/nvme/host/core.c:27:
   In file included from drivers/nvme/host/nvme.h:21:
   In file included from include/trace/events/block.h:10:
   In file included from include/linux/buffer_head.h:15:
>> include/linux/pagemap.h:179:7: error: assigning to 'void *' from incompatible type 'void'
     179 |         head = rcu_access_pointer(mapping->i_pages.xa_head);
         |              ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/nvme/host/core.c:3944:34: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
    3944 |         ret = dev_set_name(cdev_device, name);
         |                                         ^~~~
   drivers/nvme/host/core.c:3944:34: note: treat the string as an argument to avoid this
    3944 |         ret = dev_set_name(cdev_device, name);
         |                                         ^
         |                                         "%s", 
   1 warning and 2 errors generated.


vim +/void +23 include/linux/rcuwait.h

8f95c90ceb541a Davidlohr Bueso 2017-01-11  16  
191a43be61d679 Davidlohr Bueso 2020-04-23  17  /*
191a43be61d679 Davidlohr Bueso 2020-04-23  18   * Note: this provides no serialization and, just as with waitqueues,
191a43be61d679 Davidlohr Bueso 2020-04-23  19   * requires care to estimate as to whether or not the wait is active.
191a43be61d679 Davidlohr Bueso 2020-04-23  20   */
191a43be61d679 Davidlohr Bueso 2020-04-23  21  static inline int rcuwait_active(struct rcuwait *w)
191a43be61d679 Davidlohr Bueso 2020-04-23  22  {
febd668d375caf Paolo Bonzini   2020-05-18 @23  	return !!rcu_access_pointer(w->task);
191a43be61d679 Davidlohr Bueso 2020-04-23  24  }
191a43be61d679 Davidlohr Bueso 2020-04-23  25  

:::::: The code at line 23 was first introduced by commit
:::::: febd668d375caf13a7fcd93b3498366854de854a rcuwait: avoid lockdep splats from rcuwait_active()

:::::: TO: Paolo Bonzini <pbonzini@redhat.com>
:::::: CC: Paolo Bonzini <pbonzini@redhat.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-09-25 21:08 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=202609252035.roEHB44F-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --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