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

2018-07-31 Thread Bartlomiej Zolnierkiewicz
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 wrote: > > From: Randy Dunlap > > > > Fix build warning when built as a loadable module. > > amifb_setup() and amifb_setup_mcap() are only needed when the driver > > is

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

2018-07-27 Thread Geert Uytterhoeven
Hi Randy, On Fri, Jul 27, 2018 at 2:00 AM Randy Dunlap wrote: > From: Randy Dunlap > > 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). > >

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

2018-07-27 Thread Randy Dunlap
From: Randy Dunlap 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