All of lore.kernel.org
 help / color / mirror / Atom feed
* [rust:pr/1161 185/195] warning: unneeded unit return type
@ 2025-04-29 19:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-29 19:43 UTC (permalink / raw)
  To: Alessevan; +Cc: oe-kbuild-all, Miguel Ojeda

tree:   https://github.com/Rust-for-Linux/linux pr/1161
head:   9f5fa1ba161d636d346f72ba808ce20ee4a3fa70
commit: aac1a5b385f3ce34533b9afafb8614572d3f0d2d [185/195] feat: crash when receiving packet
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250430/202504300358.x1HTowZ2-lkp@intel.com/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/20250430/202504300358.x1HTowZ2-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/202504300358.x1HTowZ2-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> warning: unneeded unit return type
   --> rust/kernel/net/dev.rs:520:37
   |
   520 |     pub fn ip_summed(&self, val: u8) -> () {
   |                                     ^^^^^^ help: remove the `-> ()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
   = note: `-W clippy::unused-unit` implied by `-W clippy::all`
   = help: to override `-W clippy::all` add `#[allow(clippy::unused_unit)]`
--
>> warning: unneeded unit return type
   --> rust/kernel/net/dev.rs:527:37
   |
   527 |     pub fn protocol(&self, val: u16) -> () {
   |                                     ^^^^^^ help: remove the `-> ()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit

-- 
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:[~2025-04-29 19:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29 19:43 [rust:pr/1161 185/195] warning: unneeded unit return type 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.