Skip to contentSkip to conversation

warning: associated function `from_raw` is never used

PATCH kernel test robot 1 participant 1 message Oct 24

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hi Joel,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   bd1ecbb61afefc6a8b876ccbc31e9228b44e9eab
commit: 3f1e12fce16f6e88fbaab3404df33f65c8f4df87 [4098/19853] rust: pci: add resource_flags accessor
config: x86_64-buildonly-randconfig-1005-20261024 (https://download.01.org/0day-ci/archive/20261024/[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/20261024/[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 function `from_raw` is never used

--> rust/kernel/io/resource.rs:240:25
|
216 | impl Flags {
| ---------- associated function in this implementation
...
240 | pub(crate) const fn from_raw(value: c_ulong) -> Self {
| ^^^^^^^^
|
= note: #[warn(dead_code)] (part of #[warn(unused)]) on by default
--
llvm-nm: error: rust/helpers/helpers.o: No such file or directory

>> warning: associated function `from_raw` is never used

--> rust/kernel/io/resource.rs:240:25
|
216 | impl Flags {
| ---------- associated function in this implementation
...
240 | pub(crate) const fn from_raw(value: c_ulong) -> Self {
| ^^^^^^^^
|
= note: #[warn(dead_code)] (part of #[warn(unused)]) on by default

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