generic: fix kernel warning no previous prototype for ...
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 11 Apr 2025 09:45:13 +0000 (11:45 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 11 Apr 2025 18:34:24 +0000 (20:34 +0200)
commit473cfb4ff532210cfdd564b56f48aecf8b610e69
tree050b797b5a827d0371e8c61975c18e62a2ed1155
parent0b5650f76783b215a6bfa22bde45973474a0d04f
generic: fix kernel warning no previous prototype for ...

It seems new kernel version introduced -Wmissing-prototypes. This new
warning reported drivers that define non static function that are used
statically in the driver.

Fix this by declaring making those function actually static if not
defined in any header and not used outside of the single driver.

Co-authored-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/18455
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/generic/files/drivers/net/phy/ar8327.c
target/linux/generic/files/drivers/net/phy/rtl8366_smi.c
target/linux/generic/files/drivers/net/phy/swconfig.c