# \[PATCH 3.10 52/53\] drivers/video/fbdev/fb-puv3.c: Add header files for function unifb\_mmap

- From: Greg Kroah-Hartman \<gregkh@linuxfoundation.org\>
- Date: 2014-07-08 00:00:33 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2014/07/4288832
- Thread: https://ratatoskr.run/stable/2014/07/4288838/t.md

```text
3.10-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Zhichuang SUN <redacted>

commit fbc6c4a13bbfb420eedfdb26a0a859f9c07e8a7b upstream.

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 <redacted>
Cc: Jean-Christophe Plagniol-Villard <redacted>
Cc: Tomi Valkeinen <redacted>
Cc: Jingoo Han <redacted>
Cc: Daniel Vetter <redacted>
Cc: Joe Perches <joe@perches.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: <redacted>
Acked-by: Xuetao Guan <redacted>
Signed-off-by: Tomi Valkeinen <redacted>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 drivers/video/fb-puv3.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/video/fb-puv3.c
+++ b/drivers/video/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. */


```
