base-files: define yes/no as valid boolean options
[openwrt/openwrt.git] / target / linux / mvebu / patches-3.10 / 0124-mtd-nand-pxa3xx-Add-__maybe_unused-keyword-to-enable.patch
1 From d6d4e28e52f3cd70f60d03405181994a2763532b Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Mon, 12 Aug 2013 14:14:57 -0300
4 Subject: [PATCH 124/203] mtd: nand: pxa3xx: Add __maybe_unused keyword to
5 enable_int()
6
7 Now that we have added ARCH_HAS_DMA conditional the function
8 enable_int() may be unused. Declare it as __maybe_unused,
9 in order to remove the following warning, when the function is not used:
10
11 drivers/mtd/nand//pxa3xx_nand.c:343:24: warning: 'enable_int' defined
12 but not used [-Wunused-function]
13
14 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
15 Tested-by: Daniel Mack <zonque@gmail.com>
16 Signed-off-by: Brian Norris <computersforpeace@gmail.com>
17 Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
18 ---
19 drivers/mtd/nand/pxa3xx_nand.c | 3 ++-
20 1 file changed, 2 insertions(+), 1 deletion(-)
21
22 --- a/drivers/mtd/nand/pxa3xx_nand.c
23 +++ b/drivers/mtd/nand/pxa3xx_nand.c
24 @@ -348,7 +348,8 @@ static void pxa3xx_nand_stop(struct pxa3
25 nand_writel(info, NDSR, NDSR_MASK);
26 }
27
28 -static void enable_int(struct pxa3xx_nand_info *info, uint32_t int_mask)
29 +static void __maybe_unused
30 +enable_int(struct pxa3xx_nand_info *info, uint32_t int_mask)
31 {
32 uint32_t ndcr;
33