git: b111430e5453 - main - mii: Add opt_platform.h to all miibus drivers

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 19:56:00 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=b111430e54537a66080df115c3a2950a2922da5a

commit b111430e54537a66080df115c3a2950a2922da5a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 19:40:01 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 19:52:55 +0000

    mii: Add opt_platform.h to all miibus drivers
    
    miivar.h includes opt_platform.h. Make sure all the drivers that use the
    miibus_if.h interface file have opt_platform.h as well. While some of
    these may not, strictly speaking, need it, it's easier to include it
    universally for miibus.
    
    Sponsored by:           Netflix
---
 sys/modules/ae/Makefile           | 2 +-
 sys/modules/age/Makefile          | 2 +-
 sys/modules/alc/Makefile          | 2 +-
 sys/modules/ale/Makefile          | 2 +-
 sys/modules/axgbe/if_axa/Makefile | 2 +-
 sys/modules/axgbe/if_axp/Makefile | 2 +-
 sys/modules/bce/Makefile          | 2 +-
 sys/modules/bfe/Makefile          | 2 +-
 sys/modules/bge/Makefile          | 2 +-
 sys/modules/cas/Makefile          | 2 +-
 sys/modules/cpsw/Makefile         | 2 +-
 sys/modules/dc/Makefile           | 2 +-
 sys/modules/e6000sw/Makefile      | 2 +-
 sys/modules/enetc/Makefile        | 2 +-
 sys/modules/et/Makefile           | 2 +-
 sys/modules/felix/Makefile        | 2 +-
 sys/modules/ffec/Makefile         | 2 +-
 sys/modules/fxp/Makefile          | 2 +-
 sys/modules/gem/Makefile          | 2 +-
 sys/modules/if_cgem/Makefile      | 2 +-
 sys/modules/jme/Makefile          | 2 +-
 sys/modules/lge/Makefile          | 2 +-
 sys/modules/msk/Makefile          | 2 +-
 sys/modules/nfe/Makefile          | 2 +-
 sys/modules/nge/Makefile          | 2 +-
 sys/modules/re/Makefile           | 2 +-
 sys/modules/rl/Makefile           | 2 +-
 sys/modules/sge/Makefile          | 2 +-
 sys/modules/sis/Makefile          | 2 +-
 sys/modules/sk/Makefile           | 2 +-
 sys/modules/ste/Makefile          | 2 +-
 sys/modules/stge/Makefile         | 2 +-
 sys/modules/tsec/Makefile         | 2 +-
 sys/modules/usb/aue/Makefile      | 2 +-
 sys/modules/usb/axe/Makefile      | 2 +-
 sys/modules/usb/axge/Makefile     | 2 +-
 sys/modules/usb/cdce/Makefile     | 2 +-
 sys/modules/usb/cdceem/Makefile   | 2 +-
 sys/modules/usb/cue/Makefile      | 2 +-
 sys/modules/usb/ipheth/Makefile   | 2 +-
 sys/modules/usb/kue/Makefile      | 2 +-
 sys/modules/usb/mos/Makefile      | 2 +-
 sys/modules/usb/rue/Makefile      | 2 +-
 sys/modules/usb/udav/Makefile     | 2 +-
 sys/modules/usb/uether/Makefile   | 2 +-
 sys/modules/usb/ure/Makefile      | 2 +-
 sys/modules/usb/urndis/Makefile   | 2 +-
 sys/modules/vge/Makefile          | 2 +-
 sys/modules/vr/Makefile           | 2 +-
 sys/modules/vte/Makefile          | 2 +-
 sys/modules/xl/Makefile           | 2 +-
 51 files changed, 51 insertions(+), 51 deletions(-)

diff --git a/sys/modules/ae/Makefile b/sys/modules/ae/Makefile
index 38ee90e2858f..6a4941d11dfd 100644
--- a/sys/modules/ae/Makefile
+++ b/sys/modules/ae/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/ae
 
 KMOD=	if_ae
-SRCS=	if_ae.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_ae.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/age/Makefile b/sys/modules/age/Makefile
index 477b5b7af32e..add3f66bcd3a 100644
--- a/sys/modules/age/Makefile
+++ b/sys/modules/age/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/age
 
 KMOD=	if_age
-SRCS=	if_age.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_age.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/alc/Makefile b/sys/modules/alc/Makefile
index 439788f6601f..54d6186241cc 100644
--- a/sys/modules/alc/Makefile
+++ b/sys/modules/alc/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/alc
 
 KMOD=	if_alc
-SRCS=	if_alc.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_alc.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ale/Makefile b/sys/modules/ale/Makefile
index a7bacf4271d1..10aa9b0d280c 100644
--- a/sys/modules/ale/Makefile
+++ b/sys/modules/ale/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/ale
 
 KMOD=	if_ale
-SRCS=	if_ale.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_ale.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/axgbe/if_axa/Makefile b/sys/modules/axgbe/if_axa/Makefile
index 586a446637b8..fd1cae37cacd 100644
--- a/sys/modules/axgbe/if_axa/Makefile
+++ b/sys/modules/axgbe/if_axa/Makefile
@@ -4,7 +4,7 @@
 
 KMOD    = if_axa
 SRCS    = device_if.h bus_if.h miibus_if.h ofw_bus_if.h ifdi_if.h vnode_if.h
-SRCS	+= opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h
+SRCS	+= opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h opt_platform.h
 SRCS    += if_axgbe.c xgbe-sysctl.c xgbe_osdep.c xgbe-desc.c xgbe-drv.c xgbe-mdio.c xgbe-dev.c xgbe-i2c.c xgbe-phy-v1.c xgbe-txrx.c
 
 CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
diff --git a/sys/modules/axgbe/if_axp/Makefile b/sys/modules/axgbe/if_axp/Makefile
index 5c2f75c52537..4253a529348c 100644
--- a/sys/modules/axgbe/if_axp/Makefile
+++ b/sys/modules/axgbe/if_axp/Makefile
@@ -4,7 +4,7 @@
 
 KMOD    = if_axp
 SRCS    = device_if.h bus_if.h miibus_if.h pci_if.h ifdi_if.h vnode_if.h
-SRCS	+= opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h
+SRCS	+= opt_inet.h opt_inet6.h opt_rss.h opt_iflib.h opt_platform.h
 SRCS    += if_axgbe_pci.c xgbe-sysctl.c xgbe_osdep.c xgbe-desc.c xgbe-drv.c xgbe-mdio.c xgbe-dev.c xgbe-i2c.c xgbe-phy-v2.c xgbe-txrx.c
 
 CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
diff --git a/sys/modules/bce/Makefile b/sys/modules/bce/Makefile
index 81940f23691b..5998c2864180 100644
--- a/sys/modules/bce/Makefile
+++ b/sys/modules/bce/Makefile
@@ -1,7 +1,7 @@
 # $FreeBSD$
 .PATH:	${SRCTOP}/sys/dev/bce
 KMOD=	if_bce
-SRCS=	opt_bce.h if_bce.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h
+SRCS=	opt_platform.h opt_bce.h if_bce.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h
 
 #CFLAGS += -DBCE_DEBUG=0
 
diff --git a/sys/modules/bfe/Makefile b/sys/modules/bfe/Makefile
index a5748f399c53..9e558c044eda 100644
--- a/sys/modules/bfe/Makefile
+++ b/sys/modules/bfe/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/bfe
 
 KMOD=	if_bfe
-SRCS=	if_bfe.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h
+SRCS=	if_bfe.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/bge/Makefile b/sys/modules/bge/Makefile
index 9a197e8fab3f..46a4946d4f21 100644
--- a/sys/modules/bge/Makefile
+++ b/sys/modules/bge/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/bge
 
 KMOD=	if_bge
-SRCS=	if_bge.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h
+SRCS=	if_bge.c miibus_if.h miidevs.h device_if.h bus_if.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/cas/Makefile b/sys/modules/cas/Makefile
index ef53564f9356..92270d653f1f 100644
--- a/sys/modules/cas/Makefile
+++ b/sys/modules/cas/Makefile
@@ -3,7 +3,7 @@
 .PATH: ${SRCTOP}/sys/dev/cas
 
 KMOD=	if_cas
-SRCS=	bus_if.h device_if.h if_cas.c miibus_if.h pci_if.h ${ofw_bus_if}
+SRCS=	bus_if.h device_if.h if_cas.c miibus_if.h pci_if.h ${ofw_bus_if} opt_platform.h
 
 .if ${MACHINE_CPUARCH} == "powerpc"
 ofw_bus_if=	ofw_bus_if.h
diff --git a/sys/modules/cpsw/Makefile b/sys/modules/cpsw/Makefile
index de6e57c37466..a3c75df0c5e1 100644
--- a/sys/modules/cpsw/Makefile
+++ b/sys/modules/cpsw/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/arm/ti/cpsw
 
 KMOD=   if_cpsw
-SRCS=   if_cpsw.c device_if.h bus_if.h ofw_bus_if.h miibus_if.h syscon_if.h
+SRCS=   if_cpsw.c device_if.h bus_if.h ofw_bus_if.h miibus_if.h syscon_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/dc/Makefile b/sys/modules/dc/Makefile
index c692532a9c01..298246301070 100644
--- a/sys/modules/dc/Makefile
+++ b/sys/modules/dc/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_dc
 SRCS=	if_dc.c dcphy.c pnphy.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h miidevs.h
+SRCS+=	miibus_if.h miidevs.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/e6000sw/Makefile b/sys/modules/e6000sw/Makefile
index 51afb6d8f3a4..222da155bb90 100644
--- a/sys/modules/e6000sw/Makefile
+++ b/sys/modules/e6000sw/Makefile
@@ -5,6 +5,6 @@
 KMOD=   e6000sw
 SRCS=   e6000sw.c
 
-SRCS+=	bus_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h
+SRCS+=	bus_if.h etherswitch_if.h mdio_if.h miibus_if.h ofw_bus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/enetc/Makefile b/sys/modules/enetc/Makefile
index 1f6bf36927bb..4957d96a1b5f 100644
--- a/sys/modules/enetc/Makefile
+++ b/sys/modules/enetc/Makefile
@@ -4,6 +4,6 @@
 
 KMOD	= if_enetc
 SRCS	= if_enetc.c enetc_mdio.c
-SRCS	+= bus_if.h device_if.h ifdi_if.h miibus_if.h ofw_bus_if.h pci_if.h
+SRCS	+= bus_if.h device_if.h ifdi_if.h miibus_if.h ofw_bus_if.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/et/Makefile b/sys/modules/et/Makefile
index bb0d3fff3420..d0a15274fe00 100644
--- a/sys/modules/et/Makefile
+++ b/sys/modules/et/Makefile
@@ -5,6 +5,6 @@
 
 KMOD=	if_et
 SRCS=	if_et.c
-SRCS+=	bus_if.h pci_if.h device_if.h miibus_if.h
+SRCS+=	bus_if.h pci_if.h device_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/felix/Makefile b/sys/modules/felix/Makefile
index 4bbca5046e0a..64169ca4f581 100644
--- a/sys/modules/felix/Makefile
+++ b/sys/modules/felix/Makefile
@@ -31,6 +31,6 @@
 
 KMOD	= felix
 SRCS	= felix.c enetc_mdio.c
-SRCS	+= bus_if.h device_if.h etherswitch_if.h miibus_if.h ofw_bus_if.h pci_if.h
+SRCS	+= bus_if.h device_if.h etherswitch_if.h miibus_if.h ofw_bus_if.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ffec/Makefile b/sys/modules/ffec/Makefile
index c092b18169b5..cf5437ba26ba 100644
--- a/sys/modules/ffec/Makefile
+++ b/sys/modules/ffec/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/ffec
 
 KMOD=	if_ffec
-SRCS=	if_ffec.c miibus_if.h device_if.h bus_if.h pci_if.h ofw_bus_if.h opt_global.h
+SRCS=	if_ffec.c miibus_if.h device_if.h bus_if.h pci_if.h ofw_bus_if.h opt_global.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/fxp/Makefile b/sys/modules/fxp/Makefile
index fbe14392f69f..a6fe85fe8252 100644
--- a/sys/modules/fxp/Makefile
+++ b/sys/modules/fxp/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/fxp
 
 KMOD=	if_fxp
-SRCS=	device_if.h bus_if.h if_fxp.c inphy.c miibus_if.h miidevs.h pci_if.h
+SRCS=	device_if.h bus_if.h if_fxp.c inphy.c miibus_if.h miidevs.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/gem/Makefile b/sys/modules/gem/Makefile
index 13c9003dc38c..7c392dacdb09 100644
--- a/sys/modules/gem/Makefile
+++ b/sys/modules/gem/Makefile
@@ -4,7 +4,7 @@
 
 KMOD=	if_gem
 SRCS=	bus_if.h device_if.h if_gem.c if_gem_pci.c miibus_if.h
-SRCS+=	${ofw_bus_if} pci_if.h
+SRCS+=	${ofw_bus_if} pci_if.h opt_platform.h
 
 .if ${MACHINE_CPUARCH} == "powerpc"
 ofw_bus_if=	ofw_bus_if.h
diff --git a/sys/modules/if_cgem/Makefile b/sys/modules/if_cgem/Makefile
index 5d552994449a..d1b792e8c720 100644
--- a/sys/modules/if_cgem/Makefile
+++ b/sys/modules/if_cgem/Makefile
@@ -2,6 +2,6 @@
 
 KMOD=	if_cgem
 SRCS=	if_cgem.c
-SRCS+=	bus_if.h device_if.h miibus_if.h ofw_bus_if.h
+SRCS+=	bus_if.h device_if.h miibus_if.h ofw_bus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/jme/Makefile b/sys/modules/jme/Makefile
index 5a22ee1b84b2..e17a8ebdf8c6 100644
--- a/sys/modules/jme/Makefile
+++ b/sys/modules/jme/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/jme
 
 KMOD=	if_jme
-SRCS=	if_jme.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_jme.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/lge/Makefile b/sys/modules/lge/Makefile
index 38dbfa50abe5..551b49b29f46 100644
--- a/sys/modules/lge/Makefile
+++ b/sys/modules/lge/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/lge
 
 KMOD=	if_lge
-SRCS=	if_lge.c miibus_if.h device_if.h bus_if.h pci_if.h
+SRCS=	if_lge.c miibus_if.h device_if.h bus_if.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/msk/Makefile b/sys/modules/msk/Makefile
index 826cd0b9c53c..f13524c91251 100644
--- a/sys/modules/msk/Makefile
+++ b/sys/modules/msk/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_msk
 SRCS=	if_msk.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/nfe/Makefile b/sys/modules/nfe/Makefile
index cb3c2334428f..b18dcb186cf0 100644
--- a/sys/modules/nfe/Makefile
+++ b/sys/modules/nfe/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/nfe
 
 KMOD=	if_nfe
-SRCS=	if_nfe.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_nfe.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/nge/Makefile b/sys/modules/nge/Makefile
index 8bc377521151..2c6b026f22ca 100644
--- a/sys/modules/nge/Makefile
+++ b/sys/modules/nge/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/nge
 
 KMOD=	if_nge
-SRCS=	if_nge.c miibus_if.h device_if.h bus_if.h pci_if.h
+SRCS=	if_nge.c miibus_if.h device_if.h bus_if.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/re/Makefile b/sys/modules/re/Makefile
index 782519b4d331..ae51e71d0bdc 100644
--- a/sys/modules/re/Makefile
+++ b/sys/modules/re/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_re
 SRCS=	if_re.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/rl/Makefile b/sys/modules/rl/Makefile
index 51a4faec75bb..119968c6088a 100644
--- a/sys/modules/rl/Makefile
+++ b/sys/modules/rl/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_rl
 SRCS=	if_rl.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sge/Makefile b/sys/modules/sge/Makefile
index c2d0e238a918..bd741161b8f5 100644
--- a/sys/modules/sge/Makefile
+++ b/sys/modules/sge/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/sge
 
 KMOD=	if_sge
-SRCS=	if_sge.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_sge.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sis/Makefile b/sys/modules/sis/Makefile
index 759886c52357..47a679fe2a24 100644
--- a/sys/modules/sis/Makefile
+++ b/sys/modules/sis/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_sis
 SRCS=	if_sis.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sk/Makefile b/sys/modules/sk/Makefile
index 2b3e88afec40..779428d397f2 100644
--- a/sys/modules/sk/Makefile
+++ b/sys/modules/sk/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_sk
 SRCS=	if_sk.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ste/Makefile b/sys/modules/ste/Makefile
index 25b1ddcd2716..143ccc988db4 100644
--- a/sys/modules/ste/Makefile
+++ b/sys/modules/ste/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_ste
 SRCS=	if_ste.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/stge/Makefile b/sys/modules/stge/Makefile
index b67e3b044baf..dea48430b0db 100644
--- a/sys/modules/stge/Makefile
+++ b/sys/modules/stge/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_stge
 SRCS=	if_stge.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/tsec/Makefile b/sys/modules/tsec/Makefile
index f63facef76cb..24a96d8354da 100644
--- a/sys/modules/tsec/Makefile
+++ b/sys/modules/tsec/Makefile
@@ -6,6 +6,6 @@ SYSDIR?=${SRCTOP}/sys
 
 KMOD=	if_tsec
 SRCS=	if_tsec.c if_tsec_fdt.c
-SRCS+=	bus_if.h device_if.h miibus_if.h miidevs.h ofw_bus_if.h
+SRCS+=	bus_if.h device_if.h miibus_if.h miidevs.h ofw_bus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/aue/Makefile b/sys/modules/usb/aue/Makefile
index 6e67128c3ddf..8ffef49deae2 100644
--- a/sys/modules/usb/aue/Makefile
+++ b/sys/modules/usb/aue/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_aue
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_aue.c
+	if_aue.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/axe/Makefile b/sys/modules/usb/axe/Makefile
index 41f9c5e38500..5b0b83d38c23 100644
--- a/sys/modules/usb/axe/Makefile
+++ b/sys/modules/usb/axe/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_axe
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_axe.c
+	if_axe.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/axge/Makefile b/sys/modules/usb/axge/Makefile
index 873f4e8f0e57..5807d61abf97 100644
--- a/sys/modules/usb/axge/Makefile
+++ b/sys/modules/usb/axge/Makefile
@@ -5,6 +5,6 @@
 KMOD=	if_axge
 SRCS+=	if_axge.c usbdevs.h
 SRCS+=	bus_if.h device_if.h miibus_if.h usb_if.h \
-	opt_bus.h opt_inet.h opt_usb.h
+	opt_bus.h opt_inet.h opt_usb.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/cdce/Makefile b/sys/modules/usb/cdce/Makefile
index 0b1db335ffc8..0f3e853f49fd 100644
--- a/sys/modules/usb/cdce/Makefile
+++ b/sys/modules/usb/cdce/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_cdce
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_cdce.c
+	if_cdce.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/cdceem/Makefile b/sys/modules/usb/cdceem/Makefile
index 957fae39fbb3..7cdaadf99673 100644
--- a/sys/modules/usb/cdceem/Makefile
+++ b/sys/modules/usb/cdceem/Makefile
@@ -7,6 +7,6 @@
 KMOD=	if_cdceem
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_cdceem.c
+	if_cdceem.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/cue/Makefile b/sys/modules/usb/cue/Makefile
index 2ba17e296958..ef48b9490c23 100644
--- a/sys/modules/usb/cue/Makefile
+++ b/sys/modules/usb/cue/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_cue
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_cue.c
+	if_cue.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/ipheth/Makefile b/sys/modules/usb/ipheth/Makefile
index c65ae779e642..59d0c61971ee 100644
--- a/sys/modules/usb/ipheth/Makefile
+++ b/sys/modules/usb/ipheth/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_ipheth
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_ipheth.c
+	if_ipheth.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/kue/Makefile b/sys/modules/usb/kue/Makefile
index 2b3e504cf88e..923d6eb0c00b 100644
--- a/sys/modules/usb/kue/Makefile
+++ b/sys/modules/usb/kue/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_kue
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_kue.c
+	if_kue.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/mos/Makefile b/sys/modules/usb/mos/Makefile
index cd61474cb616..4873051f6a25 100644
--- a/sys/modules/usb/mos/Makefile
+++ b/sys/modules/usb/mos/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_mos
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_mos.c
+	if_mos.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/rue/Makefile b/sys/modules/usb/rue/Makefile
index 69db3fe626e4..f4f1cf755777 100644
--- a/sys/modules/usb/rue/Makefile
+++ b/sys/modules/usb/rue/Makefile
@@ -31,6 +31,6 @@ S=     ${SRCTOP}/sys
 
 KMOD=	if_rue
 SRCS=	bus_if.h device_if.h miibus_if.h miidevs.h if_rue.c opt_bus.h
-SRCS+=	opt_inet.h opt_usb.h ruephy.c usb_if.h usbdevs.h
+SRCS+=	opt_inet.h opt_usb.h ruephy.c usb_if.h usbdevs.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/udav/Makefile b/sys/modules/usb/udav/Makefile
index 242ae7fb73b7..283b15582ada 100644
--- a/sys/modules/usb/udav/Makefile
+++ b/sys/modules/usb/udav/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_udav
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_udav.c
+	if_udav.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/uether/Makefile b/sys/modules/usb/uether/Makefile
index 838eeffcb17e..c6b87d7d2e2a 100644
--- a/sys/modules/usb/uether/Makefile
+++ b/sys/modules/usb/uether/Makefile
@@ -32,7 +32,7 @@ S=     ${SRCTOP}/sys
 KMOD=	uether
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	usb_ethernet.c
+	usb_ethernet.c opt_platform.h
 
 EXPORT_SYMS=	YES
 
diff --git a/sys/modules/usb/ure/Makefile b/sys/modules/usb/ure/Makefile
index 63638e3ecb7b..3ede59a5639e 100644
--- a/sys/modules/usb/ure/Makefile
+++ b/sys/modules/usb/ure/Makefile
@@ -5,6 +5,6 @@
 KMOD=	if_ure
 SRCS+=	if_ure.c usbdevs.h
 SRCS+=	bus_if.h device_if.h miibus_if.h usb_if.h \
-	opt_bus.h opt_inet.h opt_inet6.h opt_usb.h
+	opt_bus.h opt_inet.h opt_inet6.h opt_usb.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/usb/urndis/Makefile b/sys/modules/usb/urndis/Makefile
index 51fe5a94e974..e4e70fc2a647 100644
--- a/sys/modules/usb/urndis/Makefile
+++ b/sys/modules/usb/urndis/Makefile
@@ -32,6 +32,6 @@ S=     ${SRCTOP}/sys
 KMOD=	if_urndis
 SRCS=	opt_bus.h opt_usb.h device_if.h bus_if.h usb_if.h usbdevs.h \
 	miibus_if.h opt_inet.h \
-	if_urndis.c
+	if_urndis.c opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/vge/Makefile b/sys/modules/vge/Makefile
index 2866aaca9ec5..e2c39ac3862f 100644
--- a/sys/modules/vge/Makefile
+++ b/sys/modules/vge/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/vge
 
 KMOD=	if_vge
-SRCS=	if_vge.c miibus_if.h device_if.h bus_if.h pci_if.h
+SRCS=	if_vge.c miibus_if.h device_if.h bus_if.h pci_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/vr/Makefile b/sys/modules/vr/Makefile
index 3f56ee873de3..5a37480c9ffc 100644
--- a/sys/modules/vr/Makefile
+++ b/sys/modules/vr/Makefile
@@ -4,6 +4,6 @@
 
 KMOD=	if_vr
 SRCS=	if_vr.c device_if.h bus_if.h pci_if.h
-SRCS+=	miibus_if.h
+SRCS+=	miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/vte/Makefile b/sys/modules/vte/Makefile
index f6628a471470..b6b7b7ba66e9 100644
--- a/sys/modules/vte/Makefile
+++ b/sys/modules/vte/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/vte
 
 KMOD=	if_vte
-SRCS=	if_vte.c device_if.h bus_if.h pci_if.h miibus_if.h
+SRCS=	if_vte.c device_if.h bus_if.h pci_if.h miibus_if.h opt_platform.h
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/xl/Makefile b/sys/modules/xl/Makefile
index 7809a3352aba..c6f6124feeb3 100644
--- a/sys/modules/xl/Makefile
+++ b/sys/modules/xl/Makefile
@@ -3,6 +3,6 @@
 .PATH: ${SRCTOP}/sys/dev/xl
 
 KMOD=	if_xl
-SRCS=	bus_if.h device_if.h if_xl.c miibus_if.h miidevs.h pci_if.h xlphy.c
+SRCS=	bus_if.h device_if.h if_xl.c miibus_if.h miidevs.h pci_if.h xlphy.c opt_platform.h
 
 .include <bsd.kmod.mk>