From f44029e322446469f116bbd26d51ba857083bacb Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Sat, 26 Oct 2024 14:05:56 +0000 Subject: [PATCH] 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 --- lib/libsys/kldfind.2 | 1 - lib/libsys/kldfirstmod.2 | 1 - lib/libsys/kldload.2 | 1 - lib/libsys/kldnext.2 | 1 - lib/libsys/kldstat.2 | 1 - lib/libsys/kldsym.2 | 1 - lib/libsys/kldunload.2 | 1 - sys/sys/linker.h | 2 ++ 8 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/libsys/kldfind.2 b/lib/libsys/kldfind.2 index a7e147af55f1..5ede0d1e1464 100644 --- a/lib/libsys/kldfind.2 +++ b/lib/libsys/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/libsys/kldfirstmod.2 b/lib/libsys/kldfirstmod.2 index 8e69b366c8aa..b6dbab2c94b7 100644 --- a/lib/libsys/kldfirstmod.2 +++ b/lib/libsys/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/libsys/kldload.2 b/lib/libsys/kldload.2 index 20bf3778c1ae..63a13c328d58 100644 --- a/lib/libsys/kldload.2 +++ b/lib/libsys/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/libsys/kldnext.2 b/lib/libsys/kldnext.2 index 8d8102711494..28b14dfc3035 100644 --- a/lib/libsys/kldnext.2 +++ b/lib/libsys/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/libsys/kldstat.2 b/lib/libsys/kldstat.2 index f0ab26ac2608..111323a0da8d 100644 --- a/lib/libsys/kldstat.2 +++ b/lib/libsys/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/libsys/kldsym.2 b/lib/libsys/kldsym.2 index d3025ca536f8..641fc26c38ec 100644 --- a/lib/libsys/kldsym.2 +++ b/lib/libsys/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/libsys/kldunload.2 b/lib/libsys/kldunload.2 index 2d33aabb3f33..c89f869e9eeb 100644 --- a/lib/libsys/kldunload.2 +++ b/lib/libsys/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 a316aa26d0eb..fbbc0ebc5de1 100644 --- a/sys/sys/linker.h +++ b/sys/sys/linker.h @@ -29,6 +29,8 @@ #ifndef _SYS_LINKER_H_ #define _SYS_LINKER_H_ +#include + #ifdef _KERNEL #include