[openwrt/openwrt] generic: net: phy: psb6970: fix missing-prototypes warnings
LEDE Commits
lede-commits at lists.infradead.org
Wed Jun 18 11:24:55 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/8e1d58a596e22d2e148dcd351e70ad28723c01ae
commit 8e1d58a596e22d2e148dcd351e70ad28723c01ae
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Thu May 8 21:20:22 2025 +0800
generic: net: phy: psb6970: fix missing-prototypes warnings
Fix the following build warnings on 6.12 kernel:
drivers/net/phy/psb6970.c:426:12: error: no previous prototype for 'psb6970_init' [-Werror=missing-prototypes]
426 | int __init psb6970_init(void)
| ^~~~~~~~~~~~
drivers/net/phy/psb6970.c:434:13: error: no previous prototype for 'psb6970_exit' [-Werror=missing-prototypes]
434 | void __exit psb6970_exit(void)
| ^~~~~~~~~~~~
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19174
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/generic/files/drivers/net/phy/psb6970.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/generic/files/drivers/net/phy/psb6970.c b/target/linux/generic/files/drivers/net/phy/psb6970.c
index 2af32df172..e8b1b06f63 100644
--- a/target/linux/generic/files/drivers/net/phy/psb6970.c
+++ b/target/linux/generic/files/drivers/net/phy/psb6970.c
@@ -423,7 +423,7 @@ static struct phy_driver psb6970_driver = {
.read_status = &psb6970_read_status,
};
-int __init psb6970_init(void)
+static int __init psb6970_init(void)
{
phy_register_fixup_for_id(PHY_ANY_ID, psb6970_fixup);
return phy_driver_register(&psb6970_driver, THIS_MODULE);
@@ -431,7 +431,7 @@ int __init psb6970_init(void)
module_init(psb6970_init);
-void __exit psb6970_exit(void)
+static void __exit psb6970_exit(void)
{
phy_driver_unregister(&psb6970_driver);
}
More information about the lede-commits
mailing list