Skip to content

Commit 19abb45

Browse files
arndbhdeller
authored andcommitted
fbdev: fbmem: mark get_fb_unmapped_area() static
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>
1 parent 46f5dd7 commit 19abb45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/video/fbdev/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ config FB_PROVIDE_GET_FB_UNMAPPED_AREA
124124
depends on FB
125125
help
126126
Allow generic frame-buffer to provide get_fb_unmapped_area
127-
function.
127+
function to provide shareable character device support on nommu.
128128

129129
menuconfig FB_FOREIGN_ENDIAN
130130
bool "Framebuffer foreign endianness support"

drivers/video/fbdev/core/fbmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ __releases(&info->lock)
14681468
}
14691469

14701470
#if defined(CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA) && !defined(CONFIG_MMU)
1471-
unsigned long get_fb_unmapped_area(struct file *filp,
1471+
static unsigned long get_fb_unmapped_area(struct file *filp,
14721472
unsigned long addr, unsigned long len,
14731473
unsigned long pgoff, unsigned long flags)
14741474
{

0 commit comments

Comments
 (0)