[patch 2/2] x86/vdso: Prevent empty switch case warning
From: Thomas Gleixner
Date: Sat Jan 17 2026 - 16:58:29 EST
Sparse complains rightfully when CONFIG_PARAVIRT_CLOCK and
CONFIG_HYPERV_TIMER are both not set:
arch/x86/entry/vdso/vma.c:94:9: warning: switch with no cases
Add a default case to fix that.
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
---
arch/x86/entry/vdso/vma.c | 2 ++
1 file changed, 2 insertions(+)
--- a/arch/x86/entry/vdso/vma.c
+++ b/arch/x86/entry/vdso/vma.c
@@ -114,6 +114,8 @@ static vm_fault_t vvar_vclock_fault(cons
break;
}
#endif /* CONFIG_HYPERV_TIMER */
+ default:
+ break;
}
return VM_FAULT_SIGBUS;