From nobody Mon Apr 15 20:41:56 2024 X-Original-To: dev-commits-src-main@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 4VJJxd1WDCz5H3M4; Mon, 15 Apr 2024 20:41:57 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VJJxc65xyz4Ybq; Mon, 15 Apr 2024 20:41:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713213716; 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=vj7H+L0B1Iaulgj1eLCuIS32A8ad44OJ4eZFvntHCMw=; b=apm+jBhqBONOzmOAtBhYyLKjE789o/UgfxbE88GfjKrXxEQ6jdC+UB8LnD9FE2KqPSGFXI 94CzA8VqxCM99ReVzAg41rRYIvpaNwBrHHFdK6S1enanye5p0juZ7WVMBJMSjyZUR+IAz7 7R2e6XCg2+fJwMKmdsqF9doxwZIYFBdAKMO0VidnHtbOYBU5sF/AVAVbNXuz/7eiVaLnAy 4PgscDb8sGJOv5PwfvsCWe3Ox7buR74EiC3XAQhEF6nSHoUM6Xf0HQesq75GrXEVgghSEJ nWvBKB9p2ROhKrnryc2Ee8tw3EdsWCfPb4SX3xrzupGZHI1FN754sNBfiDmF9A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713213716; a=rsa-sha256; cv=none; b=p3QpAVm7RclkUNyQ6d1hFVLVmENJLyXnbKz2JRXiETF2gngn/ffGpIDDBLfY0Q/ZWfLQ+W LdE701EAZESbXJfDLwOccgTNSZQb/hyaExRGKLH0VNnRQFT0r72MzyvvLHyWtVOt7n0J34 jhDvS9eUZTjfuu7VBF24+f9KgzjkiYegX5C6SsMEq8+HlTB0uFpTuByhwkhcPvEwtvU0D8 wyqbIGyK7/EWijtIDN4aA+0BvYtfro1cywiQ+ahcQ3VkwRDf5P9WiQvYyJvuUY02sRCXxd g7XzwiOOWgJG3l9T+pECy7Izdv0yKEiGcj513VugE9lt1MYJOMiZnB4mx9ACBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713213716; 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=vj7H+L0B1Iaulgj1eLCuIS32A8ad44OJ4eZFvntHCMw=; b=YOEpCnm+AwtIR8+39sbgP8T86Kc/P+LWGQBw/ifTBgFrncNIVYINzIjsOCFbJje1H0480f DxoUd5w9fVHT7PsWdDtTmBd3VwSaFgJ9gaJHB0vlybNBFjm3pGQhTmPYUL5nEAxMVyc6pw HnuLUpD/97NzaHzfhbcPjJ0/5bxJBjwzmwjEQhN7rvjPBYVimd52Sb7/z27eetAfSLkV1Z ceuliy8z1DfH84Op89EKXez6xc+kj4lh/c6jTvb+jauJXWGNGeaLvcVHuc12hzSJkyX2dd ATPlrK6cyYQiuDFMruq+8tyqjyfNruQm2AlPESjjyT1QUppBeTSer9dI9fEKwA== 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 4VJJxc5RDvzDll; Mon, 15 Apr 2024 20:41:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 43FKfuNN043600; Mon, 15 Apr 2024 20:41:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43FKfuX6043597; Mon, 15 Apr 2024 20:41:56 GMT (envelope-from git) Date: Mon, 15 Apr 2024 20:41:56 GMT Message-Id: <202404152041.43FKfuX6043597@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 6bb132ba1e4e - main - Reduce reliance on sys/sysproto.h pollution List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6bb132ba1e4e28cf1e713c8dcd77f2e8af7bde88 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=6bb132ba1e4e28cf1e713c8dcd77f2e8af7bde88 commit 6bb132ba1e4e28cf1e713c8dcd77f2e8af7bde88 Author: Brooks Davis AuthorDate: 2024-04-15 16:53:05 +0000 Commit: Brooks Davis CommitDate: 2024-04-15 20:35:40 +0000 Reduce reliance on sys/sysproto.h pollution Add sys/errno.h, sys/malloc.h, sys/queue.h, and vm/uma.h as needed. sys/sysproto.h currently includes sys/acl.h which currently includes sys/param.h, sys/queue.h, and vm/uma.h which in turn bring in sys/errno.h sys/malloc.h. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44465 --- sbin/restore/tape.c | 1 + sys/amd64/sgx/sgx_linux.c | 1 + sys/compat/linux/linux_mmap.c | 1 + sys/compat/linux/linux_util.h | 1 + sys/dev/nvme/nvme_test.c | 1 + sys/fs/autofs/autofs.h | 2 ++ sys/fs/tmpfs/tmpfs_subr.c | 1 + sys/kern/kern_environment.c | 2 ++ sys/kern/kern_membarrier.c | 1 + sys/kern/kern_procctl.c | 1 + sys/kern/kern_prot.c | 2 ++ sys/kern/kern_rctl.c | 2 ++ sys/kern/kern_time.c | 1 + sys/kern/kern_umtx.c | 1 + sys/kern/kern_uuid.c | 1 + sys/sys/namei.h | 2 ++ 16 files changed, 21 insertions(+) diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 4c5d828027a5..5b7cde10c670 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/amd64/sgx/sgx_linux.c b/sys/amd64/sgx/sgx_linux.c index 55c5f7386d0c..6ecef9207a38 100644 --- a/sys/amd64/sgx/sgx_linux.c +++ b/sys/amd64/sgx/sgx_linux.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/compat/linux/linux_mmap.c b/sys/compat/linux/linux_mmap.c index 223ff1733acb..a8e790a29da4 100644 --- a/sys/compat/linux/linux_mmap.c +++ b/sys/compat/linux/linux_mmap.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h index e651eb391452..58f7c533d647 100644 --- a/sys/compat/linux/linux_util.h +++ b/sys/compat/linux/linux_util.h @@ -35,6 +35,7 @@ #ifndef _LINUX_UTIL_H_ #define _LINUX_UTIL_H_ +#include #include extern int linux_debug; diff --git a/sys/dev/nvme/nvme_test.c b/sys/dev/nvme/nvme_test.c index 188ad4f86f85..d19376d9ef78 100644 --- a/sys/dev/nvme/nvme_test.c +++ b/sys/dev/nvme/nvme_test.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/fs/autofs/autofs.h b/sys/fs/autofs/autofs.h index 470aeb86de8b..704da7350541 100644 --- a/sys/fs/autofs/autofs.h +++ b/sys/fs/autofs/autofs.h @@ -31,6 +31,8 @@ #ifndef AUTOFS_H #define AUTOFS_H +#include + #define VFSTOAUTOFS(mp) ((struct autofs_mount *)((mp)->mnt_data)) MALLOC_DECLARE(M_AUTOFS); diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index c8961a819e7b..9bdcc4575511 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -64,6 +64,7 @@ #include #include #include +#include #include #include diff --git a/sys/kern/kern_environment.c b/sys/kern/kern_environment.c index c07157db9c8d..0cb0f566a839 100644 --- a/sys/kern/kern_environment.c +++ b/sys/kern/kern_environment.c @@ -54,6 +54,8 @@ #include +#include + static char *_getenv_dynamic_locked(const char *name, int *idx); static char *_getenv_dynamic(const char *name, int *idx); diff --git a/sys/kern/kern_membarrier.c b/sys/kern/kern_membarrier.c index 9d101b955804..f0660bd7360e 100644 --- a/sys/kern/kern_membarrier.c +++ b/sys/kern/kern_membarrier.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/kern/kern_procctl.c b/sys/kern/kern_procctl.c index 150a8612c2f8..2c8c638a2956 100644 --- a/sys/kern/kern_procctl.c +++ b/sys/kern/kern_procctl.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index be8e0b14add2..40cfa236a07d 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -72,6 +72,8 @@ #include #include +#include + #ifdef REGRESSION FEATURE(regression, "Kernel support for interfaces necessary for regression testing (SECURITY RISK!)"); diff --git a/sys/kern/kern_rctl.c b/sys/kern/kern_rctl.c index 2e5051de05bc..4232c71f86fb 100644 --- a/sys/kern/kern_rctl.c +++ b/sys/kern/kern_rctl.c @@ -39,6 +39,7 @@ #include #include #include +#include #include #include #include @@ -2205,6 +2206,7 @@ rctl_init(void) #else /* !RCTL */ #include +#include #include int diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index 885804bacf71..c94ae49b6923 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -58,6 +58,7 @@ #include #include +#include #define MAX_CLOCKS (CLOCK_MONOTONIC+1) #define CPUCLOCK_BIT 0x80000000 diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c index 092fcade9d19..e6d5e2de5e88 100644 --- a/sys/kern/kern_umtx.c +++ b/sys/kern/kern_umtx.c @@ -67,6 +67,7 @@ #include #include #include +#include #include #include diff --git a/sys/kern/kern_uuid.c b/sys/kern/kern_uuid.c index 0e7e894664fe..fb27f7bbf736 100644 --- a/sys/kern/kern_uuid.c +++ b/sys/kern/kern_uuid.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include diff --git a/sys/sys/namei.h b/sys/sys/namei.h index cb69fc96b112..08395c6d699f 100644 --- a/sys/sys/namei.h +++ b/sys/sys/namei.h @@ -38,6 +38,8 @@ #include #include +#include + enum nameiop { LOOKUP, CREATE, DELETE, RENAME }; struct componentname {