From nobody Sat Nov 09 01:10:47 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xld6H3PcMz5d4BH; Sat, 09 Nov 2024 01:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xld6H1D0fz4gmj; Sat, 9 Nov 2024 01:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pDqJ1y8Et6j9Jd4/zzsDKcC3SRrHt1aewCPuXrokoHk=; b=uQj9rL48CDymlz6vkM2ZpLnv6tJ+OKImmb6uJaT1vI/2sfWnjHlhEVY7GaGGmvdOo1VzwC lHRsIl8W+8gzc8aVwC3ZswDVwWZqH2waJvuxR0bgNJhhiYO79PFFC2m0Ub7qystM958wV2 5yYoQgwx2lSV/HzAE8cjDIsiqLkPHisSOT6aN0jtIxb6irG7c+qeFbSD2CONu1vUE/fIBa tOtCb17R81dEXGI1Wbj4mC/J61Vjo4RhrShuf1ekTB2/Ycx3VOaXyKIVe4eU+IyVUdA5nY fCGBDq7syK4gk0yi3mjLiQB53KDzGiXvNhOXyjaF3/0YJtuxsmpRAP0cD5WEqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731114647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pDqJ1y8Et6j9Jd4/zzsDKcC3SRrHt1aewCPuXrokoHk=; b=gprrOpisRUSkE2EIM5mgbr/j4exO6dkMrAKOEPq0EI7nXrbvETJDm17skhjWX2Oi6wQ5Sq q483lxzpJP4VcjXxaSahgzaijiNwMc9HROXoILmHAaA+oUdCjLjVcyZwMdywrCCRvCFucX l/vwZD+sNOJTav8RcDEyv6PND2dXupSUcCmhp76Uvx9CD9G3L+IJjzifRI9+iNF9iUhXVE q3pLnHGwe8/BJBy26/9otLZ0F87DrBJmhXhUn1xnRtJ7kk0wCFG3gV5/7P0YJvPHfr4ZGl QcEDaCdvGuQliWJegr1pkdaK2Tn7pnfRVGRuNNrs2oapRxlA0PEACBt4jmEBxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731114647; a=rsa-sha256; cv=none; b=VWQGYe1jUdlZXVso3QRA9HxVth9rCpSSXeVmz2qp5OeY9LfyAimvp95uasmBBXGVSFh3ng AP4Se1Kwn4pVesGhns9LCzVAg18pleuhOhY1H02+0Y7/Tbxj1mSriguSDg1Q/bY9xvcCI+ XaK5axo09tJOx7tz772Hn8g37Qo+r9HIRU6WLxaxiDgnZ39yebmLuHuhtniq3xjFObKUX+ BwFd6YqVKTgIpRes3B/LSXswYlKTC0em0wKMOyCJJGTxvQdoA2qRZXwfIGtpgb3sqoHUE7 sG9wkUOlmV+i2WIjwW52oOHgr52MXnRv7vKOy9AhBEoE9dXcEPV6MSHm5qO3vQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xld6H0r4PzsMn; Sat, 9 Nov 2024 01:10:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A91AlGw007950; Sat, 9 Nov 2024 01:10:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A91Alix007947; Sat, 9 Nov 2024 01:10:47 GMT (envelope-from git) Date: Sat, 9 Nov 2024 01:10:47 GMT Message-Id: <202411090110.4A91Alix007947@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: da80e62f965c - stable/14 - linker: Make linker.h more self-contained List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: da80e62f965c56d4f3d2b91be2b33960ada46854 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=da80e62f965c56d4f3d2b91be2b33960ada46854 commit da80e62f965c56d4f3d2b91be2b33960ada46854 Author: Mark Johnston AuthorDate: 2024-10-26 14:05:56 +0000 Commit: Mark Johnston 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 + #ifdef _KERNEL #include