• Randy Dunlap's avatar
    ARC: kgdb: add 'fallthrough' to prevent a warning · 8e97bf39
    Randy Dunlap authored
    Use the 'fallthrough' macro to document that this switch case
    does indeed fall through to the next case.
    
    ../arch/arc/kernel/kgdb.c: In function 'kgdb_arch_handle_exception':
    ../arch/arc/kernel/kgdb.c:141:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
      141 |   if (kgdb_hex2long(&ptr, &addr))
          |      ^
    ../arch/arc/kernel/kgdb.c:144:2: note: here
      144 |  case 'D':
          |  ^~~~
    
    Cc: linux-snps-arc@lists.infradead.org
    Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    8e97bf39
kgdb.c 4.96 KB