* [asahilinux:bits/250-aop 101/112] warning: comparing with null is better expressed by the `.is_null()` method
@ 2025-02-10 11:09 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-10 11:09 UTC (permalink / raw)
To: Sasha Finkelstein; +Cc: oe-kbuild-all, Janne Grunau
tree: https://github.com/AsahiLinux/linux bits/250-aop
head: fd3792ec2053672fb9359a570552a51ae48f4035
commit: 6303e0f5115807296306000e29cc91ac57587573 [101/112] rust: device: Add Device::parent()
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250210/202502101942.fQbu6R2C-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250210/202502101942.fQbu6R2C-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/202502101942.fQbu6R2C-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> warning: comparing with null is better expressed by the `.is_null()` method
--> rust/kernel/device.rs:71:12
|
71 | if pdev == ptr::null_mut() {
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_null
= note: `-W clippy::cmp-null` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::cmp_null)]`
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-10 11:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 11:09 [asahilinux:bits/250-aop 101/112] warning: comparing with null is better expressed by the `.is_null()` method kernel test robot
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.