]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
usb_ethernet.h includes a number of mii headers, but only does so in
authorstevek <stevek@FreeBSD.org>
Tue, 20 Aug 2019 01:06:43 +0000 (01:06 +0000)
committerstevek <stevek@FreeBSD.org>
Tue, 20 Aug 2019 01:06:43 +0000 (01:06 +0000)
commit85e7433b2763f7f8491f9c94d645d10d30306c8e
treea260860aeb7b9a9ce3a90a70284cb8c2ff629ea0
parentc25a7c144952a6d00847074dcb5aecd8026622b5
usb_ethernet.h includes a number of mii headers, but only does so in
order to have struct mii_data available. However, it only really needs
a forward declaration of struct mii_data for use in pointer form for
the return type of a function prototype.

Custom kernel configuration that have usb and fdt enabled, but no miibus,
end up with compilation failures because miibus_if.h will not get
generated.

Due to the above, the following changes have been made to usb_ethernet.h:
 * remove the inclusion of mii headers
 * forward-declare struct mii_data
 * include net/ifq.h to satify the need for complete struct ifqueue

Reviewed by: ian
Obtained from: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D21293
sys/dev/usb/net/usb_ethernet.h