Revision 1a8248c74c81a15a32dc3344fb5c622e19072791 authored by Anders Roxell on 26 July 2019, 11:28:31 UTC, committed by Marc Zyngier on 26 July 2019, 14:37:11 UTC
When fall-through warnings was enabled by default the following warnings
was starting to show up:

../virt/kvm/arm/hyp/vgic-v3-sr.c: In function ‘__vgic_v3_save_aprs’:
../virt/kvm/arm/hyp/vgic-v3-sr.c:351:24: warning: this statement may fall
 through [-Wimplicit-fallthrough=]
   cpu_if->vgic_ap0r[2] = __vgic_v3_read_ap0rn(2);
   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../virt/kvm/arm/hyp/vgic-v3-sr.c:352:2: note: here
  case 6:
  ^~~~
../virt/kvm/arm/hyp/vgic-v3-sr.c:353:24: warning: this statement may fall
 through [-Wimplicit-fallthrough=]
   cpu_if->vgic_ap0r[1] = __vgic_v3_read_ap0rn(1);
   ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
../virt/kvm/arm/hyp/vgic-v3-sr.c:354:2: note: here
  default:
  ^~~~~~~

Rework so that the compiler doesn't warn about fall-through.

Fixes: d93512ef0f0e ("Makefile: Globally enable fall-through warning")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 3d584a3
History
File Mode Size
Kconfig -rw-r--r-- 409 bytes
Makefile -rw-r--r-- 143 bytes
xdp_umem.c -rw-r--r-- 8.3 KB
xdp_umem.h -rw-r--r-- 687 bytes
xsk.c -rw-r--r-- 19.2 KB
xsk.h -rw-r--r-- 225 bytes
xsk_diag.c -rw-r--r-- 4.5 KB
xsk_queue.c -rw-r--r-- 2.4 KB
xsk_queue.h -rw-r--r-- 8.2 KB

back to top