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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 2.5 KB |
Makefile | -rw-r--r-- | 440 bytes |
xfrm_algo.c | -rw-r--r-- | 14.0 KB |
xfrm_device.c | -rw-r--r-- | 8.8 KB |
xfrm_hash.c | -rw-r--r-- | 803 bytes |
xfrm_hash.h | -rw-r--r-- | 4.4 KB |
xfrm_inout.h | -rw-r--r-- | 889 bytes |
xfrm_input.c | -rw-r--r-- | 18.3 KB |
xfrm_interface.c | -rw-r--r-- | 20.1 KB |
xfrm_ipcomp.c | -rw-r--r-- | 7.4 KB |
xfrm_output.c | -rw-r--r-- | 15.5 KB |
xfrm_policy.c | -rw-r--r-- | 105.7 KB |
xfrm_proc.c | -rw-r--r-- | 2.8 KB |
xfrm_replay.c | -rw-r--r-- | 17.4 KB |
xfrm_state.c | -rw-r--r-- | 64.1 KB |
xfrm_sysctl.c | -rw-r--r-- | 1.9 KB |
xfrm_user.c | -rw-r--r-- | 78.2 KB |
Computing file changes ...