linux/drivers/net/arcnet
Gustavo A. R. Silva 26027f4243 arcnet: arc-rimi: Mark expected switch fall-throughs
Mark switch cases where we are expecting to fall through.

This patch fixes the following warnings (Building: powerpc allyesconfig):

drivers/net/arcnet/arc-rimi.c: In function 'arcrimi_setup':
include/linux/printk.h:304:2: warning: this statement may fall through [-Wimplicit-fallthrough=]
  printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/arcnet/arc-rimi.c:365:3: note: in expansion of macro 'pr_err'
   pr_err("Too many arguments\n");
   ^~~~~~
drivers/net/arcnet/arc-rimi.c:366:2: note: here
  case 3:  /* Node ID */
  ^~~~
drivers/net/arcnet/arc-rimi.c:367:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
   node = ints[3];
   ~~~~~^~~~~~~~~
drivers/net/arcnet/arc-rimi.c:368:2: note: here
  case 2:  /* IRQ */
  ^~~~
drivers/net/arcnet/arc-rimi.c:369:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
   irq = ints[2];
   ~~~~^~~~~~~~~
drivers/net/arcnet/arc-rimi.c:370:2: note: here
  case 1:  /* IO address */
  ^~~~

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-29 09:38:34 -07:00
..
arc-rawmode.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
arc-rimi.c arcnet: arc-rimi: Mark expected switch fall-throughs 2019-07-29 09:38:34 -07:00
arcdevice.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
arcnet.c drivers/net: arcnet: Convert timers to use timer_setup() 2017-10-27 12:09:16 +09:00
capmode.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-06-30 12:43:08 -04:00
com90io.c arcnet: com90io: Mark expected switch fall-throughs 2019-07-29 09:38:34 -07:00
com90xx.c arcnet: com90xx: Mark expected switch fall-throughs 2019-07-29 09:38:34 -07:00
com9026.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
com20020_cs.c arcnet: com20020: Use arcnet_<I/O> routines 2015-09-23 08:44:26 +02:00
com20020-isa.c mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
com20020-pci.c arcnet: com20020-pci: constify attribute_group structures. 2017-07-18 12:04:56 -07:00
com20020.c arcnet: com20020: remove needless base_addr assignment 2017-06-29 15:18:36 -04:00
com20020.h arcnet: com20020-pci: add led trigger support 2015-10-26 09:10:56 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rfc1051.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
rfc1201.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00