aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-15 07:04:01 -0500
committerArnd Bergmann <arnd@arndb.de>2017-07-27 16:57:49 -0400
commit1c1953f351263bdc0857326bde7ff95a43700b6c (patch)
tree5348816bd7389217bfdd0cb71fa36ce8f606cf9b
parent293ea3d0ab9970c7f3d8163793d3407e5a86497a (diff)
ARM: mmp: mark usb_dma_mask as __maybe_unused
This variable may be used by some devices that each have their on Kconfig symbol, or by none of them, and that causes a build warning: arch/arm/mach-mmp/devices.c:241:12: error: 'usb_dma_mask' defined but not used [-Werror=unused-variable] Marking it __maybe_unused avoids the warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--arch/arm/mach-mmp/devices.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-mmp/devices.c b/arch/arm/mach-mmp/devices.c
index 3330ac7cfbef..671c7a09ab3d 100644
--- a/arch/arm/mach-mmp/devices.c
+++ b/arch/arm/mach-mmp/devices.c
@@ -238,7 +238,7 @@ void pxa_usb_phy_deinit(void __iomem *phy_reg)
238#endif 238#endif
239 239
240#if IS_ENABLED(CONFIG_USB_SUPPORT) 240#if IS_ENABLED(CONFIG_USB_SUPPORT)
241static u64 usb_dma_mask = ~(u32)0; 241static u64 __maybe_unused usb_dma_mask = ~(u32)0;
242 242
243#if IS_ENABLED(CONFIG_USB_MV_UDC) 243#if IS_ENABLED(CONFIG_USB_MV_UDC)
244struct resource pxa168_u2o_resources[] = { 244struct resource pxa168_u2o_resources[] = {