git: 2ad32d3a6868 - main - mccomphy: Guard the definition of mcommphy_yt8531_setup_delay()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 May 2025 19:27:16 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ad32d3a68682a9f0652fba7b1283e87d2a0ca5f
commit 2ad32d3a68682a9f0652fba7b1283e87d2a0ca5f
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-05-06 19:26:31 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-05-06 19:26:57 +0000
mccomphy: Guard the definition of mcommphy_yt8531_setup_delay()
Otherwise I get an unused function warning during amd64 kernel builds.
Fixes: a592b5fd9d9c ("mccomphy: add support for YT8531")
Reviewed by: mhorne
Differential Revision: https://reviews.freebsd.org/D50191
---
sys/dev/mii/mcommphy.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/dev/mii/mcommphy.c b/sys/dev/mii/mcommphy.c
index c03e891d3173..407b29fd9938 100644
--- a/sys/dev/mii/mcommphy.c
+++ b/sys/dev/mii/mcommphy.c
@@ -243,6 +243,7 @@ mcommphy_yt8531_speed_adjustment(struct mii_softc *sc)
PHY_WRITE(sc, EXT_REG_ADDR, oldaddr);
}
+#ifdef FDT
static int
mcommphy_yt8531_setup_delay(struct mii_softc *sc)
{
@@ -285,6 +286,7 @@ mcommphy_yt8531_setup_delay(struct mii_softc *sc)
return (0);
}
+#endif
static int
mcommphy_yt8531_setup(struct mii_softc *sc)