diff options
author | Mark Brown <broonie@kernel.org> | 2021-10-22 15:16:34 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-10-26 10:15:46 +0100 |
commit | 49ed920408f85fb143020cf7d95612b6b12a84a2 (patch) | |
tree | e366bb08ca66977d0acd18e38adb69f6989222b4 /arch/arm64/include/asm/fpsimd.h | |
parent | 5838a155798479e3fe7e1482a31f0db657d5bbdd (diff) | |
download | linux-stable-49ed920408f85fb143020cf7d95612b6b12a84a2.tar.gz linux-stable-49ed920408f85fb143020cf7d95612b6b12a84a2.tar.bz2 linux-stable-49ed920408f85fb143020cf7d95612b6b12a84a2.zip |
arm64/sve: Add stub for sve_max_virtualisable_vl()
Fixes build problems for configurations with KVM enabled but SVE disabled.
Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211022141635.2360415-2-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/fpsimd.h')
-rw-r--r-- | arch/arm64/include/asm/fpsimd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/fpsimd.h b/arch/arm64/include/asm/fpsimd.h index 1d0b5fa253a0..dbb4b30a5648 100644 --- a/arch/arm64/include/asm/fpsimd.h +++ b/arch/arm64/include/asm/fpsimd.h @@ -215,6 +215,11 @@ static inline void fpsimd_release_task(struct task_struct *task) { } static inline void sve_sync_to_fpsimd(struct task_struct *task) { } static inline void sve_sync_from_fpsimd_zeropad(struct task_struct *task) { } +static inline int sve_max_virtualisable_vl(void) +{ + return 0; +} + static inline int sve_set_current_vl(unsigned long arg) { return -EINVAL; |