git: c73cd9ca3ff8 - main - if_awg: Add missing awg_poll() prototype
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Apr 2026 06:57:46 UTC
The branch main has been updated by ivy:
URL: https://cgit.FreeBSD.org/src/commit/?id=c73cd9ca3ff875a65b6969b7183eb7fcdb23857c
commit c73cd9ca3ff875a65b6969b7183eb7fcdb23857c
Author: Lexi Winter <ivy@FreeBSD.org>
AuthorDate: 2026-04-27 06:57:13 +0000
Commit: Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2026-04-27 06:57:13 +0000
if_awg: Add missing awg_poll() prototype
The function awg_poll() was missing a prototype, which causes the build
to fail if DEVICE_POLLING is enabled, which it is in the ARMADAXP config.
MFC after: 2 weeks
Reviewed by: tuexen, mmel, adrian
Sponsored by: https://www.patreon.com/bsdivy
Differential Revision: https://reviews.freebsd.org/D56651
---
sys/arm/allwinner/if_awg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/arm/allwinner/if_awg.c b/sys/arm/allwinner/if_awg.c
index d5a6fdb96192..3459779743ba 100644
--- a/sys/arm/allwinner/if_awg.c
+++ b/sys/arm/allwinner/if_awg.c
@@ -226,6 +226,9 @@ static uint32_t syscon_read_emac_clk_reg(device_t dev);
static void syscon_write_emac_clk_reg(device_t dev, uint32_t val);
static phandle_t awg_get_phy_node(device_t dev);
static bool awg_has_internal_phy(device_t dev);
+#ifdef DEVICE_POLLING
+static int awg_poll(if_t ifp, enum poll_cmd cmd, int count);
+#endif
/*
* MII functions