commit bff82488b6f45c2f067e4c552e649b1d3e07cd7c Author: Aaron LI <a...@aaronly.me> Date: Tue Mar 20 16:04:41 2018 +0800
<net/if.h>: Do not include <net/if_var.h> for _KERNEL * Clean up an ancient leftover: do not include <net/if_var.h> from <net/if.h> for kernel stuffs. * Adjust various files to include the necessary <net/if_var.h> header. NOTE: I have also tested removing the inclusion of <net/if.h> from <net/if_var.h>, therefore add <net/if.h> inclusion for those files that need it but only included <net/if_var.h>. For some files, the header inclusion orderings are also adjusted. Summary of changes: sys/bus/u4b/net/if_udav.c | 2 ++ sys/bus/u4b/usb_pf.c | 1 + sys/dev/netif/ig_hal/e1000_osdep.c | 2 +- sys/dev/netif/mii_layer/acphy.c | 1 + sys/dev/netif/mii_layer/amphy.c | 1 + sys/dev/netif/mii_layer/e1000phy.c | 1 + sys/dev/netif/mii_layer/exphy.c | 1 + sys/dev/netif/mii_layer/inphy.c | 1 + sys/dev/netif/mii_layer/jmphy.c | 1 + sys/dev/netif/mii_layer/lxtphy.c | 1 + sys/dev/netif/mii_layer/mii_physubr.c | 1 + sys/dev/netif/mii_layer/mlphy.c | 1 + sys/dev/netif/mii_layer/nsgphy.c | 1 + sys/dev/netif/mii_layer/nsphy.c | 1 + sys/dev/netif/mii_layer/pnaphy.c | 1 + sys/dev/netif/mii_layer/qsphy.c | 1 + sys/dev/netif/mii_layer/ruephy.c | 1 + sys/dev/netif/mii_layer/tlphy.c | 1 + sys/dev/netif/mii_layer/ukphy.c | 1 + sys/dev/netif/mii_layer/xmphy.c | 1 + sys/dev/netif/ral/if_ral_pci.c | 1 + sys/dev/netif/sln/if_sln.c | 4 ++-- sys/emulation/ndis/subr_u4bd.c | 1 + sys/kern/kern_uuid.c | 1 + sys/kern/sys_socket.c | 1 + sys/net/altq/altq_red.c | 1 + sys/net/altq/altq_rio.c | 1 + sys/net/altq/altq_rmclass.c | 1 + sys/net/dummynet/ip_dummynet.c | 1 + sys/net/dummynet3/ip_dummynet3.c | 1 + sys/net/if.h | 8 +------- sys/net/if_clone.c | 1 + sys/net/if_media.c | 1 + sys/net/if_mib.c | 1 + sys/net/if_poll.c | 1 + sys/net/ipfw3/ip_fw3.c | 12 ++++++------ sys/net/ipfw3_basic/ip_fw3_sync.c | 12 ++++++------ sys/net/ipfw3_basic/ip_fw3_table.c | 12 ++++++------ sys/net/ipfw3_layer2/ip_fw3_layer2.c | 1 + sys/net/ipfw3_layer4/ip_fw3_layer4.c | 13 +++++++------ sys/net/net_osdep.c | 1 + sys/net/pf/pf_norm.c | 1 + sys/net/pfil.c | 1 + sys/net/route.c | 1 + sys/net/rtsock.c | 1 + sys/netbt/hci.h | 3 ++- sys/netgraph/bridge/ng_bridge.c | 1 + sys/netgraph/pppoe/ng_pppoe.c | 1 + sys/netinet/tcp_output.c | 1 + sys/netproto/802_11/wlan/ieee80211_crypto.c | 1 + sys/netproto/802_11/wlan/ieee80211_crypto_none.c | 1 + sys/netproto/802_11/wlan/ieee80211_hwmp.c | 1 + sys/netproto/802_11/wlan/ieee80211_phy.c | 1 + sys/netproto/802_11/wlan/ieee80211_ratectl.c | 1 + sys/netproto/802_11/wlan/ieee80211_ratectl_none.c | 1 + sys/netproto/802_11/wlan/ieee80211_tdma.c | 1 + sys/netproto/802_11/wlan_acl/ieee80211_acl.c | 1 + sys/netproto/802_11/wlan_ccmp/ieee80211_crypto_ccmp.c | 1 + sys/netproto/802_11/wlan_tkip/ieee80211_crypto_tkip.c | 1 + sys/netproto/802_11/wlan_wep/ieee80211_crypto_wep.c | 1 + sys/netproto/802_11/wlan_xauth/ieee80211_xauth.c | 1 + sys/vfs/nfs/nfs_vfsops.c | 1 + 62 files changed, 86 insertions(+), 35 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bff82488b6f45c2f067e4c552e649b1d3e07cd7c -- DragonFly BSD source repository