From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android17-6.18 15/15] warning: unsafe function's docs are missing a `# Safety` section
Date: Wed, 07 Oct 2026 00:30:21 +0200 [thread overview]
Message-ID: <202610070006.ZzQeGIGv-lkp@intel.com> (raw)
tree: https://android.googlesource.com/kernel/common android17-6.18
head: 51015f38e9dca4ae0e4cdfd507558f2b438dd124
commit: 9d24b6e4b72a87704df6c39d7a9d8dd1cd9e41d5 [15/15] ANDROID: rust: Adds support for using a spinlock inside an IRQ handler.
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20261007/202610070006.ZzQeGIGv-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/20261007/202610070006.ZzQeGIGv-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/202610070006.ZzQeGIGv-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> warning: unsafe function's docs are missing a `# Safety` section
--> rust/kernel/sync/lock/spinlock_irq.rs:128:5
|
128 | unsafe fn assert_is_held(ptr: *mut bindings::spinlock_t) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#missing_safety_doc
= note: `-W clippy::missing-safety-doc` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::missing_safety_doc)]`
--
>> warning: this lifetime isn't used in the impl
--> rust/kernel/sync/lock/spinlock_irq.rs:147:6
|
147 | impl<'a, T> core::ops::Deref for SpinLockIrqGuard<'_, T> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#extra_unused_lifetimes
= note: `-W clippy::extra-unused-lifetimes` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::extra_unused_lifetimes)]`
--
>> warning: this lifetime isn't used in the impl
--> rust/kernel/sync/lock/spinlock_irq.rs:157:6
|
157 | impl<'a, T> core::ops::DerefMut for SpinLockIrqGuard<'_, T> {
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#extra_unused_lifetimes
--
>> warning: unsafe function's docs are missing a `# Safety` section
--> rust/kernel/sync/lock/spinlock_irq.rs:167:5
|
167 | unsafe fn new(lock: &'a SpinLockIrq<T>) -> Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.96.0/index.html#missing_safety_doc
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-06 22:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610070006.ZzQeGIGv-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.