diff options
author | Madhavan Srinivasan <maddy@linux.ibm.com> | 2025-05-18 10:11:04 +0530 |
---|---|---|
committer | Madhavan Srinivasan <maddy@linux.ibm.com> | 2025-08-20 14:03:44 +0530 |
commit | 88688a2c8ac6c8036d983ad8b34ce191c46a10aa (patch) | |
tree | 323f870ba844e283121d549e92a860c68a2e0d41 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | 6a859f1a19d1f8756ffb097f5973dfebbca4811a (diff) |
powerpc/kvm: Fix ifdef to remove build warning
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: cbe487fac7fc0 ("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
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions