[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211116092204.4116587-1-arnd@kernel.org>
Date: Tue, 16 Nov 2021 10:21:54 +0100
From: Arnd Bergmann <arnd@...nel.org>
To: linux-fbdev@...r.kernel.org
Cc: Arnd Bergmann <arnd@...db.de>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
linux-omap@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev
Subject: [PATCH] omapfb: add one more "fallthrough" statement
From: Arnd Bergmann <arnd@...db.de>
clang warns about one missing fallthrough that gcc ignores:
drivers/video/fbdev/omap/omapfb_main.c:1558:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
Add it here as well.
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/video/fbdev/omap/omapfb_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c
index 3d090d2d9ed9..a6a8404d1462 100644
--- a/drivers/video/fbdev/omap/omapfb_main.c
+++ b/drivers/video/fbdev/omap/omapfb_main.c
@@ -1555,6 +1555,7 @@ static void omapfb_free_resources(struct omapfb_device *fbdev, int state)
case 1:
dev_set_drvdata(fbdev->dev, NULL);
kfree(fbdev);
+ fallthrough;
case 0:
/* nothing to free */
break;
--
2.29.2
Powered by blists - more mailing lists