From: Sergio Paracuellos Date: Mon, 28 Dec 2020 06:47:27 +0000 (+0100) Subject: pinctrl: ralink: rt2880: fix '-Wmissing-prototypes' in init function X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c6d212951b0f7eb3debfe2ec985dd84624eda150;p=linux.git pinctrl: ralink: rt2880: fix '-Wmissing-prototypes' in init function Kernel test robot reported the following warning: 'warning: no previous prototype for 'rt2880_pinmux_init''. This function is the entry point for the platform driver and it is private to this driver. Hence declare it 'static' which is the correct thing to do fixing also this warning. Reported-by: kernel test robot Signed-off-by: Sergio Paracuellos Link: https://lore.kernel.org/r/20201228064727.30098-1-sergio.paracuellos@gmail.com Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/ralink/pinctrl-rt2880.c b/drivers/pinctrl/ralink/pinctrl-rt2880.c index 5a4e150482d52..1f4bca854add5 100644 --- a/drivers/pinctrl/ralink/pinctrl-rt2880.c +++ b/drivers/pinctrl/ralink/pinctrl-rt2880.c @@ -361,7 +361,7 @@ static struct platform_driver rt2880_pinmux_driver = { }, }; -int __init rt2880_pinmux_init(void) +static int __init rt2880_pinmux_init(void) { return platform_driver_register(&rt2880_pinmux_driver); }