OpenCloudOS-Kernel/drivers/usb/isp1760
Gustavo A. R. Silva ce64cea47c usb: isp1760-hcd: Fix fall-through annotations
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: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-01 18:13:52 +02:00
..
Kconfig USB: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
Makefile USB: add SPDX identifiers to all remaining Makefiles 2017-11-07 15:53:48 +01:00
isp1760-core.c usb: isp1760: Replace mdelay with msleep in isp1760_init_core 2018-04-22 15:49:42 +02:00
isp1760-core.h USB: isp1760: Remove redundant license text 2017-11-07 15:45:01 +01:00
isp1760-hcd.c usb: isp1760-hcd: Fix fall-through annotations 2019-05-01 18:13:52 +02:00
isp1760-hcd.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
isp1760-if.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
isp1760-regs.h USB: isp1760: Remove redundant license text 2017-11-07 15:45:01 +01:00
isp1760-udc.c usb: isp1760: Use kasprintf 2018-03-09 09:40:21 -08:00
isp1760-udc.h USB: isp1760: Remove redundant license text 2017-11-07 15:45:01 +01:00