[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260117215542.405790227@kernel.org>
Date: Sat, 17 Jan 2026 22:58:27 +0100
From: Thomas Gleixner <tglx@...nel.org>
To: LKML <linux-kernel@...r.kernel.org>
Cc: x86@...nel.org,
Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Subject: [patch 2/2] x86/vdso: Prevent empty switch case warning
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@...nel.org>
---
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;
Powered by blists - more mailing lists