]> git.itanic.dy.fi Git - linux-stable/commitdiff
fbdev: fbmem: mark get_fb_unmapped_area() static
authorArnd Bergmann <arnd@arndb.de>
Tue, 16 May 2023 20:22:48 +0000 (22:22 +0200)
committerHelge Deller <deller@gmx.de>
Sat, 20 May 2023 05:02:12 +0000 (07:02 +0200)
There is a global function with this name on sparc, but no
global declaration:

drivers/video/fbdev/core/fbmem.c:1469:15: error: no previous prototype for 'get_fb_unmapped_area'

Make the generic definition static to avoid this warning. On
sparc, this is never seen.

Edit by Helge:
Update Kconfig text as suggested by Geert Uytterhoeven.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/Kconfig
drivers/video/fbdev/core/fbmem.c

index 96e91570cdd3294041c79b25edb62df08331538c..0fdf5f46802c7f508e3025ce292bd1c3a620913c 100644 (file)
@@ -124,7 +124,7 @@ config FB_PROVIDE_GET_FB_UNMAPPED_AREA
        depends on FB
        help
          Allow generic frame-buffer to provide get_fb_unmapped_area
-         function.
+         function to provide shareable character device support on nommu.
 
 menuconfig FB_FOREIGN_ENDIAN
        bool "Framebuffer foreign endianness support"
index e808dc86001cc98ca449cdecb63fe891d8579671..28739f1cb5e7a1da84e65b66850984ba4dc4c6be 100644 (file)
@@ -1468,7 +1468,7 @@ __releases(&info->lock)
 }
 
 #if defined(CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA) && !defined(CONFIG_MMU)
-unsigned long get_fb_unmapped_area(struct file *filp,
+static unsigned long get_fb_unmapped_area(struct file *filp,
                                   unsigned long addr, unsigned long len,
                                   unsigned long pgoff, unsigned long flags)
 {