Skip to content

Commit 49ed920

Browse files
brooniewilldeacon
authored andcommitted
arm64/sve: Add stub for sve_max_virtualisable_vl()
Fixes build problems for configurations with KVM enabled but SVE disabled. Reported-by: Catalin Marinas <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 5838a15 commit 49ed920

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm64/include/asm/fpsimd.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ static inline void fpsimd_release_task(struct task_struct *task) { }
215215
static inline void sve_sync_to_fpsimd(struct task_struct *task) { }
216216
static inline void sve_sync_from_fpsimd_zeropad(struct task_struct *task) { }
217217

218+
static inline int sve_max_virtualisable_vl(void)
219+
{
220+
return 0;
221+
}
222+
218223
static inline int sve_set_current_vl(unsigned long arg)
219224
{
220225
return -EINVAL;

0 commit comments

Comments
 (0)