Page MenuHomeFreeBSD

if_awg: build error with DEVICE_POLLING
Needs ReviewPublic

Authored by sigsys_gmail.com on Jan 20 2021, 5:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 26, 2:12 AM
Unknown Object (File)
Wed, Nov 5, 2:02 AM
Unknown Object (File)
Tue, Nov 4, 5:54 PM
Unknown Object (File)
Wed, Oct 29, 8:35 PM
Unknown Object (File)
Wed, Oct 29, 5:57 PM
Unknown Object (File)
Oct 15 2025, 1:51 AM
Unknown Object (File)
Oct 9 2025, 3:11 PM
Unknown Object (File)
Sep 30 2025, 4:36 AM
Subscribers

Details

Reviewers
manu
Summary

if_awg won't build with the DEVICE_POLLING option since reorganization in 5fba90649ad564a5820877c7448383847f7f20e8 (r367883) because awg_poll() is used in awg_ioctl() before it is defined/declared.

/usr/src/sys/arm/allwinner/if_awg.c:1152:33: error: use of undeclared identifier 'awg_poll'; did you mean 'awg_ioctl'?
                                error = ether_poll_register(awg_poll, ifp);
                                                            ^~~~~~~~
                                                            awg_ioctl
/usr/src/sys/arm/allwinner/if_awg.c:1106:1: note: 'awg_ioctl' declared here
awg_ioctl(if_t ifp, u_long cmd, caddr_t data)
^

Could just add a prototype, but it might be better to move things around a bit again but I wouldn't know where to put it.

Test Plan

Build with DEVICE_POLLING option.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped