git: c3d2c959b5c0 - main - lindebugfs: Export symbols

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Sun, 08 Dec 2024 01:24:16 UTC
The branch main has been updated by emaste:

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

commit c3d2c959b5c0ea05d6e5162def35d51ec267590c
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-12-07 18:03:40 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-12-08 01:23:15 +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
---
 sys/modules/lindebugfs/Makefile | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/sys/modules/lindebugfs/Makefile b/sys/modules/lindebugfs/Makefile
index 0933208d60fa..90713a634b4b 100644
--- a/sys/modules/lindebugfs/Makefile
+++ b/sys/modules/lindebugfs/Makefile
@@ -6,4 +6,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>