• Gustavo A. R. Silva's avatar
    ARM: alignment: Mark expected switch fall-throughs · e7c0c9f6
    Gustavo A. R. Silva authored
    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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
    Reviewed-by: default avatarKees Cook <keescook@chromium.org>
    Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
    e7c0c9f6
alignment.c 26.4 KB