From 0fb44c074fcad32d7c447889ad533cf4a7ce9f33 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 10 Jan 2024 16:01:43 +0100 Subject: [PATCH] arch: fix rustdoc warning warning: this URL is not a hyperlink --> arch/src/aarch64/layout.rs:114:58 | 114 | ...in https://www.kernel.org/doc/Documentation/arm64/booting.txt. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `` | = note: bare URLs are not automatically turned into clickable links = note: `#[warn(rustdoc::bare_urls)]` on by default I also noticed that it looks like this comment was supposed to be applied to FDT_MAX_SIZE, not FDT_START, so I moved it. Signed-off-by: Alyssa Ross --- arch/src/aarch64/layout.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/src/aarch64/layout.rs b/arch/src/aarch64/layout.rs index 914230a4c..53bae80e5 100644 --- a/arch/src/aarch64/layout.rs +++ b/arch/src/aarch64/layout.rs @@ -111,8 +111,9 @@ pub const RAM_64BIT_START: GuestAddress = GuestAddress(0x1_0000_0000); pub const CMDLINE_MAX_SIZE: usize = 2048; /// FDT is at the beginning of RAM. -/// Maximum size of the device tree blob as specified in https://www.kernel.org/doc/Documentation/arm64/booting.txt. pub const FDT_START: GuestAddress = RAM_START; +/// Maximum size of the device tree blob as specified in [the kernel +/// documentation](https://www.kernel.org/doc/Documentation/arm64/booting.txt). pub const FDT_MAX_SIZE: u64 = 0x20_0000; /// Put ACPI table above dtb