Skip to content

Commit aec4669

Browse files
committed
RISC-V: tidying: Prefer more canonical reference
1. Use canonical kernel.org repository instead of the GitHub mirror. 2. Refer to the fixed commit to guarantee access. 3. Use `uapi` part to ensure that the feature detection is primarily intended for user-mode programs.
1 parent eab39c6 commit aec4669

File tree

1 file changed

+1
-1
lines changed
  • crates/std_detect/src/detect/os/linux

1 file changed

+1
-1
lines changed

crates/std_detect/src/detect/os/linux/riscv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
2121

2222
// The values are part of the platform-specific [asm/hwcap.h][hwcap]
2323
//
24-
// [hwcap]: https://github.com/torvalds/linux/blob/master/arch/riscv/include/asm/hwcap.h
24+
// [hwcap]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwcap.h?h=v6.14
2525
let auxv = auxvec::auxv().expect("read auxvec"); // should not fail on RISC-V platform
2626
#[allow(clippy::eq_op)]
2727
enable_feature(

0 commit comments

Comments
 (0)