Skip to content

Commit

Permalink
lindebugfs: Export symbols
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emaste committed Dec 8, 2024
1 parent f00fe11 commit c3d2c95
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sys/modules/lindebugfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit c3d2c95

Please sign in to comment.