media: omap3isp: mark isp_isr_dbg as __maybe_unused

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>
This commit is contained in:
Mauro Carvalho Chehab 2021-11-22 09:08:47 +00:00
Родитель 5f73dcec40
Коммит b61010bc5d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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",