Skip to contentSkip to conversation

ARM i.MX23/28: platform-mxsfb: Add missing include of linux/dma-mapping.h

PATCH In review Axel Lin 3 participants 3 messages Jun 30, 2011 – Jul 1, 2011

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ARM i.MX23/28: platform-mxsfb: Add missing include of linux/dma-mapping.h

Fix below build error:
CC arch/arm/mach-mxs/devices/platform-mxsfb.o
arch/arm/mach-mxs/devices/platform-mxsfb.c: In function 'mx23_add_mxsfb':
arch/arm/mach-mxs/devices/platform-mxsfb.c:27: error: implicit declaration of function 'DMA_BIT_MASK' make[2]: *** [arch/arm/mach-mxs/devices/platform-mxsfb.o] Error 1
make[1]: *** [arch/arm/mach-mxs/devices] Error 2
make: *** [arch/arm/mach-mxs] Error 2

---
 arch/arm/mach-mxs/devices/platform-mxsfb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-mxs/devices/platform-mxsfb.c +1 -0
index bf72c9b..5a75b71 100644
@@ -5,6 +5,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <asm/sizes.h>
 #include <mach/mx23.h>
 #include <mach/mx28.h>
Signature · 1 line
1.7.4.1
Tested-by on v1 1/1
#1 lore raw
Quoted 7 lines · Axel Lin

Fix below build error:
CC arch/arm/mach-mxs/devices/platform-mxsfb.o
arch/arm/mach-mxs/devices/platform-mxsfb.c: In function 'mx23_add_mxsfb':
arch/arm/mach-mxs/devices/platform-mxsfb.c:27: error: implicit declaration of function 'DMA_BIT_MASK' make[2]: *** [arch/arm/mach-mxs/devices/platform-mxsfb.o] Error 1
make[1]: *** [arch/arm/mach-mxs/devices] Error 2
make: *** [arch/arm/mach-mxs] Error 2

I bisected the problem and it occurs since

b7f080c (net: remove mm.h inclusion from netdevice.h)

which is currently in next (pulled in via net-next-2.6).

Best regards
Uwe

Quoted 28 lines
---
 arch/arm/mach-mxs/devices/platform-mxsfb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-mxs/devices/platform-mxsfb.c +1 -0
index bf72c9b..5a75b71 100644
@@ -5,6 +5,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <asm/sizes.h>
 #include <mach/mx23.h>
 #include <mach/mx28.h>
Signature · 9 lines
1.7.4.1




_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
maintainer
#2 lore raw
In reply to Axel Lin
Quoted 9 lines · Axel Lin

Fix below build error:
CC arch/arm/mach-mxs/devices/platform-mxsfb.o
arch/arm/mach-mxs/devices/platform-mxsfb.c: In function 'mx23_add_mxsfb':
arch/arm/mach-mxs/devices/platform-mxsfb.c:27: error: implicit declaration of function 'DMA_BIT_MASK' make[2]: *** [arch/arm/mach-mxs/devices/platform-mxsfb.o] Error 1
make[1]: *** [arch/arm/mach-mxs/devices] Error 2
make: *** [arch/arm/mach-mxs] Error 2

Applied for next

Sascha

Quoted 22 lines
---
 arch/arm/mach-mxs/devices/platform-mxsfb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-mxs/devices/platform-mxsfb.c +1 -0
index bf72c9b..5a75b71 100644
@@ -5,6 +5,7 @@
  * the terms of the GNU General Public License version 2 as published by the
  * Free Software Foundation.
  */
+#include <linux/dma-mapping.h>
 #include <asm/sizes.h>
 #include <mach/mx23.h>
 #include <mach/mx28.h>
Signature · 1 line
1.7.4.1
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |