git: 96ef85cc51ba - stable/14 - lindebugfs: Export symbols
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Jan 2025 18:48:50 UTC
The branch stable/14 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=96ef85cc51ba2eccc6a043227aa993180e5a0473
commit 96ef85cc51ba2eccc6a043227aa993180e5a0473
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-12-07 18:03:40 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-01-07 18:48:33 +0000
lindebugfs: Export symbols
We currently rely on the kernel linker resolving undefined references
against local symbols from other kernel modules. Be explicit about the
symbols to export, in advance of changing that behaviour.
PR: 207898
Reviewed by: kib, bz
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47980
(cherry picked from commit c3d2c959b5c0ea05d6e5162def35d51ec267590c)
---
sys/modules/lindebugfs/Makefile | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/sys/modules/lindebugfs/Makefile b/sys/modules/lindebugfs/Makefile
index 542a2fb7b6da..62a86ac50460 100644
--- a/sys/modules/lindebugfs/Makefile
+++ b/sys/modules/lindebugfs/Makefile
@@ -7,4 +7,25 @@ SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= ${LINUXKPI_INCLUDES}
+EXPORT_SYMS= debugfs_create_atomic_t
+EXPORT_SYMS+= debugfs_create_blob
+EXPORT_SYMS+= debugfs_create_bool
+EXPORT_SYMS+= debugfs_create_dir
+EXPORT_SYMS+= debugfs_create_file
+EXPORT_SYMS+= debugfs_create_file_size
+EXPORT_SYMS+= debugfs_create_file_unsafe
+EXPORT_SYMS+= debugfs_create_mode_unsafe
+EXPORT_SYMS+= debugfs_create_symlink
+EXPORT_SYMS+= debugfs_create_u8
+EXPORT_SYMS+= debugfs_create_u16
+EXPORT_SYMS+= debugfs_create_u32
+EXPORT_SYMS+= debugfs_create_u64
+EXPORT_SYMS+= debugfs_create_ulong
+EXPORT_SYMS+= debugfs_create_x8
+EXPORT_SYMS+= debugfs_create_x16
+EXPORT_SYMS+= debugfs_create_x32
+EXPORT_SYMS+= debugfs_create_x64
+EXPORT_SYMS+= debugfs_remove
+EXPORT_SYMS+= debugfs_remove_recursive
+
.include <bsd.kmod.mk>