• G
    ARM: OMAP: dma: Mark expected switch fall-throughs · 3da6bd94
    Gustavo A. R. Silva 提交于
    Mark switch cases where we are expecting to fall through.
    
    This patch fixes the following warnings:
    
    arch/arm/plat-omap/dma.c: In function 'omap_set_dma_src_burst_mode':
    arch/arm/plat-omap/dma.c:384:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (dma_omap2plus()) {
          ^
    arch/arm/plat-omap/dma.c:393:2: note: here
      case OMAP_DMA_DATA_BURST_16:
      ^~~~
    arch/arm/plat-omap/dma.c:394:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (dma_omap2plus()) {
          ^
    arch/arm/plat-omap/dma.c:402:2: note: here
      default:
      ^~~~~~~
    arch/arm/plat-omap/dma.c: In function 'omap_set_dma_dest_burst_mode':
    arch/arm/plat-omap/dma.c:473:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
       if (dma_omap2plus()) {
          ^
    arch/arm/plat-omap/dma.c:481:2: note: here
      default:
      ^~~~~~~
    
    Notice that, in this particular case, the code comment is
    modified in accordance with what GCC is expecting to find.
    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>
    3da6bd94
dma.c 34.2 KB