From nobody Mon Jul 28 13:31:31 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 4brKBX0b4Lz634lh; Mon, 28 Jul 2025 13:31:32 +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 4brKBW5S8Xz3vBH; Mon, 28 Jul 2025 13:31:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753709491; 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=FoLDJhHREjb+0TxgGUeXwb2V0CNSS2vQPMIZT2KLwaQ=; b=Ig4YCUxt1/AXakokOTjQNLSnVayuVM08qCBbY6DBRDoH4LSgIlhfBrKouw5AFNT4kE+D8V CgXsrJQxRahaDQsqjCFMoPwjA9Y3jKqczA5P17i6dcR2ZcOY2c/0ipef3+wjz4RlyAGlXa bCBdoEV6J3ZhOp7vjYEdKPxTD38Lbtzxh/GYbmvDA2RRQ3XENZbbcEQWNlFbH8aXCBUlfb n5SPA7SVYSjLggREVipb4yGwpd94OCjdZxnbjZk89q9NxzvwuBzVvJquH1h14wKYkXARh3 KIk9EpdJvQNhdjTZWwPS3QS+7zAFHboQYhFo4PYmCKezj1CPTf+KObfzXBXJMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1753709491; 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=FoLDJhHREjb+0TxgGUeXwb2V0CNSS2vQPMIZT2KLwaQ=; b=s67Fer9KvkBPRTUBawM0yr35CNe25HLvy/XTv+5oAx4kflX8vAppoHdTCd5zy4Ymg8qaLO 1fG3Qiq97A91IF0d0F31jQViY4HSVnz1sn9XJR1ZIryL+DbH9I4AVP6JgWeLqawEj/AV6y 28gGzSTqjf5t47Dc2SxYGTSZvORlzQijVC43ccb/LEz7D3XPzp/C4vlOTYG3lfLjAKjzUY JO0HooBztlBMK1IPOOHWGOZHE9GI32cCA2uYjKj1X1zL8rDXV0+XSIpkRsWa8+1FhyQXFA 4gYDGQWsEdw791No8h28fnVdt8DULV7M7n4xVCrII2ntrGZLp2coBUnccsPeXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1753709491; a=rsa-sha256; cv=none; b=Iq8y8g8KtcHfDVdhjZ8E0XGi+x2uIkXoWS95Q4sPLo2AgrkfF8/DuVYEeCBYb7TmCqQuqz 3huFDpTQsOSNiQzwzDwM9iL/iOV1rSQvlq2XXaiRUpw0NjwWmw/z2P0F+rlOc5cezCsHH6 YDrTmXHbRVbh4+HKvgfCpItpyskS+X7ZjORh7HPld/fuErMo/CBsHtq9+lhUVUBfGlFtOj Yw0v4Kq5cXMe8++Y1U4NKCagNACBVoNSDKeB7t1UsPOtJ4kbkYYG387JEDnX7IkO0I6oOz d4RwHZBHwCmAIoX0e2A9cle5zCm0uTke8MmyxFNzj5qYJ+a3TO/E1YTqaisy1A== 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 4brKBW4kjwznfw; Mon, 28 Jul 2025 13:31:31 +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 56SDVVeo081832; Mon, 28 Jul 2025 13:31:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 56SDVVHe081829; Mon, 28 Jul 2025 13:31:31 GMT (envelope-from git) Date: Mon, 28 Jul 2025 13:31:31 GMT Message-Id: <202507281331.56SDVVHe081829@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Olivier Certner Subject: git: 2a9e7fd346f6 - stable/14 - runq: Restrict to kernel only 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2a9e7fd346f669338a23b438a723f5d604957173 Auto-Submitted: auto-generated The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=2a9e7fd346f669338a23b438a723f5d604957173 commit 2a9e7fd346f669338a23b438a723f5d604957173 Author: Olivier Certner AuthorDate: 2024-05-21 13:05:54 +0000 Commit: Olivier Certner CommitDate: 2025-07-28 13:28:29 +0000 runq: Restrict to kernel only MFC after: 1 month Event: Kitchener-Waterloo Hackathon 202506 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45390 (cherry picked from commit 055b5b5f850da9d8355740b7a0698fa790c4f97d) --- sys/sys/runq.h | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/sys/sys/runq.h b/sys/sys/runq.h index 590463af192c..9e209538d9c2 100644 --- a/sys/sys/runq.h +++ b/sys/sys/runq.h @@ -29,13 +29,16 @@ #ifndef _RUNQ_H_ #define _RUNQ_H_ -#include +#ifndef _KERNEL +#error "no user-serviceable parts inside" +#endif -#ifdef _KERNEL +#include /* For bool. */ +#include #include -#else -#include -#endif +#include + +struct thread; /* * Run queue parameters. @@ -69,12 +72,6 @@ typedef unsigned long rqsw_t; /* runq's status words type. */ RQSW_TO_QUEUE_IDX(word_idx, RQSW_BSF(word)) -#ifdef _KERNEL -#include /* For bool. */ -#include - -struct thread; - /* * The queue for a given index as a list of threads. */ @@ -117,6 +114,5 @@ struct thread *runq_first_thread_range(struct runq *const rq, bool runq_not_empty(struct runq *); struct thread *runq_choose(struct runq *); struct thread *runq_choose_fuzz(struct runq *, int _fuzz); -#endif /* _KERNEL */ #endif