summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@nxp.com>2017-09-22 22:41:53 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commitcf68056bd67f7ada0fe08a0df6d7d2a57846a559 (patch)
tree4618efc5776b3ef8ff357c32aa2d4df87ebd1201 /drivers/video
parent01e2b8949f92ae1f4a6a44154bdb446f52b6d933 (diff)
MLK-16536-11 video: fbdev: dcss: add '__maybe_unused' to 'dtg_irq_mask()'
The function 'dtg_irq_mask()' is not used at this moment which caused gcc compiler generate the build warning: "‘dtg_irq_mask’ defined but not used [-Wunused-function]" So add attribute '__maybe_unused' to 'dtg_irq_mask()' functon definition to avoid this build warning. Signed-off-by: Fancy Fang <chen.fang@nxp.com> Reviewed-by: Robby Cai <robby.cai@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/mxc/imx_dcss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/mxc/imx_dcss.c b/drivers/video/fbdev/mxc/imx_dcss.c
index 36b4d2c0e946..7add7bc4b6b9 100644
--- a/drivers/video/fbdev/mxc/imx_dcss.c
+++ b/drivers/video/fbdev/mxc/imx_dcss.c
@@ -2181,8 +2181,8 @@ static void ctxld_irq_unmask(uint32_t irq_en, struct dcss_info *info)
writel(irq_en, info->base + chans->ctxld_addr + CTXLD_CTRL_STATUS_SET);
}
-static void dtg_irq_mask(unsigned long hwirq,
- struct dcss_info *info)
+static void __maybe_unused dtg_irq_mask(unsigned long hwirq,
+ struct dcss_info *info)
{
unsigned long irq_mask = 0;
struct dcss_channels *chans = &info->chans;