Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <lkp@intel.com>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20201228064727.30098-1-sergio.paracuellos@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Sergio Paracuellos and committed by
Linus Walleij
c6d21295 50a71087

+1 -1
+1 -1
drivers/pinctrl/ralink/pinctrl-rt2880.c
··· 361 361 }, 362 362 }; 363 363 364 - int __init rt2880_pinmux_init(void) 364 + static int __init rt2880_pinmux_init(void) 365 365 { 366 366 return platform_driver_register(&rt2880_pinmux_driver); 367 367 }