OpenCloudOS-Kernel/drivers/misc/mic/scif
Gustavo A. R. Silva b304da7025 misc: mic/scif: 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/misc/mic/scif/scif_rma.c: In function ‘scif_unregister_window’:
drivers/misc/mic/scif/scif_rma.c:665:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
   send_msg = true;
   ~~~~~~~~~^~~~~~
drivers/misc/mic/scif/scif_rma.c:668:2: note: here
  case OP_IN_PROGRESS:
  ^~~~

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-27 16:00:20 +01:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
scif_api.c misc: mic: SCIF Fix scif_get_new_port() error handling 2018-08-05 16:29:11 +02:00
scif_debugfs.c misc: remove GENWQE_DEBUGFS_RO() 2018-12-06 15:42:18 +01:00
scif_dma.c mm/mmu_notifier: use structure for invalidate_range_start/end callback 2018-12-28 12:11:50 -08:00
scif_epd.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_epd.h the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
scif_fd.c the rest of drivers/*: annotate ->poll() instances 2017-11-28 11:06:58 -05:00
scif_fence.c misc: mic: fix a DMA pool free failure 2018-12-19 10:26:31 +01:00
scif_main.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_main.h sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
scif_map.h mic: Rename ioremap pointer to remap 2019-02-26 12:54:55 +01:00
scif_mmap.c misc: mic: scif: use vma_pages(). 2016-08-30 14:45:50 +02:00
scif_nm.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_nodeqp.c misc: mic: fix memory leak 2015-10-17 21:42:29 -07:00
scif_nodeqp.h misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_peer_bus.c misc: mic: SCIF RMA nodeqp and minor miscellaneous changes 2015-10-04 12:54:54 +01:00
scif_peer_bus.h misc: mic: Add support for kernel mode SCIF clients 2015-10-04 12:46:06 +01:00
scif_ports.c misc: mic: SCIF open close bind and listen APIs 2015-05-24 12:13:36 -07:00
scif_rb.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
scif_rb.h
scif_rma.c misc: mic/scif: mark expected switch fall-through 2019-02-27 16:00:20 +01:00
scif_rma.h IOMMU Updates for Linux v4.21 2019-01-01 15:55:29 -08:00
scif_rma_list.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
scif_rma_list.h misc: mic: SCIF RMA list operations 2015-10-04 12:54:54 +01:00