diff options
author | Will Deacon <will@kernel.org> | 2020-11-18 19:44:01 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-11-27 18:59:05 +0000 |
commit | 36fb4cd55f626dff0f6e76bed14707fa00147b7f (patch) | |
tree | 60ae9963e7089f58022b41f29817c1bd379dd5be /arch/arm64/include/asm/cpufeature.h | |
parent | 8d14797b53f044fda3ed42b5b6357c7622b8af58 (diff) | |
download | lwn-36fb4cd55f626dff0f6e76bed14707fa00147b7f.tar.gz lwn-36fb4cd55f626dff0f6e76bed14707fa00147b7f.zip |
KVM: arm64: Remove kvm_arch_vm_ioctl_check_extension()
kvm_arch_vm_ioctl_check_extension() is only called from
kvm_vm_ioctl_check_extension(), so we can inline it and remove the extra
function.
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201118194402.2892-3-will@kernel.org
Diffstat (limited to 'arch/arm64/include/asm/cpufeature.h')
-rw-r--r-- | arch/arm64/include/asm/cpufeature.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index 97244d4feca9..04ab88db4b43 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -697,6 +697,11 @@ static inline bool system_supports_generic_auth(void) cpus_have_const_cap(ARM64_HAS_GENERIC_AUTH); } +static inline bool system_has_full_ptr_auth(void) +{ + return system_supports_address_auth() && system_supports_generic_auth(); +} + static __always_inline bool system_uses_irq_prio_masking(void) { return IS_ENABLED(CONFIG_ARM64_PSEUDO_NMI) && |