]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: dma: fix broken intra-doc links
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Wed, 31 Dec 2025 04:57:27 +0000 (13:57 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 2 Jan 2026 18:04:12 +0000 (19:04 +0100)
commit32cb3840386fd3684fbe8294cfc0a6684417139e
tree3ca2c04e9c92d4d2785d46079503ef21825b2bba
parent4c9f6a782f6078dc94450fcb22e65d520bfa0775
rust: dma: fix broken intra-doc links

The `pci` module is conditional on CONFIG_PCI. When it's disabled, the
intra-doc link to `pci::Device` causes rustdoc warnings:

warning: unresolved link to `::kernel::pci::Device`
  --> rust/kernel/dma.rs:30:70
   |
30 | /// where the underlying bus is DMA capable, such as [`pci::Device`](::kernel::pci::Device) or
   |                                                                      ^^^^^^^^^^^^^^^^^^^^^ no item named `pci` in module `kernel`

Fix this by making the documentation conditional on CONFIG_PCI.

Fixes: d06d5f66f549 ("rust: dma: implement `dma::Device` trait")
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Reviewed-by: Dirk Behme <dirk.behme@de.bosch.com>
Link: https://patch.msgid.link/20251231045728.1912024-1-fujita.tomonori@gmail.com
[ Keep the "such as" part indicating a list of examples; fix typos in
  commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/dma.rs