linux/drivers/i3c/master
Nathan Chancellor e8d2d287e2 i3c: master: svc: Fix implicit fallthrough in svc_i3c_master_ibi_work()
Clang warns (or errors with CONFIG_WERROR=y):

  drivers/i3c/master/svc-i3c-master.c:596:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
    596 |         default:
        |         ^
  drivers/i3c/master/svc-i3c-master.c:596:2: note: insert 'break;' to avoid fall-through
    596 |         default:
        |         ^
        |         break;
  1 error generated.

Clang is a little more pedantic than GCC, which does not warn when
falling through to a case that is just break or return. Clang's version
is more in line with the kernel's own stance in deprecated.rst, which
states that all switch/case blocks must end in either break,
fallthrough, continue, goto, or return. Add the missing break to silence
the warning.

Fixes: 0430bf9bc1 ("i3c: master: svc: Fix missing STOP for master request")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20250319-i3c-fix-clang-fallthrough-v1-1-d8e02be1ef5c@kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2025-03-20 23:02:30 +01:00
..
mipi-i3c-hci i3c: mipi-i3c-hci: Use I2C DMA-safe api 2025-02-20 22:54:28 +01:00
Kconfig i3c: mipi-i3c-hci: Add support for MIPI I3C HCI on PCI bus 2025-01-12 23:54:39 +01:00
Makefile i3c: ast2600: Add AST2600 platform-specific driver 2023-04-28 08:19:01 +02:00
ast2600-i3c-master.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
dw-i3c-master.c i3c: Remove the const qualifier from i2c_msg pointer in i2c_xfers API 2025-02-20 22:54:28 +01:00
dw-i3c-master.h i3c: dw: Add quirk to address OD/PP timing issue on AMD platform 2024-11-18 14:27:29 +01:00
i3c-master-cdns.c i3c: Remove the const qualifier from i2c_msg pointer in i2c_xfers API 2025-02-20 22:54:28 +01:00
svc-i3c-master.c i3c: master: svc: Fix implicit fallthrough in svc_i3c_master_ibi_work() 2025-03-20 23:02:30 +01:00