Date: Sat, 9 Nov 2024 01:10:47 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: da80e62f965c - stable/14 - linker: Make linker.h more self-contained Message-ID: <202411090110.4A91Alix007947@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=da80e62f965c56d4f3d2b91be2b33960ada46854 commit da80e62f965c56d4f3d2b91be2b33960ada46854 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-10-26 14:05:56 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-11-09 01:10:14 +0000 linker: Make linker.h more self-contained struct kld_file_stat embeds a reference to MAXPATHLEN, defined in param.h. PR: 280432 MFC after: 2 weeks (cherry picked from commit f44029e322446469f116bbd26d51ba857083bacb) --- lib/libc/sys/kldfind.2 | 1 - lib/libc/sys/kldfirstmod.2 | 1 - lib/libc/sys/kldload.2 | 1 - lib/libc/sys/kldnext.2 | 1 - lib/libc/sys/kldstat.2 | 1 - lib/libc/sys/kldsym.2 | 1 - lib/libc/sys/kldunload.2 | 1 - sys/sys/linker.h | 2 ++ 8 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/libc/sys/kldfind.2 b/lib/libc/sys/kldfind.2 index a7e147af55f1..5ede0d1e1464 100644 --- a/lib/libc/sys/kldfind.2 +++ b/lib/libc/sys/kldfind.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldfind "const char *file" diff --git a/lib/libc/sys/kldfirstmod.2 b/lib/libc/sys/kldfirstmod.2 index 8e69b366c8aa..b6dbab2c94b7 100644 --- a/lib/libc/sys/kldfirstmod.2 +++ b/lib/libc/sys/kldfirstmod.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldfirstmod "int fileid" diff --git a/lib/libc/sys/kldload.2 b/lib/libc/sys/kldload.2 index 20bf3778c1ae..63a13c328d58 100644 --- a/lib/libc/sys/kldload.2 +++ b/lib/libc/sys/kldload.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldload "const char *file" diff --git a/lib/libc/sys/kldnext.2 b/lib/libc/sys/kldnext.2 index 8d8102711494..28b14dfc3035 100644 --- a/lib/libc/sys/kldnext.2 +++ b/lib/libc/sys/kldnext.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldnext "int fileid" diff --git a/lib/libc/sys/kldstat.2 b/lib/libc/sys/kldstat.2 index f0ab26ac2608..111323a0da8d 100644 --- a/lib/libc/sys/kldstat.2 +++ b/lib/libc/sys/kldstat.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldstat "int fileid" "struct kld_file_stat *stat" diff --git a/lib/libc/sys/kldsym.2 b/lib/libc/sys/kldsym.2 index d3025ca536f8..641fc26c38ec 100644 --- a/lib/libc/sys/kldsym.2 +++ b/lib/libc/sys/kldsym.2 @@ -31,7 +31,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldsym "int fileid" "int cmd" "void *data" diff --git a/lib/libc/sys/kldunload.2 b/lib/libc/sys/kldunload.2 index 2d33aabb3f33..c89f869e9eeb 100644 --- a/lib/libc/sys/kldunload.2 +++ b/lib/libc/sys/kldunload.2 @@ -32,7 +32,6 @@ .Sh LIBRARY .Lb libc .Sh SYNOPSIS -.In sys/param.h .In sys/linker.h .Ft int .Fn kldunload "int fileid" diff --git a/sys/sys/linker.h b/sys/sys/linker.h index be127e6ded48..e9073dab236c 100644 --- a/sys/sys/linker.h +++ b/sys/sys/linker.h @@ -29,6 +29,8 @@ #ifndef _SYS_LINKER_H_ #define _SYS_LINKER_H_ +#include <sys/param.h> + #ifdef _KERNEL #include <machine/elf.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411090110.4A91Alix007947>