Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

greybus: Use fallthrough pseudo-keyword

Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1].

[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200727183258.GA28571@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gustavo A. R. Silva and committed by
Greg Kroah-Hartman
37b8b73f 2f79d3d1

+2 -2
+1 -1
drivers/greybus/es2.c
··· 759 759 case -EOVERFLOW: 760 760 dev_err(dev, "%s: overflow actual length is %d\n", 761 761 __func__, urb->actual_length); 762 - /* fall through */ 762 + fallthrough; 763 763 case -ECONNRESET: 764 764 case -ENOENT: 765 765 case -ESHUTDOWN:
+1 -1
drivers/greybus/interface.c
··· 1233 1233 case GB_INTERFACE_TYPE_GREYBUS: 1234 1234 dev_info(&intf->dev, "GMP VID=0x%08x, PID=0x%08x\n", 1235 1235 intf->vendor_id, intf->product_id); 1236 - /* fall-through */ 1236 + fallthrough; 1237 1237 case GB_INTERFACE_TYPE_UNIPRO: 1238 1238 dev_info(&intf->dev, "DDBL1 Manufacturer=0x%08x, Product=0x%08x\n", 1239 1239 intf->ddbl1_manufacturer_id,