From nobody Tue Sep 27 02:21:40 2022 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 4Mc3KJ56JKz4ctdP; Tue, 27 Sep 2022 02:21:40 +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 4Mc3KJ4gZ2z3LtL; Tue, 27 Sep 2022 02:21:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664245300; 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=xqt+zRupbye5aQYS2Z9WfoM/dRUCc99Nxt64eBppjbQ=; b=qPSgzEWVmJ8jQP/yZTJfMIcxq1gtrS0Q50tZDFiuwAtcmfC3Xkzt9q+sFWOWRmkI1CJ43S ShAbaCCNqELot/Sqe7Tk8e5A7/sqn0vnGPOuyIKjkH+PcHlDZQk8JfqQu6KM78Mh06hnc4 GplJONZge4CFQgom3QibzWPjOOqCS74wGLIBgUADNpmsOsJ9Sq38ZsK7uWSyUsiuX2TeFE jJ8xffqQgbDuH4SQyKodA2gwTyx802VxF1i2wUuTsCCAyPxYIk34dd765f21newRpYb4Jw ks+2uyHagk8kytmpSanUDy2XhkXEd4870RYvuwQM/H3J8b7ReNuxecq7duaykw== 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 4Mc3KJ3mRqzyK8; Tue, 27 Sep 2022 02:21:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28R2LeLZ057470; Tue, 27 Sep 2022 02:21:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28R2LeOS057469; Tue, 27 Sep 2022 02:21:40 GMT (envelope-from git) Date: Tue, 27 Sep 2022 02:21:40 GMT Message-Id: <202209270221.28R2LeOS057469@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Alan Somers Subject: git: 6622e299ac73 - main - Fix the build with SCHED_STATS after d3f96f661050 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6622e299ac738ccef2eebfa7cc95a25b0314f5d5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664245300; 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=xqt+zRupbye5aQYS2Z9WfoM/dRUCc99Nxt64eBppjbQ=; b=e+0DwkJwSVOds5x2p61DcA+L/6Qqp0MgWDI6O3+vIor7j3CGsYP5UqzndrkHPEQx9fgEvc N1cC2PB4HiFUsKEtaDYPqPne1K5e1RufAJWISLYofAE5TuvqsvGO3Na7Ox7dhGGW9LuawY yOdmfVHzlJ2LaQlcEOBgh5PDgvDYTi5miesg4AR4w68s7Pc1V8PxV0GIUIW/VVCDXurlwL z8KuKqeayhFrgqzNeUXffLaeveBsrlIfkbr4yIX14H+tk4zeTxlj/l2IhXjSHtI/zbfIQT rb6ayTgA0FX02yv2wQMwu0yl4g1Nz4mDKwDemTMxnKp2hlRzZtMLUmhuPsSnFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664245300; a=rsa-sha256; cv=none; b=xYHmacqfe8Pvwn3tj1j8m4DxwrJzY7zNeNP7xHJnpu8U8cWo6e0dfPHZzUf7Ovvf4dDALa XdiOKylSvdi9DpFs+kUWbSJwVeMLDZ3wJphrMWGGw+RYRo4wfLsRfImuuODc3/WpZiDucb Xfc19/TaceJJ0ttx3NyUQwpMRkD4KBwfHZtHzxdHfWJXMWlUmzgpXxyLrqoqNmcviC/Z1g Aica0iWC/CG9+cXZjiRrHRz/gfpJY6/Lp7tFMqoXXHVkg6qR4SATv5b6V54GCvffFqk/N3 KMLHCh7hmsn6E4pDs0fPGeC0YN6gnk4mUxegVc+J3MKm6wNamGwZKTIlkqI9eA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=6622e299ac738ccef2eebfa7cc95a25b0314f5d5 commit 6622e299ac738ccef2eebfa7cc95a25b0314f5d5 Author: Alan Somers AuthorDate: 2022-09-27 02:20:46 +0000 Commit: Alan Somers CommitDate: 2022-09-27 02:20:46 +0000 Fix the build with SCHED_STATS after d3f96f661050 MFC with: d3f96f661050e9bd21fe29931992a8b9e67ff189 Sponsored by: Axcient --- sys/kern/kern_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index aec3b3d10e04..9d48ab188e13 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -131,7 +131,7 @@ sysctl_stats_reset(SYSCTL_HANDLER_ARGS) * Traverse the list of children of _kern_sched_stats and reset each * to 0. Skip the reset entry. */ - SLIST_FOREACH(p, oidp->oid_parent, oid_link) { + RB_FOREACH(p, sysctl_oid_list, oidp->oid_parent) { if (p == oidp || p->oid_arg1 == NULL) continue; counter = (uintptr_t)p->oid_arg1;