All of lore.kernel.org
 help / color / mirror / Atom feed
* [boqun:lockdep-for-tip 5/5] error[E0599]: no method named `try_lock` found for struct `Lock` in the current scope
@ 2024-10-29  4:22 kernel test robot
  2024-10-29  4:41 ` Boqun Feng
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-10-29  4:22 UTC (permalink / raw)
  To: Alice Ryhl; +Cc: oe-kbuild-all, Boqun Feng

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git lockdep-for-tip
head:   0070c072c1b278f99047ab720e93406ad1359e73
commit: 0070c072c1b278f99047ab720e93406ad1359e73 [5/5] rust: sync: Add global lock support
config: x86_64-randconfig-101-20241029 (https://download.01.org/0day-ci/archive/20241029/202410291211.4JnU6G41-lkp@intel.com/config)
compiler: clang version 19.1.2 (https://github.com/llvm/llvm-project 7ba7d8e2f7b6445b60679da826210cdde29eaf8b)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241029/202410291211.4JnU6G41-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/202410291211.4JnU6G41-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/asm-offsets.c:14:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:21:
   In file included from include/linux/mm.h:2213:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
   518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
   |                               ~~~~~~~~~~~ ^ ~~~
   1 warning generated.
   In file included from rust/helpers/helpers.c:10:
   In file included from rust/helpers/blk.c:3:
   In file included from include/linux/blk-mq.h:5:
   In file included from include/linux/blkdev.h:9:
   In file included from include/linux/blk_types.h:10:
   In file included from include/linux/bvec.h:10:
   In file included from include/linux/highmem.h:8:
   In file included from include/linux/cacheflush.h:5:
   In file included from arch/x86/include/asm/cacheflush.h:5:
   In file included from include/linux/mm.h:2213:
   include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
   518 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
   |                               ~~~~~~~~~~~ ^ ~~~
   1 warning generated.
   clang diag: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
   clang diag: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
   clang diag: include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
   rust/core.o: warning: objtool: asan.module_ctor+0xd: call without frame pointer save/setup
   rust/core.o: warning: objtool: asan.module_dtor+0xd: call without frame pointer save/setup
   rust/compiler_builtins.o: warning: objtool: asan.module_ctor+0xd: call without frame pointer save/setup
   rust/compiler_builtins.o: warning: objtool: asan.module_dtor+0xd: call without frame pointer save/setup
   rust/alloc.o: warning: objtool: asan.module_ctor+0xd: call without frame pointer save/setup
   rust/alloc.o: warning: objtool: asan.module_dtor+0xd: call without frame pointer save/setup
>> error[E0599]: no method named `try_lock` found for struct `Lock` in the current scope
   --> rust/kernel/sync/lock/global.rs:90:31
   |
   90  |               inner: self.inner.try_lock()?,
   |                                 ^^^^^^^^
   |
   ::: rust/kernel/init/macros.rs:822:9
   |
   822 | /         $vis struct $name <$($decl_generics)*>
   823 | |         where $($whr)*
   824 | |         {
   825 | |             $($fields)*
   826 | |         }
   | |_________- method `try_lock` not found for this struct
   |
   help: there is a method `lock` with a similar name
   |
   90  |             inner: self.inner.lock()?,
   |                               ~~~~

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [boqun:lockdep-for-tip 5/5] error[E0599]: no method named `try_lock` found for struct `Lock` in the current scope
  2024-10-29  4:22 [boqun:lockdep-for-tip 5/5] error[E0599]: no method named `try_lock` found for struct `Lock` in the current scope kernel test robot
@ 2024-10-29  4:41 ` Boqun Feng
  0 siblings, 0 replies; 2+ messages in thread
From: Boqun Feng @ 2024-10-29  4:41 UTC (permalink / raw)
  To: kernel test robot; +Cc: Alice Ryhl, oe-kbuild-all

On Tue, Oct 29, 2024 at 12:22:05PM +0800, kernel test robot wrote:
[...]
> >> error[E0599]: no method named `try_lock` found for struct `Lock` in the current scope
>    --> rust/kernel/sync/lock/global.rs:90:31
>    |
>    90  |               inner: self.inner.try_lock()?,
>    |                                 ^^^^^^^^
>    |
>    ::: rust/kernel/init/macros.rs:822:9
>    |
>    822 | /         $vis struct $name <$($decl_generics)*>
>    823 | |         where $($whr)*
>    824 | |         {
>    825 | |             $($fields)*
>    826 | |         }
>    | |_________- method `try_lock` not found for this struct
>    |
>    help: there is a method `lock` with a similar name
>    |
>    90  |             inner: self.inner.lock()?,
>    |                               ~~~~
> 

Ok, I should have noticed this one depends on try_lock(), but it won't
be a problem since I plan to rebase on v6.13-rc1.

Regards,
Boqun

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-29  4:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-29  4:22 [boqun:lockdep-for-tip 5/5] error[E0599]: no method named `try_lock` found for struct `Lock` in the current scope kernel test robot
2024-10-29  4:41 ` Boqun Feng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.