From: H Hartley Sweeten Date: Thu, 3 May 2012 00:23:40 +0000 (-0700) Subject: video: fb_defio.c: local functions should not be exposed globally X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=43b1aee0d9b7faa04532a9dc3c161a3bb272d15f;p=linux-beck.git video: fb_defio.c: local functions should not be exposed globally Functions not referenced outside of a source file should be marked static to prevent them from being exposed globally. Quiets the sparse warning: warning: symbol 'fb_deferred_io_page' was not declared. Should it be static? Signed-off-by: H Hartley Sweeten Cc: Jaya Kumar Signed-off-by: Florian Tobias Schandinat --- diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c index 070f26f0bf99..1ddeb11659d4 100644 --- a/drivers/video/fb_defio.c +++ b/drivers/video/fb_defio.c @@ -23,7 +23,7 @@ #include #include -struct page *fb_deferred_io_page(struct fb_info *info, unsigned long offs) +static struct page *fb_deferred_io_page(struct fb_info *info, unsigned long offs) { void *screen_base = (void __force *) info->screen_base; struct page *page;