drivers/video/fbdev/fb-puv3.c: Add header files for function unifb_mmap
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'
--- drivers/video/fbdev/fb-puv3.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/fbdev/fb-puv3.c +2 -0
@@ -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
Thanks.
Quoted 43 lines · ----- [email protected] 写道:
From: Zhichuang SUN <[email protected]>
Function
unifb_mmapcalls functions which are defined inlinux/mm.handasm/pgtable.hThe related error (for unicore32 with
unicore32_defconfig):
CCdrivers/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'Signed-off-by Zhichuang Sun <[email protected]>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@@ -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
Quoted 5 lines · On 21/05/14 09:13, [email protected] wrote:
From: Zhichuang SUN <[email protected]>
Function
unifb_mmapcalls functions which are defined inlinux/mm.handasm/pgtable.h
Quoted 8 lines
The related error (for unicore32 with
unicore32_defconfig):
CCdrivers/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