[PATCH v2 1/4] powerpc/kvm: Fix ifdef to remove build warning

Madhavan Srinivasan maddy at linux.ibm.com
Thu Aug 28 16:33:00 AEST 2025


On Sun, 18 May 2025 10:11:04 +0530, Madhavan Srinivasan wrote:
> 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(){}
> 
> [...]

Applied to powerpc/fixes.

[1/4] powerpc/kvm: Fix ifdef to remove build warning
      https://git.kernel.org/powerpc/c/88688a2c8ac6c8036d983ad8b34ce191c46a10aa
[3/4] powerpc/prom_init: Fix shellcheck warnings
      https://git.kernel.org/powerpc/c/d40ae9033418095642f65f4fd54dc5a7d292ee39
[4/4] powerpc/boot/install.sh: Fix shellcheck warnings
      https://git.kernel.org/powerpc/c/8763d2257f5231cfdfd8a53594647927dbf8bb06

Thanks


More information about the Linuxppc-dev mailing list