Message ID | 1400652811-5206-1-git-send-email-sunzc522@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 21/05/14 09:13, sunzc522@gmail.com wrote: > From: Zhichuang SUN <sunzc522@gmail.com> > > 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' > Thanks, queued for 3.16. Tomi
diff --git a/drivers/video/fbdev/fb-puv3.c b/drivers/video/fbdev/fb-puv3.c index 6db9ebd..88fa2e7 100644 --- a/drivers/video/fbdev/fb-puv3.c +++ b/drivers/video/fbdev/fb-puv3.c @@ -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. */