linux-stable/arch
Madhavan Srinivasan eb7eafbfd1 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 15:31:45 +02:00
..
alpha
arc
arm ARM: tegra: Use I/O memcpy to write to IRAM 2025-08-20 18:30:24 +02:00
arm64 arm64: dts: ti: k3-am62*: Move eMMC pinmux to top level board file 2025-08-28 16:31:08 +02:00
csky
hexagon
loongarch LoongArch: Optimize module load time by optimizing PLT/GOT counting 2025-08-28 16:31:14 +02:00
m68k m68k: Fix lost column on framebuffer debug console 2025-08-28 16:30:54 +02:00
microblaze
mips mips: lantiq: xway: sysctrl: rename the etop node 2025-09-04 15:31:43 +02:00
nios2
openrisc
parisc parisc: Update comments in make_insert_tlb 2025-08-28 16:31:00 +02:00
powerpc powerpc/kvm: Fix ifdef to remove build warning 2025-09-04 15:31:45 +02:00
riscv mm/ptdump: take the memory hotplug lock inside ptdump_walk_pgd() 2025-08-20 18:30:55 +02:00
s390 s390/hypfs: Enable limited access during lockdown 2025-08-28 16:31:16 +02:00
sh
sparc
um um: Re-evaluate thread flags repeatedly 2025-08-20 18:30:32 +02:00
x86 x86/cpu/hygon: Add missing resctrl_cpu_detect() in bsp_init helper 2025-08-28 16:31:11 +02:00
xtensa
.gitignore
Kconfig