• Gustavo A. R. Silva's avatar
    usb: isp1760-hcd: Fix fall-through annotations · ce64cea4
    Gustavo A. R. Silva authored
    In preparation to enabling -Wimplicit-fallthrough, mark switch
    cases where we are expecting to fall through.
    
    This patch fixes the following warning:
    
    drivers/usb/isp1760/isp1760-hcd.c: In function ‘collect_qtds’:
    drivers/usb/isp1760/isp1760-hcd.c:788:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
          mem_reads8(hcd->regs, qtd->payload_addr,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            qtd->data_buffer,
            ~~~~~~~~~~~~~~~~~
            qtd->actual_length);
            ~~~~~~~~~~~~~~~~~~~
    drivers/usb/isp1760/isp1760-hcd.c:792:5: note: here
         case OUT_PID:
         ^~~~
    
    Warning level 3 was used: -Wimplicit-fallthrough=3
    
    Notice that, in this particular case, the code comments are modified
    in accordance with what GCC is expecting to find.
    
    This patch is part of the ongoing efforts to enable
    -Wimplicit-fallthrough.
    Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    ce64cea4
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
isp1760-core.c Loading commit data...
isp1760-core.h Loading commit data...
isp1760-hcd.c Loading commit data...
isp1760-hcd.h Loading commit data...
isp1760-if.c Loading commit data...
isp1760-regs.h Loading commit data...
isp1760-udc.c Loading commit data...
isp1760-udc.h Loading commit data...