Re: [PATCH 2/2] rust: alloc: add `Vec::dec_len`
From: kernel test robot
Date: Wed Mar 19 2025 - 17:06:21 EST
Hi Tamir,
kernel test robot noticed the following build warnings:
[auto build test WARNING on cf25bc61f8aecad9b0c45fe32697e35ea4b13378]
url: https://github.com/intel-lab-lkp/linux/commits/Tamir-Duberstein/rust-alloc-replace-Vec-set_len-with-inc_len/20250317-103338
base: cf25bc61f8aecad9b0c45fe32697e35ea4b13378
patch link: https://lore.kernel.org/r/20250316-vec-set-len-v1-2-60f98a28723f%40gmail.com
patch subject: [PATCH 2/2] rust: alloc: add `Vec::dec_len`
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250320/202503200447.aF1NxDEq-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250320/202503200447.aF1NxDEq-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/202503200447.aF1NxDEq-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> warning: method `dec_len` is never used
--> rust/kernel/alloc/kvec.rs:205:15
|
161 | / impl<T, A> Vec<T, A>
162 | | where
163 | | A: Allocator,
| |_________________- method in this implementation
...
205 | unsafe fn dec_len(&mut self, count: usize) -> &mut [T] {
| ^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki