public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@kernel.org>
To: LKML <linux-kernel@vger.kernel.org>
Cc: x86@kernel.org, "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Subject: [patch 2/2] x86/vdso: Prevent empty switch case warning
Date: Sat, 17 Jan 2026 22:58:27 +0100	[thread overview]
Message-ID: <20260117215542.405790227@kernel.org> (raw)
In-Reply-To: 20260117215257.601937692@kernel.org

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@kernel.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;


  parent reply	other threads:[~2026-01-17 21:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-17 21:58 [patch 0/2] x86/vdso: Address sparse warnings Thomas Gleixner
2026-01-17 21:58 ` [patch 1/2] x86/vdso: Tweak CHECKFLAGS for 32-bit VDSO build Thomas Gleixner
2026-01-19  7:18   ` Thomas Weißschuh
2026-01-22 14:06     ` Thomas Gleixner
2026-01-17 21:58 ` Thomas Gleixner [this message]
2026-01-19  7:16   ` [patch 2/2] x86/vdso: Prevent empty switch case warning Thomas Weißschuh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260117215542.405790227@kernel.org \
    --to=tglx@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas.weissschuh@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox