linux-stable/arch/powerpc
Madhavan Srinivasan 5dea003c7c powerpc/kvm: Fix ifdef to remove build warning
[ Upstream commit 88688a2c8a ]

When compiling for pseries or powernv defconfig with "make C=1",
these warning were reported bu sparse tool in powerpc/kernel/kvm.c

arch/powerpc/kernel/kvm.c:635:9: warning: switch with no cases
arch/powerpc/kernel/kvm.c:646:9: warning: switch with no cases

Currently #ifdef were added after the switch case which are specific
for BOOKE and PPC_BOOK3S_32. These are not enabled in pseries/powernv
defconfig. Fix it by moving the #ifdef before switch(){}

Fixes: cbe487fac7 ("KVM: PPC: Add mtsrin PV code")
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250518044107.39928-1-maddy@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-04 14:41:42 +02:00
..
boot
configs arch: powerpc: defconfig: Drop obsolete CONFIG_NET_CLS_TCINDEX 2025-08-28 16:22:33 +02:00
crypto
include powerpc: Fix struct termio related ioctl macros 2025-07-17 18:27:48 +02:00
kernel powerpc/kvm: Fix ifdef to remove build warning 2025-09-04 14:41:42 +02:00
kexec
kvm
lib powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC 2025-03-13 12:47:28 +01:00
math-emu
mm
net
oprofile
perf
platforms (powerpc/512) Fix possible dma_unmap_single() on uninitialized pointer 2025-08-28 16:22:43 +02:00
purgatory
sysdev
tools
xmon
Kbuild
Kconfig
Kconfig.debug
Makefile
Makefile.postlink