Patchwork [v4,12/14] mtd: nand: pxa3xx: Add __maybe_unused keyword to enable_int()

mail settings
Submitter Ezequiel Garcia
Date Aug. 12, 2013, 5:14 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/266584/
State Superseded
Headers show


Ezequiel Garcia - Aug. 12, 2013, 5:14 p.m.
Now that we have added ARCH_HAS_DMA conditional the function
enable_int() may be unused. Declare it as __maybe_unused,
in order to remove the following warning, when the function is not used:

drivers/mtd/nand//pxa3xx_nand.c:343:24: warning: 'enable_int' defined
but not used [-Wunused-function]

Signed-off-by: Ezequiel Garcia <>
Tested-by: Daniel Mack <>
 drivers/mtd/nand/pxa3xx_nand.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index c8f7d87..2b3253d 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -348,7 +348,8 @@  static void pxa3xx_nand_stop(struct pxa3xx_nand_info *info)
 	nand_writel(info, NDSR, NDSR_MASK);
-static void enable_int(struct pxa3xx_nand_info *info, uint32_t int_mask)
+static void __maybe_unused
+enable_int(struct pxa3xx_nand_info *info, uint32_t int_mask)
 	uint32_t ndcr;