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.
This commit is contained in:
Tsukasa OI 2025-04-11 01:13:44 +00:00 committed by Amanieu d'Antras
parent 0b0c0e47f8
commit c36e9de178

View file

@ -21,7 +21,7 @@ pub(crate) fn detect_features() -> cache::Initializer {
// The values are part of the platform-specific [asm/hwcap.h][hwcap]
//
// [hwcap]: https://github.com/torvalds/linux/blob/master/arch/riscv/include/asm/hwcap.h
// [hwcap]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/include/uapi/asm/hwcap.h?h=v6.14
let auxv = auxvec::auxv().expect("read auxvec"); // should not fail on RISC-V platform
#[allow(clippy::eq_op)]
enable_feature(