linux-stable/arch/powerpc
Madhavan Srinivasan 8d49313e68 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 16:55:33 +02:00
..
boot powerpc: dts: mpc8315erdb: Add GPIO controller node 2025-06-13 12:32:21 +05:30
configs arch: powerpc: defconfig: Drop obsolete CONFIG_NET_CLS_TCINDEX 2025-08-15 16:38:45 +02:00
crypto
include powerpc: floppy: Add missing checks after DMA map 2025-08-20 18:41:16 +02:00
kernel powerpc/kvm: Fix ifdef to remove build warning 2025-09-04 16:55:33 +02:00
kexec
kvm treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
lib powerpc updates for 6.16 2025-05-26 14:38:57 -07:00
math-emu
mm - The 11 patch series "Add folio_mk_pte()" from Matthew Wilcox 2025-05-31 15:44:16 -07:00
net
perf Performance events updates for v6.16: 2025-05-26 15:40:23 -07:00
platforms (powerpc/512) Fix possible dma_unmap_single() on uninitialized pointer 2025-08-20 18:41:11 +02:00
purgatory
sysdev A set of cleanups for the generic interrupt subsystem: 2025-05-27 08:07:32 -07:00
tools
xmon
Kbuild
Kconfig
Kconfig.debug
Makefile
Makefile.postlink