OSDN Git Service

media: omap3isp: mark isp_isr_dbg as __maybe_unused
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Nov 2021 09:08:47 +0000 (09:08 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 29 Nov 2021 09:15:04 +0000 (10:15 +0100)
This function is only used for debugging purposes. When DEBUG
is disabled, it becomes unused, causing a clang warning with W=1.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/omap3isp/isp.c

index 6de377c..4c937f3 100644 (file)
@@ -476,7 +476,8 @@ void omap3isp_hist_dma_done(struct isp_device *isp)
        }
 }
 
-static inline void isp_isr_dbg(struct isp_device *isp, u32 irqstatus)
+static inline void __maybe_unused isp_isr_dbg(struct isp_device *isp,
+                                             u32 irqstatus)
 {
        static const char *name[] = {
                "CSIA_IRQ",