aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/dir.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2025-08-29 19:57:42 +0000
committerDanilo Krummrich <[email protected]>2025-09-02 09:16:36 +0000
commitf1b55db08d527240fbc3b8c84229134a98d8d080 (patch)
treeeb4a0259edf62c248588d5c0c9d3b001be685cc0 /fs/kernfs/dir.c
parentLinux 6.17-rc3 (diff)
downloadkernel-f1b55db08d527240fbc3b8c84229134a98d8d080.tar.gz
kernel-f1b55db08d527240fbc3b8c84229134a98d8d080.zip
rust: device: fix unresolved link to drm::Device
drm::Device is only available when CONFIG_DRM=y, which we have to consider for intra-doc links, otherwise the rustdoc make target produces the following warning. >> warning: unresolved link to `kernel::drm::Device` --> rust/kernel/device.rs:154:22 | 154 | /// [`drm::Device`]: kernel::drm::Device | ^^^^^^^^^^^^^^^^^^^ no item named `drm` in module `kernel` | = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default Fix this by making the intra-doc link conditional on CONFIG_DRM being enabled. Fixes: d6e26c1ae4a6 ("device: rust: expand documentation for Device") Suggested-by: Alice Ryhl <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: Alice Ryhl <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'fs/kernfs/dir.c')
0 files changed, 0 insertions, 0 deletions