linux-stable/drivers/parport
Gustavo A. R. Silva b0a69f05b9 parport: ieee1284: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

This patch fixes the following warning:

drivers/parport/ieee1284.c: In function ‘parport_read’:
drivers/parport/ieee1284.c:722:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
   if (parport_negotiate (port, IEEE1284_MODE_NIBBLE)) {
      ^
drivers/parport/ieee1284.c:726:2: note: here
  case IEEE1284_MODE_NIBBLE:
  ^~~~

Warning level 3 was used: -Wimplicit-fallthrough=3

Notice that, in this particular case, the code comment is 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: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-25 19:41:47 +02:00
..
BUGS-parport
daisy.c Revert "parport: daisy: use new parport device model" 2019-03-25 14:49:00 -07:00
ieee1284.c parport: ieee1284: mark expected switch fall-through 2019-04-25 19:41:47 +02:00
ieee1284_ops.c
Kconfig docs: Fix some broken references 2018-06-15 18:10:01 -03:00
Makefile
multiface.h
parport_amiga.c
parport_atari.c
parport_ax88796.c
parport_cs.c parport_cs: Fix memory leak in parport_config 2019-03-28 01:35:11 +09:00
parport_gsc.c parisc/parport_gsc: Use NULL to avoid sparse warning 2018-03-27 18:52:21 +02:00
parport_gsc.h
parport_ip32.c
parport_mfc3.c
parport_pc.c parport_pc: fix find_superio io compare code, should use equal test. 2019-02-11 09:39:02 +01:00
parport_serial.c parport: parport_serial: Add WCH CH382L PCIe single parallel port support 2018-07-07 17:35:10 +02:00
parport_sunbpp.c parport: sunbpp: fix error return code 2018-07-15 14:13:00 +02:00
probe.c Revert "parport: daisy: use new parport device model" 2019-03-25 14:49:00 -07:00
procfs.c
share.c Revert "parport: daisy: use new parport device model" 2019-03-25 14:49:00 -07:00
TODO-parport