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
This commit is contained in:
Konstantin Belousov 2021-11-07 10:42:24 +02:00
parent 3850d1837b
commit 5bb3134a8c
86 changed files with 174 additions and 16 deletions

View File

@ -52,4 +52,6 @@ cleanfirmware: clean
CLEANFILES= ${GENSRCS}
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -4,4 +4,6 @@
KMOD= alq
SRCS= opt_mac.h vnode_if.h kern_alq.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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}

View File

@ -10,4 +10,6 @@ SRCS+= bus_if.h \
backlight_if.h \
backlight_if.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -5,4 +5,6 @@
KMOD= bridgestp
SRCS= bridgestp.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -28,4 +28,6 @@ SRCS+= opt_cam.h
MFILES= kern/bus_if.m kern/device_if.m
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -44,4 +44,6 @@ SRCS+= fastlz.c
CFLAGS+= -I${CXGBE}
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -17,4 +17,6 @@ opt_ddb.h:
CFLAGS+= -I${SRCTOP}/sys
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -17,4 +17,6 @@ efirt_support.o: efirt_support.S assym.inc
${.IMPSRC} -o ${.TARGET}
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -5,4 +5,6 @@
KMOD= firmware
SRCS= subr_firmware.c vnode_if.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -5,4 +5,6 @@
KMOD= geom_flashmap
SRCS= geom_flashmap.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -42,4 +42,6 @@ SRCS+= ofw_gpiobus.c
CFLAGS+= -I. -I${SRCTOP}/sys/dev/gpio/
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -16,4 +16,6 @@ SRCS+= \
SRCS+= ofw_bus_if.h
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -7,4 +7,6 @@ SRCS= if_infiniband.c \
opt_inet.h \
opt_inet6.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -19,4 +19,6 @@ CFLAGS+= -DIPFIREWALL -I${SRCTOP}/sys/contrib/ck/include
#CFLAGS+= -DIPFIREWALL_DEFAULT_TO_ACCEPT
#
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -15,4 +15,6 @@ SRCS+= device_if.h bus_if.h pci_if.h
#CFLAGS += -DMFI_DEBUG
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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

View File

@ -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}

View File

@ -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>

View File

@ -15,4 +15,6 @@ SRCS= ngatmbase.c unimsg_common.c straddr.c \
CFLAGS+= -I${LIBBASE} # -DNGATM_DEBUG
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -13,4 +13,6 @@ SRCS= ng_btsocket.c \
ng_btsocket_rfcomm.c \
ng_btsocket_sco.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -4,4 +4,6 @@
KMOD= netgraph
SRCS= ng_base.c ng_parse.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -14,4 +14,6 @@ SRCS= vnode_if.h \
opt_nfs.h \
opt_ufs.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -5,4 +5,6 @@ KMOD= nfssvc
SRCS= nfs_nfssvc.c \
opt_nfs.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -23,4 +23,6 @@ SRCS = nvme.c \
opt_nvme.h \
pci_if.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -23,4 +23,6 @@ opt_global.h:
.endif
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -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)

View File

@ -17,4 +17,6 @@ SRCS+= \
pwmbus_if.c \
pwmbus_if.h \
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -5,4 +5,6 @@
KMOD= rc4
SRCS= rc4.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -47,4 +47,6 @@ opt_rtwn.h:
@echo "#define RTWN_WITHOUT_UCODE 1" >> ${.TARGET}
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -17,4 +17,6 @@ SRCS+= \
spibus_if.c \
spibus_if.h \
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -16,4 +16,6 @@ SRCS+= \
SRCS+= ofw_bus_if.h
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -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>

View File

@ -5,4 +5,6 @@
KMOD= sysvmsg
SRCS= sysv_msg.c opt_sysvipc.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -5,4 +5,6 @@
KMOD= sysvsem
SRCS= sysv_sem.c opt_sysvipc.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -5,4 +5,6 @@
KMOD= sysvshm
SRCS= sysv_shm.c opt_sysvipc.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -6,4 +6,6 @@ KMOD= toecore
SRCS= toecore.c
SRCS+= opt_ofed.h opt_inet.h opt_inet6.h opt_kern_tls.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -14,4 +14,6 @@ SRCS= opt_ddb.h opt_directio.h opt_ffs.h opt_quota.h opt_suiddir.h opt_ufs.h \
CFLAGS+= -DSOFTUPDATES -DUFS_DIRHASH
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -33,4 +33,6 @@ KMOD= ucom
SRCS= opt_bus.h opt_usb.h opt_gdb.h device_if.h bus_if.h usb_if.h usbdevs.h \
usb_serial.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -34,4 +34,6 @@ 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
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -33,4 +33,6 @@ KMOD= uhid
SRCS= opt_bus.h opt_hid.h opt_usb.h device_if.h bus_if.h usb_if.h \
vnode_if.h usbdevs.h uhid.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -41,4 +41,6 @@ SRCS= bus_if.h device_if.h usb_if.h usb_if.c vnode_if.h \
SRCS+= usb_fdt_support.c ofw_bus_if.h
.endif
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -32,4 +32,6 @@ SRCS+= virtio_bus_if.c virtio_bus_if.h
SRCS+= virtio_if.c virtio_if.h
SRCS+= bus_if.h device_if.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -16,6 +16,8 @@ SRCS= ieee80211.c ieee80211_action.c ieee80211_ageq.c \
SRCS+= bus_if.h device_if.h opt_ddb.h opt_inet.h opt_inet6.h \
opt_tdma.h opt_wlan.h
EXPORT_SYMS= YES
.include <bsd.kmod.mk>
CWARNFLAGS.ieee80211_adhoc.c= -Wno-unused-function

View File

@ -9,4 +9,6 @@ SRCS= xdr.c \
xdr_reference.c \
xdr_sizeof.c
EXPORT_SYMS= YES
.include <bsd.kmod.mk>

View File

@ -17,4 +17,6 @@ CFLAGS+= \
-I${SRCTOP}/sys/contrib/xz-embedded/linux/lib/xz \
-I${SRCTOP}/sys/contrib/xz-embedded/linux/include/linux
EXPORT_SYMS= YES
.include <bsd.kmod.mk>