From nobody Tue May 12 20:06:07 2026 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 4gFSJw40q9z6d1n1 for ; Tue, 12 May 2026 20:06:08 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gFSJw0SqWz3ZSS for ; Tue, 12 May 2026 20:06:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1778616368; 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=yTe9hdH4duWDZNq9Icf9csEh00uyvVPAibqjpqtl4D0=; b=q7qzly9AWcJqfRwbDqIMZLLpUGrVc1mqTqr7p7s2G8GgeYXlY1QAHsWydBAMZODK44Wpo3 9bu9CVH+LELYSqCU2uXfvfSHn5ws+GUxOdpChJn9I2s3Pxirj6XomgV+rsI+Ps0qxR7Mys S2HsPwE6hEZMG4ooZdGj9TFqmiHw0gE3MaHNCIOpNCSloHZjQz0S6Eq49HEdSLQOyb+z23 w7GcA1RVjIPW8vn5CNoktD84TMFJnWhqwBEYaFzBLvFO5xTFplk3vgCSyWxUeMdq36u73J M+7E7u3PuHfAN5v+rdeIQ4sqDo5QZw3jKuc4kZcXZQPBM7lLZpvcHu6dHMjlcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1778616368; a=rsa-sha256; cv=none; b=dye4qUHri97dNp3x3zTIP44yr6bqHtUO+EPZIug1ynV2CrPFUrQMCmmIs6tvxcPeRbiVBs 1LefsDDK3RFSv5p8GSj4YQ0VEVZKn9lQkzKFOGkK0587tl/CE1uFuiDa6rVwWx/PI1+UOI kTUxaP9bcXXlt0A364WLusRtiXrzeqF6hbRa2UXLB9EulMJz9nF3z3iWmN7GzIP9WCGH6t +yd2NPk2zQlc7OgQYynEthuDx+AlguqPYQC43VkNuvIJrRciK+3unHKo+8ZkV28McMlItt zEB4vGSnz/3Oia5SAR3Sxyctj8WUi0qk0DOf4m4BZ6+9w0y1AxGXdX/XPc5JtA== 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=1778616368; 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=yTe9hdH4duWDZNq9Icf9csEh00uyvVPAibqjpqtl4D0=; b=UHbLW43Qni/TAMl87cCZmIfDEs/Hlz4wC0522XTy+RcCypITQfBxKpABzPHCg6cK+cOzh0 ZXXgtZ3qKwh7UoEaBFsL9EQ6gyk0KDoor0rD/6Adwlnlm8LawyAAAmbZ/rW4BY8ua0ZcSA 1nZGa7KnXU9Mg9qC8WcDV68unDD9z2zlmvEfPX+NaCbhuIc5Zlng6gtvIjLKHHO+VAlTKe QhsSkvev7qLayJn4TCGC3ycLvEOdj6pcKvSGbIrOQawQQ+qDcA/ibfZZ6EOV6UVhpdps1h lf8gzPanKlZHwVdqAgUO+UC6ysve8GqGmLwtoPafvQ0Zux/IZN6sWowO6qKUZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gFSJv708xz3ZN for ; Tue, 12 May 2026 20:06:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 213fe by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 12 May 2026 20:06:07 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 8b4b995effb7 - main - cpuset: Move userspace declarations out of _cpuset.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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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: 8b4b995effb7911cc13706dc309d5e03c83b9a94 Auto-Submitted: auto-generated Date: Tue, 12 May 2026 20:06:07 +0000 Message-Id: <6a03882f.213fe.54e83363@gitrepo.freebsd.org> The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=8b4b995effb7911cc13706dc309d5e03c83b9a94 commit 8b4b995effb7911cc13706dc309d5e03c83b9a94 Author: Mark Johnston AuthorDate: 2026-05-12 17:47:25 +0000 Commit: Mark Johnston CommitDate: 2026-05-12 20:05:19 +0000 cpuset: Move userspace declarations out of _cpuset.h The _*.h headers are for structure definitions and should avoid dependencies on other headers. This convention is violated by using __BEGIN_DECLS/__END_DECLS. Move the declarations to cpuset.h, I see no reason they can't be there. Reviewed by: olce, brooks, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D56856 --- sys/sys/_cpuset.h | 7 ------- sys/sys/cpuset.h | 7 ++++++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/sys/_cpuset.h b/sys/sys/_cpuset.h index b87cfb5d3f80..157192ed65ba 100644 --- a/sys/sys/_cpuset.h +++ b/sys/sys/_cpuset.h @@ -49,11 +49,4 @@ __BITSET_DEFINE(_cpuset, CPU_SETSIZE); typedef struct _cpuset cpuset_t; -#ifndef _KERNEL -__BEGIN_DECLS -cpuset_t *__cpuset_alloc(size_t set_size); -void __cpuset_free(cpuset_t *ptr); -__END_DECLS -#endif - #endif /* !_SYS__CPUSET_H_ */ diff --git a/sys/sys/cpuset.h b/sys/sys/cpuset.h index e861321586db..92c14b0de5eb 100644 --- a/sys/sys/cpuset.h +++ b/sys/sys/cpuset.h @@ -181,8 +181,13 @@ int cpusetobj_strscan(cpuset_t *, const char *); void ddb_display_cpuset(const cpuset_t *); #endif -#else +#else /* !_KERNEL */ +#include + __BEGIN_DECLS +cpuset_t *__cpuset_alloc(size_t set_size); +void __cpuset_free(cpuset_t *ptr); + int cpuset(cpusetid_t *); int cpuset_setid(cpuwhich_t, id_t, cpusetid_t); int cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);