[asahilinux:bits/250-aop 41/79] warning: associated items `zeroed` and `as_raw` are never used
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: ecfe14f109e44ec7e5bef5d696c40030aed24d94 [41/79] rust: io: resource: Add owned Resource initialiser 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: associated items `zeroed` and `as_raw` are never used --> rust/kernel/io/resource.rs:83:19 | 81 | impl Resource { | ------------- associated items in this implementation 82 | /// Create a new zeroed [`Resource`] 83 | pub(crate) fn zeroed() -> Self { | ^^^^^^ ... 90 | pub(crate) fn as_raw(&self) -> *mut bindings::resource { | ^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default -- >> warning: used a field initializer for a tuple struct --> rust/kernel/io/resource.rs:84:9 | 84 | / Resource { 85 | | 0: Opaque::<bindings::resource>::zeroed(), 86 | | } | |_________^ help: use tuple initialization: `Resource(Opaque::<bindings::resource>::zeroed())` | = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#init_numbered_fields = note: `-W clippy::init-numbered-fields` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::init_numbered_fields)]` -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki