From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartlomiej Zolnierkiewicz Date: Tue, 31 Jul 2018 10:50:26 +0000 Subject: Re: [PATCH] fb: amifb: fix build warnings when not builtin Message-Id: <2959711.91EZXKFJ5b@amdc3058> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Geert Uytterhoeven , Randy Dunlap Cc: Linux Fbdev development list , linux-m68k , DRI Development 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 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 > > Reviewed-by: Geert Uytterhoeven Patch queued for 4.19, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics