WSL2-Linux-Kernel/drivers/virt/vboxguest
Gustavo A. R. Silva 9d49fff91b virt: vbox: 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/virt/vboxguest/vboxguest_core.c: In function ‘vbg_core_ioctl’:
drivers/virt/vboxguest/vboxguest_core.c:1486:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
   f32bit = true;
   ~~~~~~~^~~~~~
drivers/virt/vboxguest/vboxguest_core.c:1489:2: note: here
  case VBG_IOCTL_HGCM_CALL(0):
  ^~~~

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>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-27 16:00:20 +01:00
..
Kconfig
Makefile
vboxguest_core.c virt: vbox: Mark expected switch fall-through 2019-02-27 16:00:20 +01:00
vboxguest_core.h virt: vbox: Add vbg_req_free() helper function 2018-04-23 13:41:55 +02:00
vboxguest_linux.c virt: vbox: Only copy_from_user the request-header once 2018-05-14 16:31:59 +02:00
vboxguest_utils.c virt: vbox: Use __get_free_pages instead of kmalloc for DMA32 memory 2018-04-23 13:41:55 +02:00
vboxguest_version.h
vmmdev.h