From nobody Sat Oct 26 14:36:35 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 4XbMfW4VnYz5ZpTD; Sat, 26 Oct 2024 14:36:35 +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 4XbMfW3hRYz4RF4; Sat, 26 Oct 2024 14:36:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729953395; 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=bM8PIlXQexppXbYiOgEG2CywS8ac9aNr8CKjNTXybO8=; b=ihlvVCV7t/9i/DZfVIHMPF38BTJKoTKxHZZltAmF3JkC5lOX/aPSuAlRudn2072UC9ZNhU rPXwY1W7d3AnldC0D5m/k55oqkRRpx3Z1ze8YCfaXUjY9/2qb8P9qVdPRNgLrKclnavXeb rwuMDCVf3w/tMxxzWKo3Sw1g49qcPPMY3QIJtjC7xUNh99+saYOeKiFEbKT3y/pu3m/jxG ugojxSUA8MGwy/uwz/7N//2htU5+Uh0SQChraj/BjiBYBfjhredOubMhAorZXGeGqNIMc1 JzeqWn5tVeg8g4+HJc4WIJsbncmzHpmMb7RIt35a1tA08krE1rCblg4sVs34fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729953395; 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=bM8PIlXQexppXbYiOgEG2CywS8ac9aNr8CKjNTXybO8=; b=IqPjFxqN+8HPh3+3Tl13l5D9Apy/5MEZkiogHynKFoskx3/0fXD/tnzGSbz+zkBPqJGbas GWoSDd9olf9p2uyORVQyTb1rXeNyalyvbnsfe8icimbnjtWJpna1+NCcVLHVGHFwtlbgy7 KGkLe3huOXUVmSM7hLf5ThKYKHPW9JVPmTeh1aEK5/2diC7M2Ibttz5FmVq6XB+/4X+kDk IOWEiWYCoBn83+56XAP1zWKD4LMumGQJB4ojeZAXVvcKyZ7ATJfshwPf1gxn41vf71H4qF NCb6pci7/3zhh45cK+/e1FE3CnSeGL33P7R4ELNW+CUozkb7E8MnWKASB8lMrQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729953395; a=rsa-sha256; cv=none; b=MSFTIZpgZIRVFdyi4BhtEArB9JLiui/v/ysoocj5Gp+PZw4fQyPqhHLW++MEkAz8PLwmXb 25/VG9EQEt9C2N8+wkZJPqUNPC7k9jobvEJPPi/KoOnhwx06aNAsd15iE5gsuP/lB9zoo0 FcXJb1RZhsWTdRYklGigbRj/9kaJ4tkHM4+bjHJfvGgGOFDgwpMIpJI+SxKyYvO/S6xCYZ hdgmk8h4BAfaoWTQAR5X3hAIYRoelDMSbNHy6DU8xio5y6avxTL4RqOGzPloNQhmBLnDXJ ctmriL5xIAA8OrKccoXnQ8xj3plsEntAkIbqMteHsLsCyuNu2phY5rVU6kcZVA== 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 4XbMfW311hzDyT; Sat, 26 Oct 2024 14:36:35 +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 49QEaZ0H047439; Sat, 26 Oct 2024 14:36:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49QEaZt4047436; Sat, 26 Oct 2024 14:36:35 GMT (envelope-from git) Date: Sat, 26 Oct 2024 14:36:35 GMT Message-Id: <202410261436.49QEaZt4047436@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: f44029e32244 - main - 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/main X-Git-Reftype: branch X-Git-Commit: f44029e322446469f116bbd26d51ba857083bacb Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f44029e322446469f116bbd26d51ba857083bacb commit f44029e322446469f116bbd26d51ba857083bacb Author: Mark Johnston AuthorDate: 2024-10-26 14:05:56 +0000 Commit: Mark Johnston CommitDate: 2024-10-26 14:05:56 +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 --- 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