From nobody Wed Jun 18 02:13:31 2025 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 4bMS2g59qTz5q6hB; Wed, 18 Jun 2025 02:13:31 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bMS2g3Wcjz41tr; Wed, 18 Jun 2025 02:13:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750212811; 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=1uVnvuwspypvWlIuGFLDVa756cQXxpBGCY1SJoY9nns=; b=aBFk8AocAH/nr445UTk5k9Bk8GAPP6g21gfH1qFj2sDejgJg2r1y5OqsMgJtyxaHUzl6FG B6nvPOWmE/ui+4kZsTJyDx7CtE5sU1gM2ahRFqno0dyzT0wJSGFuzheLkDWZAcSzFxyBiz UyYM8pd5L/vN3MnHyfbNydjsTT5WWrZbWvqJNpHaR6usTlQ6GWFhl/R01Pl6CJFM7DVP16 pZ54/gg1S+Zi5YtyErRb38/CeiYnWDV39Oc1H/WGLbwzjmUgnF/arVtPIzHtp/Q6/K3bBN Boni8x40S8VZEpFcwqqEyYJs1BqaEgXJ6rlqplWI7rGTaCEbUvhltqyfgcAxFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750212811; 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=1uVnvuwspypvWlIuGFLDVa756cQXxpBGCY1SJoY9nns=; b=XXQCOTvSgZVM1Ybu9IJZsuxmfYzYlNVJe9g5o0uI6kj/omH+XMCgcGsAUUoqbrPRvCjbOM DRlt/LP1p01kER1e09BRERa+vW6QLNJfCcPsxl9h46zfEO6fCt8FHk5wugWyMBGaf/sS/H xY0qSgeHwTyPnQYjwA/Ev//bFSIUTVgZzTOVXIX66mydz6jH17jFQcS0642+ywGUWGsS1I KG8+FDya/J8/IIzgUg+Zzw+IDLB+TMDUbt4qMg66eUciWFuJPXp9Bk8DEiM9BLdnxa/prq epHwMtJ8Cwslyj8yr4uUpCjG9PxY8emPeN6KygCu1xiKqfQhvNGKQbzqWZ4D+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750212811; a=rsa-sha256; cv=none; b=QOXEjdKg+ajsi24bTbzede1QX6/BJgPJKEyU2yeyLctF0utXO3A/PUbQ/Nsy92JEHCED2w SD8WrCeq97Y3FkSs6WQI6Pz9nCfODPiFm698UfQNJdnJsu6C+WprnZyq2K/UPcxtHSg/Ku aAOh2TQUaYhnIgQYSx9b2BYLsblYKWAYO0MRSlPk3OU5Hr46CU0BiyoEz6At8IACZOLlLh o++ouFM5cw0buBXWhjsf3ze27xPvS1FlaFRI1M/HS5nacTHSLdNxq5JWeNzjxJdmTO8kHy QMrY2oz/zfpLVZ56aIMqCH9f2gllM4iDSC4RRT8aYRby0gNFHhHuD03fJ1Cjkw== 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 4bMS2g32Rcz18YD; Wed, 18 Jun 2025 02:13: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 55I2DVc7024651; Wed, 18 Jun 2025 02:13:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55I2DVYl024648; Wed, 18 Jun 2025 02:13:31 GMT (envelope-from git) Date: Wed, 18 Jun 2025 02:13:31 GMT Message-Id: <202506180213.55I2DVYl024648@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 055b5b5f850d - main - runq: Restrict to kernel only 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 055b5b5f850da9d8355740b7a0698fa790c4f97d Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=055b5b5f850da9d8355740b7a0698fa790c4f97d commit 055b5b5f850da9d8355740b7a0698fa790c4f97d Author: Olivier Certner AuthorDate: 2024-05-21 13:05:54 +0000 Commit: Olivier Certner CommitDate: 2025-06-18 02:09:36 +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 --- 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