[PATCH] fb: amifb: fix build warnings when not builtin

Bartlomiej Zolnierkiewicz b.zolnierkie at samsung.com
Tue Jul 31 10:50:26 UTC 2018


On Friday, July 27, 2018 09:16:42 AM Geert Uytterhoeven wrote:
> Hi Randy,
> 
> On Fri, Jul 27, 2018 at 2:00 AM Randy Dunlap <rdunlap at infradead.org> wrote:
> > From: Randy Dunlap <rdunlap at infradead.org>
> >
> > Fix build warning when built as a loadable module.
> > amifb_setup() and amifb_setup_mcap() are only needed when the driver
> > is builtin.
> > This matches how the functions are called (using #ifndef MODULE).
> >
> > ../drivers/video/fbdev/amifb.c:2344:19: warning: 'amifb_setup' defined but not used [-Wunused-function]
> >  static int __init amifb_setup(char *options)
> >
> > ../drivers/video/fbdev/amifb.c:2307:20: warning: 'amifb_setup_mcap' defined but not used [-Wunused-function]
> >  static void __init amifb_setup_mcap(char *spec)
> 
> Thanks for your patch!
> 
> > Signed-off-by: Randy Dunlap <rdunlap at infradead.org>
> 
> Reviewed-by: Geert Uytterhoeven <geert at linux-m68k.org>

Patch queued for 4.19, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics



More information about the dri-devel mailing list