From c73cd9ca3ff875a65b6969b7183eb7fcdb23857c Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Mon, 27 Apr 2026 07:57:13 +0100 Subject: [PATCH] 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 d5a6fdb9619..3459779743b 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