From nobody Mon Apr 15 20:42:01 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 4VJJxj3dBtz5H3Gl; Mon, 15 Apr 2024 20:42:01 +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 4VJJxj2dFxz4Z0W; Mon, 15 Apr 2024 20:42:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713213721; 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=UdScJaltJiYnT84/jmEmGpOSuRwkRSHW0y8xRVBqMVA=; b=KZdvn1lbwOTIchlCslhks0xbabp0/ScD5FDwuSDL337Q4TCAfeVx89/O+oD0hPDqqkwSfL XuINrBCfSFmreyxEVvE+wthldpOG4gu/V61V5knyaurrFOfXp+ykNe25a782EvG1UzLLXi MIiSDc09sOx9So0EraFYvV+tSRLn2MnXQz1nnf03xBOmFgHFRSbJDpUON/R7zWOva79Bk/ eXGeZePEa8GdKAxiQmTbBPKn1W3gIkJHfQ48tuYcN3FdMx8S4uau/MRS5WKh+ko06XZ0V2 atK1O1DwIlvE2qoOFEqOLOlEN8cMz7pfqSitlHYfrGgAV4YRSpTjbrCP+mkeqA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713213721; a=rsa-sha256; cv=none; b=xM1U9jox2CXWQp1xp4ct72k4aBhO+MbHBQXpaWEwvYWips8QPnJAIpSflPaoc5Wwz+pq6g 5PnliyhpEdvoKT12Nj+EHIYDZW2RjjkngIcsXkUCL1WZGqhOSWO9CleLSeDPQ4WINvikcf J5P1Ub876fnJ38KZwVE+WtgN//wb7blvaBL88HPqM2VKvVZGee94XjjG9qSiy73jZVN0r7 jZVvt/pi9snDbg1VL1cpIEqMED+OfYPaw9t7MIIsOsxBcS4kZ6AXDARAf6SgYAZRoxefKR 16cU3AKSBz03TTGe3x2xGhDIzw4u/SzFx41faAAI/dRnqXbIvq/D7EPipUXC5A== 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=1713213721; 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=UdScJaltJiYnT84/jmEmGpOSuRwkRSHW0y8xRVBqMVA=; b=fMPKFDmVfMJ4m1Q8526SXwDmXfWa25PGPxcjmQmCa6svvL5x8LtHwWRayanE1bVyobFLWK 4yscPO2Olig+zW958KIGpdWnTAZxv5THC+ksL4lJkSyarOGXGmxU6dx9If8KPX2vSk9FGP EVFwqgr+W5m4v6JILXnlMBYLvmXybDnoYSH2pL+konDIbxjDwiDlB6AhwK9lC8lI6b6G5+ tNWTw1o02yYBRl2sf6SW4tKKqmGhS6j/5bBjGpLJHgajsrFOL3waCFkKS/LF56zI72qdiK FKM9Q+fRp1OODr/wlOtYKI8QSVUkZdaSuvYAKMcQlmbFrGcDLY0UecFEMvdEhQ== 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 4VJJxj2FwtzF37; Mon, 15 Apr 2024 20:42:01 +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 43FKg1V2043777; Mon, 15 Apr 2024 20:42:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 43FKg1Lm043774; Mon, 15 Apr 2024 20:42:01 GMT (envelope-from git) Date: Mon, 15 Apr 2024 20:42:01 GMT Message-Id: <202404152042.43FKg1Lm043774@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: dcda49233de3 - main - sys/acl.h: reduce header 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: dcda49233de3efb9ed361692e118ecdf2f692339 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=dcda49233de3efb9ed361692e118ecdf2f692339 commit dcda49233de3efb9ed361692e118ecdf2f692339 Author: Brooks Davis AuthorDate: 2024-04-15 16:55:07 +0000 Commit: Brooks Davis CommitDate: 2024-04-15 20:35:41 +0000 sys/acl.h: reduce header pollution In commit d1dfd921774f0 the acl allocator was switched from malloc(9) to uma(9) and done in a way required vm/uma.h and prerequisites. This added considerable header pollution to sys/sysproto.h. The uma details were hidden in commit b998d381f2868, but the header pollution remained. Add less broad includes as required to keep the header self contained. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44468 --- sys/sys/acl.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/sys/acl.h b/sys/sys/acl.h index 66517cff543e..c119cfabef32 100644 --- a/sys/sys/acl.h +++ b/sys/sys/acl.h @@ -36,9 +36,11 @@ #ifndef _SYS_ACL_H_ #define _SYS_ACL_H_ -#include -#include -#include +#include +#include +#ifdef _KERNEL +#include +#endif /* * POSIX.1e and NFSv4 ACL types and related constants.