• G
    ARM: alignment: Mark expected switch fall-throughs · e7c0c9f6
    Gustavo A. R. Silva 提交于
    Mark switch cases where we are expecting to fall through.
    
    This patch fixes the following warnings:
    
    arch/arm/mm/alignment.c: In function 'thumb2arm':
    arch/arm/mm/alignment.c:688:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if ((tinstr & (3 << 9)) == 0x0400) {
          ^
    arch/arm/mm/alignment.c:700:2: note: here
      default:
      ^~~~~~~
    arch/arm/mm/alignment.c: In function 'do_alignment_t32_to_handler':
    arch/arm/mm/alignment.c:753:15: warning: this statement may fall through [-Wimplicit-fallthrough=]
       poffset->un = (tinst2 & 0xff) << 2;
       ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    arch/arm/mm/alignment.c:754:2: note: here
      case 0xe940:
      ^~~~
    Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
    Reviewed-by: NKees Cook <keescook@chromium.org>
    Signed-off-by: NGustavo A. R. Silva <gustavo@embeddedor.com>
    e7c0c9f6
alignment.c 26.4 KB