Skip to contentSkip to conversation

drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

PATCH In review [email protected] 3 participants 3 messages May 21, 2014 – May 23, 2014 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap

From: Zhichuang SUN <[email protected]>

Function unifb_mmap calls functions which are defined in linux/mm.h and asm/pgtable.h

The related error (for unicore32 with unicore32_defconfig):
CC drivers/video/fbdev/fb-puv3.o
drivers/video/fbdev/fb-puv3.c: In function 'unifb_mmap':
drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of
function 'vm_iomap_memory'
drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of
function 'pgprot_noncached'

Cc Jean-Christophe Plagniol-Villard <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Jingoo Han <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Joe Perches <[email protected]>
Cc Laurent Pinchart <[email protected]>
---
 drivers/video/fbdev/fb-puv3.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/fbdev/fb-puv3.c +2 -0
index 6db9ebd..88fa2e7 100644
@@ -18,8 +18,10 @@
 #include <linux/fb.h>
 #include <linux/init.h>
 #include <linux/console.h>
+#include <linux/mm.h>
 
 #include <asm/sizes.h>
+#include <asm/pgtable.h>
 #include <mach/hardware.h>
 
 /* Platform_data reserved for unifb registers. */
Signature · 1 line
1.7.0.4
Acked-by Xuetao Guan on v1 1/1
#1 lore raw

Thanks.

Quoted 43 lines · ----- [email protected] 写道:

From: Zhichuang SUN <[email protected]>

Function unifb_mmap calls functions which are defined in linux/mm.h and asm/pgtable.h

The related error (for unicore32 with unicore32_defconfig):
CC drivers/video/fbdev/fb-puv3.o
drivers/video/fbdev/fb-puv3.c: In function 'unifb_mmap':
drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of
function 'vm_iomap_memory'
drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of
function 'pgprot_noncached'

Cc Jean-Christophe Plagniol-Villard <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Jingoo Han <[email protected]>
Cc Daniel Vetter <[email protected]>
Cc Joe Perches <[email protected]>
Cc Laurent Pinchart <[email protected]>
---
 drivers/video/fbdev/fb-puv3.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/fbdev/fb-puv3.c +2 -0
index 6db9ebd..88fa2e7 100644
@@ -18,8 +18,10 @@
 #include <linux/fb.h>
 #include <linux/init.h>
 #include <linux/console.h>
+#include <linux/mm.h>
 
 #include <asm/sizes.h>
+#include <asm/pgtable.h>
 #include <mach/hardware.h>
 
 /* Platform_data reserved for unifb registers. */
Signature · 1 line
1.7.0.4
#2 lore raw
In reply to [email protected]
Quoted 5 lines · On 21/05/14 09:13, [email protected] wrote:

From: Zhichuang SUN <[email protected]>

Function unifb_mmap calls functions which are defined in linux/mm.h and asm/pgtable.h

Quoted 8 lines

The related error (for unicore32 with unicore32_defconfig):
CC drivers/video/fbdev/fb-puv3.o
drivers/video/fbdev/fb-puv3.c: In function 'unifb_mmap':
drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of
function 'vm_iomap_memory'
drivers/video/fbdev/fb-puv3.c:646: error: implicit declaration of
function 'pgprot_noncached'

Thanks, queued for 3.16.

Tomi