All of lore.kernel.org
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/rust-dyndbg 10/15] warning: constants have by default a `'static` lifetime
@ 2026-10-02  2:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-02  2:08 UTC (permalink / raw)
  To: Thomas Weißschuh ; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/rust-dyndbg
head:   e0f643bcb55eadaa7c1b9d23ea0569cf7b5377a8
commit: 76cf11132c45c4672d93f4d6946b3c24411f18c7 [10/15] rust: print: use CStr for __LOG_PREFIX
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20261002/202610020437.P8jFDMaS-lkp@intel.com/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/20261002/202610020437.P8jFDMaS-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610020437.P8jFDMaS-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> warning: constants have by default a `'static` lifetime
   --> rust/kernel/lib.rs:161:22
   |
   161 | const __LOG_PREFIX: &'static str::CStr = c"rust_kernel";
   |                     -^^^^^^^---------- help: consider removing `'static`: `&str::CStr`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#redundant_static_lifetimes
   = note: `-W clippy::redundant-static-lifetimes` implied by `-W clippy::all`
   = help: to override `-W clippy::all` add `#[allow(clippy::redundant_static_lifetimes)]`

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-02  2:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02  2:08 [thomas-weissschuh:b4/rust-dyndbg 10/15] warning: constants have by default a `'static` lifetime kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.