linux-yocto/arch/powerpc
Madhavan Srinivasan eb7eafbfd1 powerpc/kvm: Fix ifdef to remove build warning
[ Upstream commit 88688a2c8ac6c8036d983ad8b34ce191c46a10aa ]

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
..
boot powerpc/boot: Fix build with gcc 15 2025-08-28 16:31:10 +02:00
configs arch: powerpc: defconfig: Drop obsolete CONFIG_NET_CLS_TCINDEX 2025-08-15 12:13:42 +02:00
crypto crypto: powerpc/poly1305 - add depends on BROKEN for now 2025-08-01 09:48:45 +01:00
include powerpc: floppy: Add missing checks after DMA map 2025-08-20 18:30:36 +02:00
kernel powerpc/kvm: Fix ifdef to remove build warning 2025-09-04 15:31:45 +02:00
kexec powerpc/crash: Fix non-smp kexec preparation 2025-06-19 15:31:27 +02:00
kvm KVM: PPC: Enable CAP_SPAPR_TCE_VFIO on pSeries KVM guests 2025-04-20 10:15:54 +02:00
lib powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM_ALLOC 2025-02-27 04:30:16 -08:00
math-emu
mm book3s64/radix: Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n 2025-05-29 11:03:09 +02:00
net powerpc updates for 6.11 2024-07-19 21:00:33 -07:00
perf arch/powerpc/perf: Check the instruction type before creating sample with perf_mem_data_src 2025-05-29 11:02:57 +02:00
platforms (powerpc/512) Fix possible dma_unmap_single() on uninitialized pointer 2025-08-20 18:30:33 +02:00
purgatory
sysdev powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
tools
xmon powerpc/xmon: Fix tmpstr length check in scanhex 2024-08-27 17:10:55 +10:00
Kbuild
Kconfig powerpc: Fix stack protector Kconfig test for clang 2024-12-09 10:41:10 +01:00
Kconfig.debug powerpc/64s: Remove the "fast endian switch" syscall 2024-09-05 22:30:05 +10:00
Makefile powerpc: Adjust adding stack protector flags to KBUILD_CLAGS for clang 2024-12-09 10:41:10 +01:00
Makefile.postlink