Re: [PATCH v2 1/1] rust: sync: Add Lock::from_raw() for Lock<(), B>
From: kernel test robot
Date: Sat Sep 21 2024 - 10:53:10 EST
Hi Lyude,
kernel test robot noticed the following build warnings:
[auto build test WARNING on a2f11547052001bd448ccec81dd1e68409078fbb]
url: https://github.com/intel-lab-lkp/linux/commits/Lyude-Paul/rust-sync-Add-Lock-from_raw-for-Lock-B/20240917-071956
base: a2f11547052001bd448ccec81dd1e68409078fbb
patch link: https://lore.kernel.org/r/20240916231817.643934-4-lyude%40redhat.com
patch subject: [PATCH v2 1/1] rust: sync: Add Lock::from_raw() for Lock<(), B>
config: x86_64-randconfig-104-20240921 (https://download.01.org/0day-ci/archive/20240921/202409212236.CKCTlTCJ-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240921/202409212236.CKCTlTCJ-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409212236.CKCTlTCJ-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> warning: unused import: `mem`
--> rust/kernel/sync/lock.rs:10:74
|
10 | use core::{cell::UnsafeCell, marker::PhantomData, marker::PhantomPinned, mem};
| ^^^
|
= note: `#[warn(unused_imports)]` on by default
--
>> warning: unused import: `prelude`
--> rust/kernel/sync/lock.rs:9:38
|
9 | use crate::{init::PinInit, pin_init, prelude::*, str::CStr, types::Opaque, types::ScopeGuard};
| ^^^^^^^
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki