Skip to contentSkip to conversation

warning: empty line after doc comment

PATCH kernel test robot 1 participant 1 message Nov 26

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://github.com/AsahiLinux/linux bits/250-aop
head:   fc24f7e1a3f10a336872c79b3772930633b0205c
commit: ecb2e1ae46a0322942a626e9a773ec26aaa11b93 [21/50] rust: Add Ownable/Owned types
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20261126/[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/20261126/[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: empty line after doc comment

--> rust/kernel/types.rs:461:1
|
461 | / /// into a &mut T.
462 | |
| |_^
...
467 | pub unsafe trait OwnableMut: Ownable {}
| --------------------------- the comment documents this trait
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#empty_line_after_doc_comments
= note: -W clippy::empty-line-after-doc-comments implied by -W clippy::all
= help: to override -W clippy::all add #[allow(clippy::empty_line_after_doc_comments)]
= help: if the empty line is unintentional, remove it
help: if the documentation should include the empty line include it in the comment
|
462 | ///
|
--

>> warning: unclosed HTML tag `T`

--> rust/kernel/types.rs:456:53
|
456 | /// A subtrait of Ownable that asserts that an Owned<T> Rust reference is not only unique
| ^^^
|
= note: #[warn(rustdoc::invalid_html_tags)] on by default
help: try marking as source code
|
456 | /// A subtrait of Ownable that asserts that an Owned<T> Rust reference is not only unique
| + +
--

>> warning: unclosed HTML tag `T`

--> rust/kernel/types.rs:460:71
|
460 | /// When this type is implemented for an Ownable type, it allows Owned<T> to be dereferenced
| ^^^
|
help: try marking as source code
|
460 | /// When this type is implemented for an Ownable type, it allows Owned<T> to be dereferenced
| + +

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