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)
Oct 3 2024, 11:38 AM
Unknown Object (File)
Sep 25 2024, 11:35 PM
Unknown Object (File)
Sep 25 2024, 2:59 PM
Unknown Object (File)
Sep 25 2024, 5:01 AM
Unknown Object (File)
Sep 24 2024, 8:26 PM
Unknown Object (File)
Sep 24 2024, 8:20 PM
Unknown Object (File)
Sep 23 2024, 4:57 PM
Unknown Object (File)
Sep 19 2024, 7:11 PM
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