Re: [PATCH v2 6/8] rust: samples: usb: remove redundant `.as_ref()` for `dev_*` print

From: kernel test robot

Date: Sat Jan 24 2026 - 00:37:15 EST


Hi Gary,

kernel test robot noticed the following build warnings:

[auto build test WARNING on a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d]

url: https://github.com/intel-lab-lkp/linux/commits/Gary-Guo/rust-pci-remove-redundant-as_ref-for-dev_-print/20260124-020452
base: a0c666c25aeefd16f4b088c6549a6fb6b65a8a1d
patch link: https://lore.kernel.org/r/20260123175854.176735-6-gary%40kernel.org
patch subject: [PATCH v2 6/8] rust: samples: usb: remove redundant `.as_ref()` for `dev_*` print
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260124/202601241311.4vcnMzFr-lkp@xxxxxxxxx/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260124/202601241311.4vcnMzFr-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/202601241311.4vcnMzFr-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> warning: unused import: `self`
--> samples/rust/rust_driver_usb.rs:8:9
|
8 | self,
| ^^^^
|
= note: `#[warn(unused_imports)]` on by default

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