[asahilinux:bits/250-aop 30/79] warning: reference as raw pointer
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/AsahiLinux/linux bits/250-aop head: e793b14f66e33b70363166d84886d82d462f1987 commit: 1dd83f8f25741b6844488bf0aec201b88d453c3b [30/79] rust: alloc: vec: Import .drain() / Drain from rust library config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260824/[email protected]/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) rustc: rustc 1.96.0 (ac68faa20 2026-05-25) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260824/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> warning: reference as raw pointer --> rust/kernel/alloc/kvec/drain.rs:90:43 | 90 | .map(|elt| unsafe { ptr::read(elt as *const _) }) | ^^^^^^^^^^^^^^^ help: try: `core::ptr::from_ref(elt)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#ref_as_ptr = note: requested on the command line with `-W clippy::ref-as-ptr` -- >> warning: reference as raw pointer --> rust/kernel/alloc/kvec/drain.rs:104:43 | 104 | .map(|elt| unsafe { ptr::read(elt as *const _) }) | ^^^^^^^^^^^^^^^ help: try: `core::ptr::from_ref(elt)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#ref_as_ptr -- >> warning: unresolved link to `mem::forget` --> rust/kernel/alloc/kvec.rs:795:11 | 795 | /// [`mem::forget`], for example), the vector may have lost and leaked | ^^^^^^^^^^^ no item named `mem` in scope | = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki