Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARC: unwind: Mark expected switch fall-throughs

Mark switch cases where we are expecting to fall through.

This patch fixes the following warnings (Building: haps_hs_defconfig arc):

arch/arc/kernel/unwind.c:827:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
arch/arc/kernel/unwind.c:836:20: warning: this statement may fall through [-Wimplicit-fallthrough=]

Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

authored by

Gustavo A. R. Silva and committed by
Vineet Gupta
e86d94fd ce0eff0d

+2 -2
+2 -2
arch/arc/kernel/unwind.c
··· 826 826 case DW_CFA_def_cfa: 827 827 state->cfa.reg = get_uleb128(&ptr.p8, end); 828 828 unw_debug("cfa_def_cfa: r%lu ", state->cfa.reg); 829 - /*nobreak*/ 829 + /* fall through */ 830 830 case DW_CFA_def_cfa_offset: 831 831 state->cfa.offs = get_uleb128(&ptr.p8, end); 832 832 unw_debug("cfa_def_cfa_offset: 0x%lx ", ··· 834 834 break; 835 835 case DW_CFA_def_cfa_sf: 836 836 state->cfa.reg = get_uleb128(&ptr.p8, end); 837 - /*nobreak */ 837 + /* fall through */ 838 838 case DW_CFA_def_cfa_offset_sf: 839 839 state->cfa.offs = get_sleb128(&ptr.p8, end) 840 840 * state->dataAlign;