[PATCH 1/1] cmd: missing fallthrough macro in do_pci()

Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com --- cmd/pci.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/cmd/pci.c b/cmd/pci.c index 58a74755c8..78b661d15b 100644 --- a/cmd/pci.c +++ b/cmd/pci.c @@ -517,6 +517,7 @@ static int do_pci(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) addr = hextoul(argv[3], NULL); if (argc > 4) value = hextoul(argv[4], NULL); + fallthrough; case 'h': /* header */ case 'b': /* bars */ if (argc < 3)

On Sat, 1 Apr 2023 at 20:43, Heinrich Schuchardt < heinrich.schuchardt@canonical.com> wrote:
Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com
cmd/pci.c | 1 + 1 file changed, 1 insertion(+)
Reviewed-by: Simon Glass sjg@chromium.org

On Sat, Apr 01, 2023 at 09:43:33AM +0200, Heinrich Schuchardt wrote:
Add a missing fallthrough macro to avoid a -Wimplicit-fallthrough warning.
Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com Reviewed-by: Simon Glass sjg@chromium.org
Applied to u-boot/master, thanks!
participants (3)
-
Heinrich Schuchardt
-
Simon Glass
-
Tom Rini