summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorLyude Paul <lyude@redhat.com>2025-11-07 15:25:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-02 12:57:05 +0100
commit505e8c7f6ca1c3e8f4caa2bc598f47fa3ac664e3 (patch)
tree4c50c945ea0f70206edb6902f56785ea1dc0ddab /rust
parentbb82aaee16907dc4d0b9b0ca7953ceb3edc328c6 (diff)
downloadlinux-505e8c7f6ca1c3e8f4caa2bc598f47fa3ac664e3.tar.gz
linux-505e8c7f6ca1c3e8f4caa2bc598f47fa3ac664e3.tar.bz2
linux-505e8c7f6ca1c3e8f4caa2bc598f47fa3ac664e3.zip
rust/drm/gem: Fix missing header in `Object` rustdoc
commit e54ad0cd3673c93cdafda58505eaa81610fe3aef upstream. Invariants should be prefixed with a # to turn it into a header. There are no functional changes in this patch. Cc: stable@vger.kernel.org Fixes: c284d3e42338 ("rust: drm: gem: Add GEM object abstraction") Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patch.msgid.link/20251107202603.465932-1-lyude@redhat.com Signed-off-by: Alice Ryhl <aliceryhl@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust')
-rw-r--r--rust/kernel/drm/gem/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/kernel/drm/gem/mod.rs b/rust/kernel/drm/gem/mod.rs
index 30c853988b94..73b5f0bf3f85 100644
--- a/rust/kernel/drm/gem/mod.rs
+++ b/rust/kernel/drm/gem/mod.rs
@@ -184,7 +184,7 @@ impl<T: IntoGEMObject> BaseObject for T {}
/// A base GEM object.
///
-/// Invariants
+/// # Invariants
///
/// - `self.obj` is a valid instance of a `struct drm_gem_object`.
/// - `self.dev` is always a valid pointer to a `struct drm_device`.