From: "tip-bot2 for Lyude Paul" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Lyude Paul <lyude@redhat.com>, Boqun Feng <boqun@kernel.org>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: locking/core] rust: sync: Use super::* in spinlock.rs
Date: Wed, 12 Aug 2026 11:18:37 -0000 [thread overview]
Message-ID: <178653351738.442315.4053658557221750211.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20260807070218.27144-17-boqun@kernel.org>
The following commit has been merged into the locking/core branch of tip:
Commit-ID: df9165ab5254acb2035919c6e0511de799c1e8c1
Gitweb: https://git.kernel.org/tip/df9165ab5254acb2035919c6e0511de799c1e8c1
Author: Lyude Paul <lyude@redhat.com>
AuthorDate: Fri, 07 Aug 2026 00:02:13 -07:00
Committer: Peter Zijlstra <peterz@infradead.org>
CommitterDate: Mon, 10 Aug 2026 12:53:10 +02:00
rust: sync: Use super::* in spinlock.rs
No functional changes.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Boqun Feng <boqun@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260807070218.27144-17-boqun@kernel.org
---
rust/kernel/sync/lock/spinlock.rs | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/rust/kernel/sync/lock/spinlock.rs b/rust/kernel/sync/lock/spinlock.rs
index ef76fa0..d75af32 100644
--- a/rust/kernel/sync/lock/spinlock.rs
+++ b/rust/kernel/sync/lock/spinlock.rs
@@ -3,6 +3,7 @@
//! A kernel spinlock.
//!
//! This module allows Rust code to use the kernel's `spinlock_t`.
+use super::*;
/// Creates a [`SpinLock`] initialiser with the given name and a newly-created lock class.
///
@@ -82,7 +83,7 @@ pub use new_spinlock;
/// ```
///
/// [`spinlock_t`]: srctree/include/linux/spinlock.h
-pub type SpinLock<T> = super::Lock<T, SpinLockBackend>;
+pub type SpinLock<T> = Lock<T, SpinLockBackend>;
/// A kernel `spinlock_t` lock backend.
pub struct SpinLockBackend;
@@ -91,13 +92,11 @@ pub struct SpinLockBackend;
///
/// This is simply a type alias for a [`Guard`] returned from locking a [`SpinLock`]. It will unlock
/// the [`SpinLock`] upon being dropped.
-///
-/// [`Guard`]: super::Guard
-pub type SpinLockGuard<'a, T> = super::Guard<'a, T, SpinLockBackend>;
+pub type SpinLockGuard<'a, T> = Guard<'a, T, SpinLockBackend>;
// SAFETY: The underlying kernel `spinlock_t` object ensures mutual exclusion. `relock` uses the
// default implementation that always calls the same locking method.
-unsafe impl super::Backend for SpinLockBackend {
+unsafe impl Backend for SpinLockBackend {
type State = bindings::spinlock_t;
type GuardState = ();
next prev parent reply other threads:[~2026-08-12 11:18 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-07 7:01 [PATCH v5 00/18] Refcounted interrupt disable and SpinLockIrq for Rust Boqun Feng
2026-08-07 7:01 ` [PATCH v5 01/18] preempt: Track NMI nesting to separate per-CPU counter Boqun Feng
2026-08-07 7:01 ` [PATCH v5 02/18] preempt: Introduce HARDIRQ_DISABLE_BITS Boqun Feng
2026-08-07 7:02 ` [PATCH v5 03/18] preempt: Introduce __preempt_count_{sub,add}_return() Boqun Feng
2026-08-07 7:02 ` [PATCH v5 04/18] openrisc: Include <linux/cpumask.h> in smp.h Boqun Feng
2026-08-07 7:02 ` [PATCH v5 05/18] irq & spin_lock: Add counted interrupt disabling/enabling Boqun Feng
2026-08-07 7:02 ` [PATCH v5 06/18] irq: Add KUnit test for refcounted interrupt enable/disable Boqun Feng
2026-08-07 7:02 ` [PATCH v5 07/18] irq: Add max local_interrupt_disable() nesting level kunit test case Boqun Feng
2026-08-07 7:02 ` [PATCH v5 08/18] locking: Switch to _irq_{disable,enable}() variants in cleanup guards Boqun Feng
2026-08-07 7:02 ` [PATCH v5 09/18] sched: Remove the unused preempt_offset parameter of __cant_sleep() Boqun Feng
2026-08-07 7:02 ` [PATCH v5 10/18] sched: Avoid signed comparison of preempt_count() in __cant_migrate() Boqun Feng
2026-08-07 7:02 ` [PATCH v5 11/18] preempt: Introduce HAS_SEPARATE_PREEMPT_RESCHED_BITS Boqun Feng
2026-08-07 7:02 ` [PATCH v5 12/18] arm64: sched/preempt: Enable HAS_SEPARATE_PREEMPT_RESCHED_BITS Boqun Feng
2026-08-07 7:02 ` [PATCH v5 13/18] s390/preempt: " Boqun Feng
2026-08-07 7:02 ` [PATCH v5 14/18] rust: Introduce interrupt module Boqun Feng
2026-08-10 8:57 ` Peter Zijlstra
2026-08-10 13:28 ` Boqun Feng
2026-08-12 11:18 ` [tip: locking/core] " tip-bot2 for Lyude Paul
2026-08-07 7:02 ` [PATCH v5 15/18] rust: helper: Add spin_{un,}lock_irq_{enable,disable}() helpers Boqun Feng
2026-08-12 11:18 ` [tip: locking/core] " tip-bot2 for Boqun Feng
2026-08-07 7:02 ` [PATCH v5 16/18] rust: sync: Use super::* in spinlock.rs Boqun Feng
2026-08-12 11:18 ` tip-bot2 for Lyude Paul [this message]
2026-08-07 7:02 ` [PATCH v5 17/18] rust: sync: Add SpinLockIrq Boqun Feng
2026-08-10 9:02 ` Peter Zijlstra
2026-08-10 13:21 ` Boqun Feng
2026-08-12 11:18 ` [tip: locking/core] " tip-bot2 for Lyude Paul
2026-08-07 7:02 ` [PATCH v5 18/18] rust: sync: Introduce SpinLockIrq::lock_with() and friends Boqun Feng
2026-08-12 11:18 ` [tip: locking/core] " tip-bot2 for Lyude Paul
2026-08-10 8:52 ` [PATCH v5 00/18] Refcounted interrupt disable and SpinLockIrq for Rust Peter Zijlstra
2026-08-10 8:53 ` Peter Zijlstra
2026-08-10 9:30 ` Peter Zijlstra
2026-08-10 10:38 ` Gary Guo
2026-08-10 10:49 ` Peter Zijlstra
2026-08-11 4:17 ` [PATCH 0/4] Improvements on SpinLockIrq patch series Boqun Feng
2026-08-11 4:17 ` [PATCH 1/4] irq: Add {over,under}flow detection for local_interrupt_{enable,disable} Boqun Feng
2026-08-11 4:17 ` [PATCH 2/4] selftests/bpf: Use the new NMI_BITS definition Boqun Feng
2026-08-11 4:17 ` [PATCH 3/4] irq: Explain better on NMI_MASK overflow condition Boqun Feng
2026-08-11 4:17 ` [PATCH 4/4] irq: Add max local_interrupt_disable() nesting level kunit test case Boqun Feng
2026-08-11 10:09 ` [PATCH 0/4] Improvements on SpinLockIrq patch series Shrikanth Hegde
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=178653351738.442315.4053658557221750211.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=boqun@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=lyude@redhat.com \
--cc=peterz@infradead.org \
--cc=x86@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®