]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: fix override-init warnings in W=1 builds
authorSebastian Ott <sebott@redhat.com>
Tue, 23 Jul 2024 10:12:02 +0000 (12:12 +0200)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 2 Aug 2024 18:58:03 +0000 (18:58 +0000)
commit963a08e586bd45fd55f4c1752e98029ce83fc091
treed846baf0364df3ea8bde78b09ddc00c47601e6f6
parent32b9a52f88a5713bf8a02dae66f2ad69705de69f
KVM: arm64: fix override-init warnings in W=1 builds

Add -Wno-override-init to the build flags for sys_regs.c,
handle_exit.c, and switch.c to fix warnings like the following:

arch/arm64/kvm/hyp/vhe/switch.c:271:43: warning: initialized field overwritten [-Woverride-init]
  271 |         [ESR_ELx_EC_CP15_32]            = kvm_hyp_handle_cp15_32,
      |

Signed-off-by: Sebastian Ott <sebott@redhat.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240723101204.7356-2-sebott@redhat.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/Makefile
arch/arm64/kvm/hyp/nvhe/Makefile
arch/arm64/kvm/hyp/vhe/Makefile