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@infradead.org wrote:
From: Randy Dunlap rdunlap@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@infradead.org
Reviewed-by: Geert Uytterhoeven geert@linux-m68k.org
Patch queued for 4.19, thanks.
Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics