From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Tobias Schandinat Date: Thu, 10 May 2012 00:11:52 +0000 Subject: Re: [PATCH] video: fb_defio.c: local functions should not be exposed globally Message-Id: <4FAB07C8.9080409@gmx.de> List-Id: References: <201205021723.40801.hartleys@visionengravers.com> In-Reply-To: <201205021723.40801.hartleys@visionengravers.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: H Hartley Sweeten Cc: Linux Kernel , linux-fbdev@vger.kernel.org On 05/03/2012 12:23 AM, H Hartley Sweeten wrote: > 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 > Cc: Florian Tobias Schandinat Applied. Thanks, Florian Tobias Schandinat > > --- > > diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c > index 070f26f..1ddeb11 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; >