Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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'

Signed-off-by: Zhichuang Sun <sunzc522@gmail.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Joe Perches <joe@perches.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-fbdev@vger.kernel.org
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>

authored by

Zhichuang SUN and committed by
Tomi Valkeinen
fbc6c4a1 0c641bff

+2
+2
drivers/video/fbdev/fb-puv3.c
··· 18 18 #include <linux/fb.h> 19 19 #include <linux/init.h> 20 20 #include <linux/console.h> 21 + #include <linux/mm.h> 21 22 22 23 #include <asm/sizes.h> 24 + #include <asm/pgtable.h> 23 25 #include <mach/hardware.h> 24 26 25 27 /* Platform_data reserved for unifb registers. */