git: 5bb3134a8c21 - main - Fix some modules to export more used symbols

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 18 Nov 2021 13:57:01 UTC
The branch main has been updated by kib:

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

commit 5bb3134a8c21cb87b30e135ef168483f0333dabb
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-07 08:42:24 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-11-18 13:56:23 +0000

    Fix some modules to export more used symbols
    
    and remove non-present symbols that are now reported by kmod_syms.awk.
    
    Reviewed by:    emaste
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
    Differential revision:  https://reviews.freebsd.org/D32878
---
 sys/modules/aic7xxx/ahc/Makefile                         | 2 ++
 sys/modules/alq/Makefile                                 | 2 ++
 sys/modules/amdsmn/Makefile                              | 2 ++
 sys/modules/amr/Makefile                                 | 2 ++
 sys/modules/ata/atacore/Makefile                         | 2 ++
 sys/modules/ata/atapci/Makefile                          | 2 ++
 sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile | 2 ++
 sys/modules/ath_hal/Makefile                             | 2 ++
 sys/modules/backlight/Makefile                           | 2 ++
 sys/modules/bhnd/Makefile                                | 4 +++-
 sys/modules/bhnd/bhndb/Makefile                          | 2 ++
 sys/modules/bridgestp/Makefile                           | 2 ++
 sys/modules/ctl/Makefile                                 | 2 ++
 sys/modules/cxgbe/if_cxgbe/Makefile                      | 2 ++
 sys/modules/dcons/Makefile                               | 2 ++
 sys/modules/efirt/Makefile                               | 2 ++
 sys/modules/evdev/Makefile                               | 2 ++
 sys/modules/exca/Makefile                                | 2 ++
 sys/modules/firewire/firewire/Makefile                   | 2 ++
 sys/modules/firmware/Makefile                            | 2 ++
 sys/modules/geom/geom_flashmap/Makefile                  | 2 ++
 sys/modules/gpio/gpiobus/Makefile                        | 2 ++
 sys/modules/hid/hconf/Makefile                           | 2 ++
 sys/modules/hid/hid/Makefile                             | 2 ++
 sys/modules/hid/hidbus/Makefile                          | 2 ++
 sys/modules/hid/hidmap/Makefile                          | 2 ++
 sys/modules/hyperv/vmbus/Makefile                        | 2 ++
 sys/modules/i2c/iicbb/Makefile                           | 2 ++
 sys/modules/i2c/iicbus/Makefile                          | 2 ++
 sys/modules/i2c/mux/iicmux/Makefile                      | 2 ++
 sys/modules/i2c/smbus/Makefile                           | 2 ++
 sys/modules/ibcore/Makefile                              | 2 ++
 sys/modules/if_gif/Makefile                              | 2 ++
 sys/modules/if_infiniband/Makefile                       | 2 ++
 sys/modules/iflib/Makefile                               | 2 ++
 sys/modules/ipfw/Makefile                                | 2 ++
 sys/modules/iscsi/Makefile                               | 2 ++
 sys/modules/ixl/Makefile                                 | 2 ++
 sys/modules/kgssapi/Makefile                             | 2 ++
 sys/modules/krpc/Makefile                                | 2 ++
 sys/modules/libalias/libalias/Makefile                   | 2 ++
 sys/modules/linux/Makefile                               | 2 ++
 sys/modules/linux64/Makefile                             | 2 ++
 sys/modules/linux_common/Makefile                        | 4 ++--
 sys/modules/linuxkpi/Makefile                            | 2 ++
 sys/modules/mfi/Makefile                                 | 2 ++
 sys/modules/mii/Makefile                                 | 8 +-------
 sys/modules/mlx4/Makefile                                | 2 ++
 sys/modules/mlx5/Makefile                                | 2 ++
 sys/modules/mlxfw/Makefile                               | 2 ++
 sys/modules/netgraph/atm/atmbase/Makefile                | 2 ++
 sys/modules/netgraph/bluetooth/bluetooth/Makefile        | 2 ++
 sys/modules/netgraph/bluetooth/socket/Makefile           | 2 ++
 sys/modules/netgraph/netgraph/Makefile                   | 2 ++
 sys/modules/nfscommon/Makefile                           | 2 ++
 sys/modules/nfssvc/Makefile                              | 2 ++
 sys/modules/ntb/ntb/Makefile                             | 2 ++
 sys/modules/ntb/ntb_transport/Makefile                   | 2 ++
 sys/modules/nvme/Makefile                                | 2 ++
 sys/modules/ow/owc/Makefile                              | 2 ++
 sys/modules/pf/Makefile                                  | 2 ++
 sys/modules/ppbus/Makefile                               | 7 +++++--
 sys/modules/procfs/Makefile                              | 2 +-
 sys/modules/pseudofs/Makefile                            | 5 ++---
 sys/modules/pwm/pwmbus/Makefile                          | 2 ++
 sys/modules/rc4/Makefile                                 | 2 ++
 sys/modules/rtwn/Makefile                                | 2 ++
 sys/modules/sdhci/Makefile                               | 2 ++
 sys/modules/sound/driver/sbc/Makefile                    | 2 ++
 sys/modules/sound/driver/spicds/Makefile                 | 2 ++
 sys/modules/spi/spibus/Makefile                          | 2 ++
 sys/modules/spigen/Makefile                              | 2 ++
 sys/modules/superio/Makefile                             | 2 ++
 sys/modules/sysvipc/sysvmsg/Makefile                     | 2 ++
 sys/modules/sysvipc/sysvsem/Makefile                     | 2 ++
 sys/modules/sysvipc/sysvshm/Makefile                     | 2 ++
 sys/modules/toecore/Makefile                             | 2 ++
 sys/modules/ufs/Makefile                                 | 2 ++
 sys/modules/usb/ucom/Makefile                            | 2 ++
 sys/modules/usb/uether/Makefile                          | 2 ++
 sys/modules/usb/uhid/Makefile                            | 2 ++
 sys/modules/usb/usb/Makefile                             | 2 ++
 sys/modules/virtio/virtio/Makefile                       | 2 ++
 sys/modules/wlan/Makefile                                | 2 ++
 sys/modules/xdr/Makefile                                 | 2 ++
 sys/modules/xz/Makefile                                  | 2 ++
 86 files changed, 174 insertions(+), 16 deletions(-)

diff --git a/sys/modules/aic7xxx/ahc/Makefile b/sys/modules/aic7xxx/ahc/Makefile
index 41bf2d70c9a2..57451e77f2a1 100644
--- a/sys/modules/aic7xxx/ahc/Makefile
+++ b/sys/modules/aic7xxx/ahc/Makefile
@@ -52,4 +52,6 @@ cleanfirmware: clean
 CLEANFILES= ${GENSRCS}
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/alq/Makefile b/sys/modules/alq/Makefile
index 911eeca73880..858f2a55ded7 100644
--- a/sys/modules/alq/Makefile
+++ b/sys/modules/alq/Makefile
@@ -4,4 +4,6 @@
 KMOD=	alq
 SRCS=	opt_mac.h vnode_if.h kern_alq.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/amdsmn/Makefile b/sys/modules/amdsmn/Makefile
index 1f030270e792..0e5e1b182548 100644
--- a/sys/modules/amdsmn/Makefile
+++ b/sys/modules/amdsmn/Makefile
@@ -5,4 +5,6 @@
 KMOD=	amdsmn
 SRCS=	amdsmn.c bus_if.h device_if.h pci_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/amr/Makefile b/sys/modules/amr/Makefile
index 1ee2ece51a16..a17ed246b8c7 100644
--- a/sys/modules/amr/Makefile
+++ b/sys/modules/amr/Makefile
@@ -16,4 +16,6 @@ SRCS=	amr.c amr_pci.c amr_disk.c device_if.h bus_if.h pci_if.h
 # Debugging
 #CFLAGS+= -DAMR_DEBUG=3
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atacore/Makefile b/sys/modules/ata/atacore/Makefile
index 9ecd03ed0ba5..f0cd0b4349d3 100644
--- a/sys/modules/ata/atacore/Makefile
+++ b/sys/modules/ata/atacore/Makefile
@@ -6,4 +6,6 @@ KMOD=	ata
 SRCS=	ata-all.c ata_if.c ata-lowlevel.c
 SRCS+=	ata_if.h bus_if.h device_if.h opt_cam.h pci_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atapci/Makefile b/sys/modules/ata/atapci/Makefile
index 5aaa265000cf..bc00b57728ee 100644
--- a/sys/modules/ata/atapci/Makefile
+++ b/sys/modules/ata/atapci/Makefile
@@ -8,4 +8,6 @@ KMOD=	atapci
 SRCS=	ata-pci.c ata-dma.c ata-sata.c
 SRCS+=	ata_if.h bus_if.h device_if.h pci_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile
index 7e44778bc165..52e806366d0e 100644
--- a/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile
+++ b/sys/modules/ata/atapci/chipsets/atasiliconimage/Makefile
@@ -6,4 +6,6 @@ KMOD=	atasiliconimage
 SRCS=	ata-siliconimage.c
 SRCS+=	ata_if.h bus_if.h device_if.h pci_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ath_hal/Makefile b/sys/modules/ath_hal/Makefile
index 6b604c6e9dbb..902c32a95b19 100644
--- a/sys/modules/ath_hal/Makefile
+++ b/sys/modules/ath_hal/Makefile
@@ -44,4 +44,6 @@ CFLAGS+=  -I. -I${SRCTOP}/sys/contrib/dev/ath/ath_hal/
 
 .include <bsd.kmod.mk>
 
+EXPORT_SYMS=	YES
+
 CWARNFLAGS.ah_regdomain.c=	${NO_WSHIFT_COUNT_NEGATIVE} ${NO_WSHIFT_COUNT_OVERFLOW}
diff --git a/sys/modules/backlight/Makefile b/sys/modules/backlight/Makefile
index 1c49d7b55138..31de4e804127 100644
--- a/sys/modules/backlight/Makefile
+++ b/sys/modules/backlight/Makefile
@@ -10,4 +10,6 @@ SRCS+=	bus_if.h \
 	backlight_if.h \
 	backlight_if.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/bhnd/Makefile b/sys/modules/bhnd/Makefile
index 18e5ad4c2149..54a72a11e28d 100644
--- a/sys/modules/bhnd/Makefile
+++ b/sys/modules/bhnd/Makefile
@@ -22,7 +22,7 @@ SRCS+=	opt_platform.h
 
 SRCS+=	bhnd_sprom_chipc.c \
 	bhnd_pmu_chipc.c
-	
+
 SRCS+=	bhnd_pwrctl.c \
 	bhnd_pwrctl_subr.c \
 	bhnd_pwrctl_if.c \
@@ -71,5 +71,7 @@ SUBDIR=	bcma \
 	siba \
 	siba_bhndb
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
 .include <bsd.subdir.mk>
diff --git a/sys/modules/bhnd/bhndb/Makefile b/sys/modules/bhnd/bhndb/Makefile
index 87ac5ef231bd..12fcde7e049f 100644
--- a/sys/modules/bhnd/bhndb/Makefile
+++ b/sys/modules/bhnd/bhndb/Makefile
@@ -15,4 +15,6 @@ SRCS+=	bhnd_bus_if.h \
 
 SRCS+=	device_if.h bus_if.h pci_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/bridgestp/Makefile b/sys/modules/bridgestp/Makefile
index 0bfd0caa1880..47a28cb8e7cd 100644
--- a/sys/modules/bridgestp/Makefile
+++ b/sys/modules/bridgestp/Makefile
@@ -5,4 +5,6 @@
 KMOD=	bridgestp
 SRCS=	bridgestp.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ctl/Makefile b/sys/modules/ctl/Makefile
index 49ba041ce224..5ff72216b329 100644
--- a/sys/modules/ctl/Makefile
+++ b/sys/modules/ctl/Makefile
@@ -28,4 +28,6 @@ SRCS+=	opt_cam.h
 
 MFILES=	kern/bus_if.m kern/device_if.m
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/cxgbe/if_cxgbe/Makefile b/sys/modules/cxgbe/if_cxgbe/Makefile
index f64e53c91a7a..7210d4e8835e 100644
--- a/sys/modules/cxgbe/if_cxgbe/Makefile
+++ b/sys/modules/cxgbe/if_cxgbe/Makefile
@@ -44,4 +44,6 @@ SRCS+=  fastlz.c
 
 CFLAGS+= -I${CXGBE}
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/dcons/Makefile b/sys/modules/dcons/Makefile
index be27ee22dae0..bdc86609c16c 100644
--- a/sys/modules/dcons/Makefile
+++ b/sys/modules/dcons/Makefile
@@ -17,4 +17,6 @@ opt_ddb.h:
 
 CFLAGS+= -I${SRCTOP}/sys 
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/efirt/Makefile b/sys/modules/efirt/Makefile
index 58f4f9673c2e..4d6e89bc5d07 100644
--- a/sys/modules/efirt/Makefile
+++ b/sys/modules/efirt/Makefile
@@ -17,4 +17,6 @@ efirt_support.o:	efirt_support.S assym.inc
 	    ${.IMPSRC} -o ${.TARGET}
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/evdev/Makefile b/sys/modules/evdev/Makefile
index 7bea12e3277f..5888825f4773 100644
--- a/sys/modules/evdev/Makefile
+++ b/sys/modules/evdev/Makefile
@@ -6,4 +6,6 @@ KMOD=	evdev
 SRCS=	cdev.c evdev.c evdev_mt.c evdev_utils.c
 SRCS+=	opt_evdev.h bus_if.h device_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/exca/Makefile b/sys/modules/exca/Makefile
index 5135ff24adb3..3b51f87b2827 100644
--- a/sys/modules/exca/Makefile
+++ b/sys/modules/exca/Makefile
@@ -5,4 +5,6 @@
 KMOD=	exca
 SRCS=	exca.c device_if.h bus_if.h power_if.h card_if.h pccarddevs.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/firewire/firewire/Makefile b/sys/modules/firewire/firewire/Makefile
index 72fa049d4326..9ce806ae96d1 100644
--- a/sys/modules/firewire/firewire/Makefile
+++ b/sys/modules/firewire/firewire/Makefile
@@ -11,4 +11,6 @@ SRCS	= bus_if.h device_if.h pci_if.h \
 	  iec13213.h iec68113.h \
 	  fwcrom.c fwdev.c fwmem.c fwmem.h fwdma.c fwdma.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/firmware/Makefile b/sys/modules/firmware/Makefile
index 7a9eb4522970..5b74a9dce24c 100644
--- a/sys/modules/firmware/Makefile
+++ b/sys/modules/firmware/Makefile
@@ -5,4 +5,6 @@
 KMOD=	firmware
 SRCS=	subr_firmware.c vnode_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/geom/geom_flashmap/Makefile b/sys/modules/geom/geom_flashmap/Makefile
index 8b56c145ea51..47e3d6105371 100644
--- a/sys/modules/geom/geom_flashmap/Makefile
+++ b/sys/modules/geom/geom_flashmap/Makefile
@@ -5,4 +5,6 @@
 KMOD=	geom_flashmap
 SRCS=	geom_flashmap.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/gpio/gpiobus/Makefile b/sys/modules/gpio/gpiobus/Makefile
index 458d56d8b935..6dc40a2a9d65 100644
--- a/sys/modules/gpio/gpiobus/Makefile
+++ b/sys/modules/gpio/gpiobus/Makefile
@@ -42,4 +42,6 @@ SRCS+=	ofw_gpiobus.c
 
 CFLAGS+=  -I. -I${SRCTOP}/sys/dev/gpio/
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hconf/Makefile b/sys/modules/hid/hconf/Makefile
index 0ac8d969cd71..182d1d9fdf63 100644
--- a/sys/modules/hid/hconf/Makefile
+++ b/sys/modules/hid/hconf/Makefile
@@ -7,4 +7,6 @@ SRCS=	hconf.c
 SRCS+=	opt_hid.h
 SRCS+=	bus_if.h device_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hid/Makefile b/sys/modules/hid/hid/Makefile
index 81fc6c671ed2..749df79beff2 100644
--- a/sys/modules/hid/hid/Makefile
+++ b/sys/modules/hid/hid/Makefile
@@ -7,4 +7,6 @@ SRCS=	hid.c hid_if.c
 SRCS+=	opt_hid.h
 SRCS+=	bus_if.h device_if.h hid_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hidbus/Makefile b/sys/modules/hid/hidbus/Makefile
index e233e3e06f07..c2a452e1e9f2 100644
--- a/sys/modules/hid/hidbus/Makefile
+++ b/sys/modules/hid/hidbus/Makefile
@@ -6,4 +6,6 @@ KMOD=	hidbus
 SRCS=	hidbus.c
 SRCS+=	bus_if.h device_if.h hid_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/hid/hidmap/Makefile b/sys/modules/hid/hidmap/Makefile
index 00e7099b287b..e0c1c086e098 100644
--- a/sys/modules/hid/hidmap/Makefile
+++ b/sys/modules/hid/hidmap/Makefile
@@ -7,4 +7,6 @@ SRCS=	hidmap.c
 SRCS+=	opt_hid.h
 SRCS+=	bus_if.h device_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/hyperv/vmbus/Makefile b/sys/modules/hyperv/vmbus/Makefile
index 47a83e76204a..0aa489d8fa26 100644
--- a/sys/modules/hyperv/vmbus/Makefile
+++ b/sys/modules/hyperv/vmbus/Makefile
@@ -35,4 +35,6 @@ vmbus_vector.o:
 CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/include \
 	 -I${SRCTOP}/sys/dev/hyperv/vmbus
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile
index c7737f09e8b9..9b74a5da39d6 100644
--- a/sys/modules/i2c/iicbb/Makefile
+++ b/sys/modules/i2c/iicbb/Makefile
@@ -10,4 +10,6 @@ KMOD		= iicbb
 SRCS		= device_if.h bus_if.h iicbus_if.h \
 		  iicbb_if.h iicbb_if.c iicbb.c ${ofw_bus_if} opt_platform.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/i2c/iicbus/Makefile b/sys/modules/i2c/iicbus/Makefile
index 8923615ecada..c6d2822bc20d 100644
--- a/sys/modules/i2c/iicbus/Makefile
+++ b/sys/modules/i2c/iicbus/Makefile
@@ -24,4 +24,6 @@ SRCS+=	acpi_iicbus.c opt_acpi.h acpi_if.h
 SRCS+=	ofw_iicbus.c ofw_bus_if.h
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/i2c/mux/iicmux/Makefile b/sys/modules/i2c/mux/iicmux/Makefile
index 1d642bf3e5ae..b3f52c6c926e 100644
--- a/sys/modules/i2c/mux/iicmux/Makefile
+++ b/sys/modules/i2c/mux/iicmux/Makefile
@@ -16,4 +16,6 @@ SRCS+=	\
 SRCS+=	ofw_bus_if.h
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/i2c/smbus/Makefile b/sys/modules/i2c/smbus/Makefile
index b5e78f223b89..0e25b78c6e4f 100644
--- a/sys/modules/i2c/smbus/Makefile
+++ b/sys/modules/i2c/smbus/Makefile
@@ -5,4 +5,6 @@ KMOD		= smbus
 SRCS		= device_if.h bus_if.h smbus_if.h smbus_if.c \
 		  smbconf.h smbconf.c smbus.h smbus.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ibcore/Makefile b/sys/modules/ibcore/Makefile
index 951f0abab453..d3fc9096f315 100644
--- a/sys/modules/ibcore/Makefile
+++ b/sys/modules/ibcore/Makefile
@@ -52,6 +52,8 @@ CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
 CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
 CFLAGS+= -DINET6 -DINET -DCONFIG_INFINIBAND_USER_MEM
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
 
 CWARNFLAGS+= -Wno-cast-qual -Wno-pointer-arith -Wno-redundant-decls
diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile
index 5799a350c8ae..639aed0d94a5 100644
--- a/sys/modules/if_gif/Makefile
+++ b/sys/modules/if_gif/Makefile
@@ -10,4 +10,6 @@ SRCS=	if_gif.c opt_inet.h opt_inet6.h
 SRCS.INET=in_gif.c
 SRCS.INET6=in6_gif.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/if_infiniband/Makefile b/sys/modules/if_infiniband/Makefile
index ca5e7e3f44db..6593cd7d0574 100644
--- a/sys/modules/if_infiniband/Makefile
+++ b/sys/modules/if_infiniband/Makefile
@@ -7,4 +7,6 @@ SRCS=	if_infiniband.c \
 	opt_inet.h \
 	opt_inet6.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/iflib/Makefile b/sys/modules/iflib/Makefile
index e86fd7e82dd6..f598db2743dd 100644
--- a/sys/modules/iflib/Makefile
+++ b/sys/modules/iflib/Makefile
@@ -11,4 +11,6 @@ SRCS+=	ifdi_if.c
 SRCS+=	device_if.h bus_if.h pci_if.h pci_iov_if.h ifdi_if.h
 SRCS+=	opt_acpi.h opt_inet.h opt_inet6.h opt_sched.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ipfw/Makefile b/sys/modules/ipfw/Makefile
index 274b1b1e6cf5..81822a3e2b1e 100644
--- a/sys/modules/ipfw/Makefile
+++ b/sys/modules/ipfw/Makefile
@@ -19,4 +19,6 @@ CFLAGS+= -DIPFIREWALL -I${SRCTOP}/sys/contrib/ck/include
 #CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
 #
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/iscsi/Makefile b/sys/modules/iscsi/Makefile
index 9b150f5c2213..e74f8ff132e2 100644
--- a/sys/modules/iscsi/Makefile
+++ b/sys/modules/iscsi/Makefile
@@ -22,4 +22,6 @@ CFLAGS+=-DICL_KERNEL_PROXY
 
 MFILES=	kern/bus_if.m kern/device_if.m dev/iscsi/icl_conn_if.m
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ixl/Makefile b/sys/modules/ixl/Makefile
index 2b524e974404..fb2fcf6574ac 100644
--- a/sys/modules/ixl/Makefile
+++ b/sys/modules/ixl/Makefile
@@ -22,4 +22,6 @@ SRCS    += i40e_common.c i40e_nvm.c i40e_adminq.c i40e_lan_hmc.c i40e_hmc.c i40e
 # CFLAGS += -DIXL_IW
 # SRCS	+= ixl_iw.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/kgssapi/Makefile b/sys/modules/kgssapi/Makefile
index a720cdd6a487..a21524cb419a 100644
--- a/sys/modules/kgssapi/Makefile
+++ b/sys/modules/kgssapi/Makefile
@@ -51,4 +51,6 @@ gssd_xdr.c:	$S/kgssapi/gssd.x
 gssd_clnt.c:	$S/kgssapi/gssd.x
 	RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/kgssapi/gssd.x | grep -v string.h > gssd_clnt.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/krpc/Makefile b/sys/modules/krpc/Makefile
index 72adceac32ce..e8946f0ba4ef 100644
--- a/sys/modules/krpc/Makefile
+++ b/sys/modules/krpc/Makefile
@@ -55,4 +55,6 @@ rpctlssd_xdr.c:	$S/rpc/rpcsec_tls/rpctlssd.x
 rpctlssd_clnt.c:	$S/rpc/rpcsec_tls/rpctlssd.x
 	RPCGEN_CPP=${CPP:Q} rpcgen -lM $S/rpc/rpcsec_tls/rpctlssd.x | grep -v string.h > rpctlssd_clnt.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/libalias/libalias/Makefile b/sys/modules/libalias/libalias/Makefile
index 655e67bebb5e..4da69ea972b0 100644
--- a/sys/modules/libalias/libalias/Makefile
+++ b/sys/modules/libalias/libalias/Makefile
@@ -5,4 +5,6 @@
 KMOD=	libalias
 SRCS=	alias.c alias_db.c alias_proxy.c alias_util.c alias_mod.c alias_sctp.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile
index d2822a20c67a..089187ca7cff 100644
--- a/sys/modules/linux/Makefile
+++ b/sys/modules/linux/Makefile
@@ -113,4 +113,6 @@ linux${SFX}_genassym.o: offset.inc
 .warning Building Linuxulator outside of a kernel does not make sense
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/linux64/Makefile b/sys/modules/linux64/Makefile
index 17192b4f18aa..e2a408f49bad 100644
--- a/sys/modules/linux64/Makefile
+++ b/sys/modules/linux64/Makefile
@@ -85,4 +85,6 @@ linux_genassym.o: offset.inc
 .warning Building Linuxulator outside of a kernel does not make sense
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/linux_common/Makefile b/sys/modules/linux_common/Makefile
index c7d139e2fb9a..9197ba9454bc 100644
--- a/sys/modules/linux_common/Makefile
+++ b/sys/modules/linux_common/Makefile
@@ -9,8 +9,6 @@ SRCS=	linux_common.c linux_mib.c linux_mmap.c linux_util.c linux_emul.c \
 
 EXPORT_SYMS=
 EXPORT_SYMS+=	linux_emul_path
-EXPORT_SYMS+=	linux_ioctl_register_handler
-EXPORT_SYMS+=	linux_ioctl_unregister_handler
 EXPORT_SYMS+=	linux_get_osname
 EXPORT_SYMS+=	linux_get_osrelease
 
@@ -18,4 +16,6 @@ EXPORT_SYMS+=	linux_get_osrelease
 .warning Building Linuxulator outside of a kernel does not make sense
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/linuxkpi/Makefile b/sys/modules/linuxkpi/Makefile
index e1b1eab6ab09..6905166440aa 100644
--- a/sys/modules/linuxkpi/Makefile
+++ b/sys/modules/linuxkpi/Makefile
@@ -39,4 +39,6 @@ SRCS+=	${LINUXKPI_GENSRCS}
 CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
 CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/mfi/Makefile b/sys/modules/mfi/Makefile
index 53f4164add7b..7a17f9b0f4fa 100644
--- a/sys/modules/mfi/Makefile
+++ b/sys/modules/mfi/Makefile
@@ -15,4 +15,6 @@ SRCS+=	device_if.h bus_if.h pci_if.h
 
 #CFLAGS += -DMFI_DEBUG
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/mii/Makefile b/sys/modules/mii/Makefile
index 5709af97b720..348c9b7b2845 100644
--- a/sys/modules/mii/Makefile
+++ b/sys/modules/mii/Makefile
@@ -13,12 +13,6 @@ SRCS+=	smscphy.c tdkphy.c truephy.c
 SRCS+=	ukphy.c ukphy_subr.c
 SRCS+=	xmphy.c
 
-EXPORT_SYMS=	mii_attach	\
-		mii_bitbang_readreg \
-		mii_bitbang_sync \
-		mii_bitbang_writereg \
-		mii_mediachg	\
-		mii_pollstat	\
-		mii_tick
+EXPORT_SYMS=	YES
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/mlx4/Makefile b/sys/modules/mlx4/Makefile
index cb140a59854f..96818c2ef3d0 100644
--- a/sys/modules/mlx4/Makefile
+++ b/sys/modules/mlx4/Makefile
@@ -30,6 +30,8 @@ CFLAGS+= -I${SRCTOP}/sys/ofed/include
 CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
 CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
 
 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith
diff --git a/sys/modules/mlx5/Makefile b/sys/modules/mlx5/Makefile
index aa07fb82a25d..c9eccde7d610 100644
--- a/sys/modules/mlx5/Makefile
+++ b/sys/modules/mlx5/Makefile
@@ -51,6 +51,8 @@ SRCS+= \
 	mlx5fpga_ipsec.c
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
 
 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
diff --git a/sys/modules/mlxfw/Makefile b/sys/modules/mlxfw/Makefile
index 1facd983fd3d..5980a49dabee 100644
--- a/sys/modules/mlxfw/Makefile
+++ b/sys/modules/mlxfw/Makefile
@@ -15,4 +15,6 @@ CFLAGS+= \
 	-I${SRCTOP}/sys/contrib/xz-embedded/freebsd \
 	-I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/atm/atmbase/Makefile b/sys/modules/netgraph/atm/atmbase/Makefile
index f495cdbbda78..68959693811e 100644
--- a/sys/modules/netgraph/atm/atmbase/Makefile
+++ b/sys/modules/netgraph/atm/atmbase/Makefile
@@ -15,4 +15,6 @@ SRCS= 	ngatmbase.c unimsg_common.c straddr.c				\
 
 CFLAGS+= -I${LIBBASE} # -DNGATM_DEBUG
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/bluetooth/bluetooth/Makefile b/sys/modules/netgraph/bluetooth/bluetooth/Makefile
index 2e25d8e37cb5..eb6c64b7ae65 100644
--- a/sys/modules/netgraph/bluetooth/bluetooth/Makefile
+++ b/sys/modules/netgraph/bluetooth/bluetooth/Makefile
@@ -8,4 +8,6 @@ CFLAGS+=	-I${SRCTOP}/sys/netgraph/bluetooth/include
 KMOD=		ng_bluetooth
 SRCS=		ng_bluetooth.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/bluetooth/socket/Makefile b/sys/modules/netgraph/bluetooth/socket/Makefile
index 36bc4e9fbd0f..1b0e913b1cf8 100644
--- a/sys/modules/netgraph/bluetooth/socket/Makefile
+++ b/sys/modules/netgraph/bluetooth/socket/Makefile
@@ -13,4 +13,6 @@ SRCS=		ng_btsocket.c \
 		ng_btsocket_rfcomm.c \
 		ng_btsocket_sco.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/netgraph/netgraph/Makefile b/sys/modules/netgraph/netgraph/Makefile
index a34d6164c908..48adf319d718 100644
--- a/sys/modules/netgraph/netgraph/Makefile
+++ b/sys/modules/netgraph/netgraph/Makefile
@@ -4,4 +4,6 @@
 KMOD=	netgraph
 SRCS= 	ng_base.c ng_parse.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/nfscommon/Makefile b/sys/modules/nfscommon/Makefile
index cc2d48c1b1bc..08d6351bd89b 100644
--- a/sys/modules/nfscommon/Makefile
+++ b/sys/modules/nfscommon/Makefile
@@ -14,4 +14,6 @@ SRCS=	vnode_if.h \
 	opt_nfs.h \
 	opt_ufs.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/nfssvc/Makefile b/sys/modules/nfssvc/Makefile
index ff9462c685f7..f59b63459fc2 100644
--- a/sys/modules/nfssvc/Makefile
+++ b/sys/modules/nfssvc/Makefile
@@ -5,4 +5,6 @@ KMOD=	nfssvc
 SRCS=	nfs_nfssvc.c \
 	opt_nfs.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ntb/ntb/Makefile b/sys/modules/ntb/ntb/Makefile
index ec6421ac7b66..f318ff0f88b9 100644
--- a/sys/modules/ntb/ntb/Makefile
+++ b/sys/modules/ntb/ntb/Makefile
@@ -6,4 +6,6 @@ KMOD    = ntb
 SRCS    = ntb.c ntb_if.c
 SRCS += device_if.h bus_if.h ntb_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ntb/ntb_transport/Makefile b/sys/modules/ntb/ntb_transport/Makefile
index df39148f64da..f7094a29d6b4 100644
--- a/sys/modules/ntb/ntb_transport/Makefile
+++ b/sys/modules/ntb/ntb_transport/Makefile
@@ -6,4 +6,6 @@ KMOD    = ntb_transport
 SRCS    = ntb_transport.c
 SRCS += device_if.h bus_if.h ntb_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/nvme/Makefile b/sys/modules/nvme/Makefile
index 1fb4604fc33a..7aad95d55e60 100644
--- a/sys/modules/nvme/Makefile
+++ b/sys/modules/nvme/Makefile
@@ -23,4 +23,6 @@ SRCS =	nvme.c			\
 	opt_nvme.h		\
 	pci_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ow/owc/Makefile b/sys/modules/ow/owc/Makefile
index 909c2382ad7d..78da808c82bc 100644
--- a/sys/modules/ow/owc/Makefile
+++ b/sys/modules/ow/owc/Makefile
@@ -7,4 +7,6 @@ SRCS=	owc_gpiobus.c
 SRCS+=	gpio_if.h gpiobus_if.h owll_if.h ofw_bus_if.h bus_if.h device_if.h
 SRCS+=	opt_platform.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/pf/Makefile b/sys/modules/pf/Makefile
index fbf5e0cbfa89..e2663b9748a8 100644
--- a/sys/modules/pf/Makefile
+++ b/sys/modules/pf/Makefile
@@ -23,4 +23,6 @@ opt_global.h:
 .endif
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/ppbus/Makefile b/sys/modules/ppbus/Makefile
index 6b29f6985236..b2ebb2430936 100644
--- a/sys/modules/ppbus/Makefile
+++ b/sys/modules/ppbus/Makefile
@@ -7,7 +7,7 @@ SRCS=	bus_if.h device_if.h ppbus_if.h ppbus_if.c \
 	opt_ppb_1284.h \
 	ppb_1284.c ppb_base.c ppb_msq.c ppbconf.c
 
-EXPORT_SYMS=	ppb_attach_device	\
+EXPORT_SYMS=	\
 		ppb_request_bus		\
 		ppb_release_bus		\
 		ppb_get_status		\
@@ -17,6 +17,9 @@ EXPORT_SYMS=	ppb_attach_device	\
 		ppb_get_epp_protocol	\
 		ppb_set_mode		\
 		ppb_get_mode		\
-		ppb_write
+		ppb_write		\
+		ppb_lock
+
+EXPORT_SYMS=	YES
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/procfs/Makefile b/sys/modules/procfs/Makefile
index 282b200e5a60..ee41bb8b116d 100644
--- a/sys/modules/procfs/Makefile
+++ b/sys/modules/procfs/Makefile
@@ -18,11 +18,11 @@ SRCS+=		procfs_type.c
 SRCS+=		procfs.c
 
 EXPORT_SYMS=
-EXPORT_SYMS+=	procfs_attr
 EXPORT_SYMS+=	procfs_candebug
 EXPORT_SYMS+=	procfs_docurproc
 EXPORT_SYMS+=	procfs_doprocfile
 EXPORT_SYMS+=	procfs_doprocmem
 EXPORT_SYMS+=	procfs_notsystem
+EXPORT_SYMS+=	procfs_attr_rw
 
 .include <bsd.kmod.mk>
diff --git a/sys/modules/pseudofs/Makefile b/sys/modules/pseudofs/Makefile
index 45afba941428..eb083cd31d77 100644
--- a/sys/modules/pseudofs/Makefile
+++ b/sys/modules/pseudofs/Makefile
@@ -10,7 +10,8 @@ SRCS=	opt_pseudofs.h \
 	pseudofs_vncache.c \
 	pseudofs_vnops.c
 
-EXPORT_SYMS=	pfs_mount	\
+EXPORT_SYMS=	pfs_cmount 	\
+		pfs_mount	\
 		pfs_unmount	\
 		pfs_root	\
 		pfs_statfs	\
@@ -19,8 +20,6 @@ EXPORT_SYMS=	pfs_mount	\
 		pfs_create_dir	\
 		pfs_create_file	\
 		pfs_create_link	\
-		pfs_disable	\
-		pfs_enable	\
 		pfs_destroy
 
 .if !defined(KERNBUILDDIR)
diff --git a/sys/modules/pwm/pwmbus/Makefile b/sys/modules/pwm/pwmbus/Makefile
index 3cf56697f200..1b3c9f3077c3 100644
--- a/sys/modules/pwm/pwmbus/Makefile
+++ b/sys/modules/pwm/pwmbus/Makefile
@@ -17,4 +17,6 @@ SRCS+=	\
 	pwmbus_if.c \
 	pwmbus_if.h \
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/rc4/Makefile b/sys/modules/rc4/Makefile
index 21d2d85856a1..23cf6480d56b 100644
--- a/sys/modules/rc4/Makefile
+++ b/sys/modules/rc4/Makefile
@@ -5,4 +5,6 @@
 KMOD=	rc4
 SRCS=	rc4.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/rtwn/Makefile b/sys/modules/rtwn/Makefile
index 465187e19f35..8f72a28a1e05 100644
--- a/sys/modules/rtwn/Makefile
+++ b/sys/modules/rtwn/Makefile
@@ -47,4 +47,6 @@ opt_rtwn.h:
 	@echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET}
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sdhci/Makefile b/sys/modules/sdhci/Makefile
index 158ed4cd945a..9d8269d86109 100644
--- a/sys/modules/sdhci/Makefile
+++ b/sys/modules/sdhci/Makefile
@@ -5,4 +5,6 @@
 KMOD=	sdhci
 SRCS=	sdhci.c sdhci.h sdhci_if.c sdhci_if.h device_if.h bus_if.h mmcbr_if.h opt_mmccam.h opt_cam.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sound/driver/sbc/Makefile b/sys/modules/sound/driver/sbc/Makefile
index d7894d644e6a..bde54a077696 100644
--- a/sys/modules/sound/driver/sbc/Makefile
+++ b/sys/modules/sound/driver/sbc/Makefile
@@ -6,4 +6,6 @@ KMOD=	snd_sbc
 SRCS=	device_if.h bus_if.h isa_if.h pci_if.h
 SRCS+=	sbc.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sound/driver/spicds/Makefile b/sys/modules/sound/driver/spicds/Makefile
index 87ab0bbf8b55..f271dae20b2e 100644
--- a/sys/modules/sound/driver/spicds/Makefile
+++ b/sys/modules/sound/driver/spicds/Makefile
@@ -6,4 +6,6 @@ KMOD=	snd_spicds
 SRCS=	device_if.h bus_if.h isa_if.h pci_if.h
 SRCS+=	spicds.c
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/spi/spibus/Makefile b/sys/modules/spi/spibus/Makefile
index 7832c870ca68..01386d39e118 100644
--- a/sys/modules/spi/spibus/Makefile
+++ b/sys/modules/spi/spibus/Makefile
@@ -17,4 +17,6 @@ SRCS+=	\
 	spibus_if.c \
 	spibus_if.h \
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/spigen/Makefile b/sys/modules/spigen/Makefile
index 401b69a7ed98..5ff4805399b3 100644
--- a/sys/modules/spigen/Makefile
+++ b/sys/modules/spigen/Makefile
@@ -16,4 +16,6 @@ SRCS+=	\
 SRCS+=	ofw_bus_if.h
 .endif
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/superio/Makefile b/sys/modules/superio/Makefile
index 86585a45cc25..064c39863566 100644
--- a/sys/modules/superio/Makefile
+++ b/sys/modules/superio/Makefile
@@ -6,4 +6,6 @@ KMOD=	superio
 SRCS=	superio.c
 SRCS+=	device_if.h bus_if.h isa_if.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sysvipc/sysvmsg/Makefile b/sys/modules/sysvipc/sysvmsg/Makefile
index 8cd9d2008b9a..84cbc70cde48 100644
--- a/sys/modules/sysvipc/sysvmsg/Makefile
+++ b/sys/modules/sysvipc/sysvmsg/Makefile
@@ -5,4 +5,6 @@
 KMOD=	sysvmsg
 SRCS=	sysv_msg.c opt_sysvipc.h
 
+EXPORT_SYMS=	YES
+
 .include <bsd.kmod.mk>
diff --git a/sys/modules/sysvipc/sysvsem/Makefile b/sys/modules/sysvipc/sysvsem/Makefile
index 186e7ed94f4b..89509341c2e5 100644
--- a/sys/modules/sysvipc/sysvsem/Makefile
*** 131 LINES SKIPPED ***