Files
linux/arch/powerpc/kernel
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
..
2024-05-08 00:21:30 +10:00
2021-12-09 22:41:21 +11:00
2023-10-01 23:09:02 +11:00
2024-09-05 22:25:36 +10:00
2022-05-05 22:12:44 +10:00
2022-05-08 22:15:40 +10:00
2025-08-15 12:14:03 +02:00
2024-06-28 22:28:47 +10:00
2022-09-26 23:00:14 +10:00
2024-06-28 22:28:48 +10:00
2024-06-28 22:28:48 +10:00
2021-12-09 22:41:21 +11:00
2024-06-28 22:28:47 +10:00
2024-05-08 00:21:30 +10:00
2023-10-10 13:35:55 -06:00
2022-05-08 22:15:40 +10:00
2022-05-08 22:15:40 +10:00
2024-03-03 22:20:29 +11:00
2024-09-08 16:01:10 +02:00
2022-09-26 22:47:37 +10:00
2024-05-08 00:21:30 +10:00
2024-06-28 22:28:48 +10:00
2024-06-28 22:28:47 +10:00
2024-09-01 20:26:13 -07:00
2021-12-09 22:41:21 +11:00