From nobody Mon Jun 23 09:10:33 2025 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 4bQj3Y6n8Qz605df; Mon, 23 Jun 2025 09:10:33 +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 4bQj3Y5yN4z3ZFx; Mon, 23 Jun 2025 09:10:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750669833; 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=irbnl0wrVJWa03j0+1im0QJ0PP0eipXisbBZOqFDRLA=; b=WiMCn/vRrOWUljvp6c0dnv+M/KIBGEPxMfpK2az3CGj5SkZ1OFy7ofok8Bju13PHwHoflb mzTGYrQcPtiSVuoMKEMDLGmIZ8YlWydQ6JtpCar6j1j0vmGFeolZ7AgsX52F0Yr0YTjxeS 85xbVv5LO6V2AwGycbf3rO+0kWo3lt1KDJpmABA4iHW2WrLu7G8C3z9gaCdcis0+KfrTL7 ESTO7HB4OQVaptNqbzsUmANVcaTDBk8OtXH4R0DdwDL+wSMMdDiD/HI/tTLlsj0gX3AZhl Co8+6Y8LgxmBDiMKw6PH5TIaWU2YLy2lS7gjXWLI1xKrQbaOzXSLv1UGuE27MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750669833; 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=irbnl0wrVJWa03j0+1im0QJ0PP0eipXisbBZOqFDRLA=; b=MJbNjSbx3o/SiqPBBPlVepRBtH8AC3btbyuI378Ehr36cwyl9TSXicLUyvNjvZ9j73HKKu 5oMkL5C70eRxawwvh6aJ05DVDaE/u3sLNa1t0sRvh5Dbr6xl/8Yo5IVxpULxE62MrrzS4H GDT8G5OwpI74k2N/Dq9UMMrd3wldkRf/uhc/OE0upyjKQJmOfS7wFR3c4QLkaPUIMemAko VCdIOCvECzR92aoGyC4fDXkS4KvpyCNRB+qjOWI10Fr1TYUBVrNTOq0Ooypb4q5SwHP6wA XLVIVAf8o64Do0VE2U71IiYycZ8ZCynIyC/2P5J3OWR7rWoLcvCSZlEKJ3DNMw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750669833; a=rsa-sha256; cv=none; b=IdSiEgKnHfOap/Kzf4lpi4cpYHjOB2o1J3VG0kQvXAoK5JsyKUd/DcXwtrODqexmuELjm2 thWLuQn8Etjcw+HtCQupalVChbvr/f/xpOLZhI1+SoIRqOyImlaOFX3WO4iQ9i2fBAurNb lnVDuQb9JzqlGKqrulqSskg6GeqaHXMlEj3NLSsHM8eNNAw0wma7/x4yYEm2OV4YFtJSKd m9umlfQtRPyZmZuSin1Htukkgb9XFGIDW4M8VTgZBLkeZavvtp/rsHdsr4O2tjMp10a4Ia kpowQQTpL/Y/jQ6CRkirbjrJNV1Ggs9ENCa7nvKr0XIluiBNWTMnTcw/XkPlkw== 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 4bQj3Y5W3Czwv5; Mon, 23 Jun 2025 09:10:33 +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 55N9AXrq030951; Mon, 23 Jun 2025 09:10:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55N9AXL3030948; Mon, 23 Jun 2025 09:10:33 GMT (envelope-from git) Date: Mon, 23 Jun 2025 09:10:33 GMT Message-Id: <202506230910.55N9AXL3030948@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Brooks Davis Subject: git: 6ff6a0b58981 - stable/14 - Don't rely on sys/_types.h including sys/cdefs.h 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: brooks X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 6ff6a0b589810f41cea06fbcdf21c5b0dd72e602 Auto-Submitted: auto-generated The branch stable/14 has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=6ff6a0b589810f41cea06fbcdf21c5b0dd72e602 commit 6ff6a0b589810f41cea06fbcdf21c5b0dd72e602 Author: Brooks Davis AuthorDate: 2025-06-11 16:39:01 +0000 Commit: Brooks Davis CommitDate: 2025-06-23 08:55:36 +0000 Don't rely on sys/_types.h including sys/cdefs.h These headers relied in __BEGIN_DECS/__END_DECLS being defined when sys/_types.h was included, but there's not a requirement that this be the case. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595 (cherry picked from commit b01e971fd39d10273a387788019457792873e81c) (cherry picked from commit 4f4c465b45d42ed8d2b65c8b4c909246987ac877) (cherry picked from commit 12913e4ddf710e517f3ae00b7b420b783cca9b37) --- contrib/libexecinfo/execinfo.h | 2 ++ include/dlfcn.h | 1 + lib/msun/aarch64/fenv.h | 1 + lib/msun/arm/fenv.h | 1 + lib/msun/riscv/fenv.h | 1 + lib/msun/src/math.h | 1 + sys/arm/include/sysarch.h | 2 ++ sys/arm64/include/sysarch.h | 2 ++ sys/sys/procdesc.h | 1 + 9 files changed, 12 insertions(+) diff --git a/contrib/libexecinfo/execinfo.h b/contrib/libexecinfo/execinfo.h index 22460967e83c..8a3c36b2da21 100644 --- a/contrib/libexecinfo/execinfo.h +++ b/contrib/libexecinfo/execinfo.h @@ -32,6 +32,8 @@ #ifndef _EXECINFO_H_ #define _EXECINFO_H_ +#include + #include __BEGIN_DECLS diff --git a/include/dlfcn.h b/include/dlfcn.h index 89ec43b332e9..9a4ac0faf786 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -32,6 +32,7 @@ #ifndef _DLFCN_H_ #define _DLFCN_H_ +#include #include /* diff --git a/lib/msun/aarch64/fenv.h b/lib/msun/aarch64/fenv.h index 2148a68b053b..a435a9de5223 100644 --- a/lib/msun/aarch64/fenv.h +++ b/lib/msun/aarch64/fenv.h @@ -31,6 +31,7 @@ #ifndef _FENV_H_ #define _FENV_H_ +#include #include #ifndef __fenv_static diff --git a/lib/msun/arm/fenv.h b/lib/msun/arm/fenv.h index 5dded5d744fd..e8a30fcf496f 100644 --- a/lib/msun/arm/fenv.h +++ b/lib/msun/arm/fenv.h @@ -29,6 +29,7 @@ #ifndef _FENV_H_ #define _FENV_H_ +#include #include #ifndef __fenv_static diff --git a/lib/msun/riscv/fenv.h b/lib/msun/riscv/fenv.h index 36abb7b00b7d..62bdf65b70d1 100644 --- a/lib/msun/riscv/fenv.h +++ b/lib/msun/riscv/fenv.h @@ -36,6 +36,7 @@ #ifndef _FENV_H_ #define _FENV_H_ +#include #include #ifndef __fenv_static diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 405434752336..8e72beb757f8 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -16,6 +16,7 @@ #ifndef _MATH_H_ #define _MATH_H_ +#include #include #include diff --git a/sys/arm/include/sysarch.h b/sys/arm/include/sysarch.h index 907a84f39e58..e0a8e0039b99 100644 --- a/sys/arm/include/sysarch.h +++ b/sys/arm/include/sysarch.h @@ -38,6 +38,8 @@ #ifndef _ARM_SYSARCH_H_ #define _ARM_SYSARCH_H_ +#include + #include #ifndef LOCORE diff --git a/sys/arm64/include/sysarch.h b/sys/arm64/include/sysarch.h index f72d3427602e..d5d58000309e 100644 --- a/sys/arm64/include/sysarch.h +++ b/sys/arm64/include/sysarch.h @@ -39,6 +39,8 @@ #ifndef _MACHINE_SYSARCH_H_ #define _MACHINE_SYSARCH_H_ +#include + #define ARM64_GET_SVE_VL 0x200 /* Reserved ARM64_SET_SVE_VL 0x201 */ diff --git a/sys/sys/procdesc.h b/sys/sys/procdesc.h index 4e8b06fb7377..81102dffa6ff 100644 --- a/sys/sys/procdesc.h +++ b/sys/sys/procdesc.h @@ -108,6 +108,7 @@ int procdesc_falloc(struct thread *, struct file **, int *, int, #else /* !_KERNEL */ +#include #include #ifndef _PID_T_DECLARED