diff options
author | Ard Biesheuvel <[email protected]> | 2024-02-14 13:29:02 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2024-02-16 12:42:32 +0000 |
commit | 293d865f0af58e6ff2ff0ba0e890674e00d036b1 (patch) | |
tree | 5581033bbf73a940bc92e58c47e10458effa4f65 /net/lapb/lapb_iface.c | |
parent | aa6a52b2470c375ecd71b1d81c89d93b11134b56 (diff) |
arm64: mm: Make kaslr_requires_kpti() a static inline
In preparation for moving the first assignment of arm64_use_ng_mappings
to an earlier stage in the boot, ensure that kaslr_requires_kpti() is
accessible without relying on the core kernel's view on whether or not
KASLR is enabled. So make it a static inline, and move the
kaslr_enabled() check out of it and into the callers, one of which will
disappear in a subsequent patch.
Once/when support for the obsolete ThunderX 1 platform is dropped, this
check reduces to a E0PD feature check on the local CPU.
Signed-off-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions