mirror of https://github.com/torvalds/linux.git
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:
|
||
|---|---|---|
| .. | ||
| mipi-i3c-hci | ||
| Kconfig | ||
| Makefile | ||
| ast2600-i3c-master.c | ||
| dw-i3c-master.c | ||
| dw-i3c-master.h | ||
| i3c-master-cdns.c | ||
| svc-i3c-master.c | ||