From nobody Wed Oct 05 09:26:49 2022 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 4Mj8N94nLpz4dnxg; Wed, 5 Oct 2022 09:26:49 +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 4Mj8N93rwPz47tY; Wed, 5 Oct 2022 09:26:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664962009; 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=5geD1KI5cHGhDjPhbOxWAQdZTuz+OzIZCs4Rry0tLdQ=; b=Q1SzVuLwosJ5PKvXv4NVgbqec7i6fff8dS1cI6jl3I2enti38XzpREESH0OhnP1gojlg0F PtDmtvoUeOQgPHs9w+jM0Idwbz8yeuYK9CZpjQxq0oYqJmT15LDl6JjwdBrCCli66O0YjC d//3S7e/7mp0SoJZgCXLeMnWQ0Lv1YJYS20hJ/o2R4VzTanPB9PrNvd0lE01YFQiLrCYKd vkjLkMCZz1u5wzwEelOAdpk/Fp1eFxsS4FxOoNQ9dN+M3mYqTVniUhb7eperZntu9CiCAJ eDJsPgbMc9peL/0lwS7dHmg0eA9fz25jR7uSfumB8b4Dw2fO2rK+CdjMKm+lrQ== 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 4Mj8N92wwVzrn5; Wed, 5 Oct 2022 09:26:49 +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 2959Qnvm018353; Wed, 5 Oct 2022 09:26:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2959Qn1r018352; Wed, 5 Oct 2022 09:26:49 GMT (envelope-from git) Date: Wed, 5 Oct 2022 09:26:49 GMT Message-Id: <202210050926.2959Qn1r018352@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: e0853c933661 - main - Use SYSCTL_FOREACH in drm2 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e0853c9336616e4ca4ff41aab0f8ad91bb75fd42 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664962009; 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=5geD1KI5cHGhDjPhbOxWAQdZTuz+OzIZCs4Rry0tLdQ=; b=B4UWiIQPncamUBuw41qKKCRpSFsy2dENYdfLnvbm2yIf4yxd+/QiNm8Sas7m1ImcnrJbQn ooXECBshfWGcEV6alS4tI9kacB1z0ZKpoWHd1WrfJ7BEe9Nk6vW1NmcB/mejYt13XpkSyG bCuKaBs97h2PkYTWMuLLUA6DHjjmHGkMWTBY82H3zsvUTIDOm8whc7bJKcNNxD59ND5GhL j9FF3SkNH+PDbepx3b6dm0Z4etJygBbEl4dW6QiLRznbx7c8rCktK4tuEex0TaCwL3QR3U OZu1s3lvxLzXKMWZoeB2/sNiDUWT9y9C2hiuK+8eBUy1mK+AgfgjkaYbsP4oTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664962009; a=rsa-sha256; cv=none; b=Pd9fifM6ccxSnlhnJ1E8LjEw/6wuOiSlP6P3pPfvorqdJa4vzcjvVfWt+XRW89sRtIP8Ql nZr+gv3bMOTTpTa0EyI3ptjP/AoZgdmQTIXg1CeqsCssEFF48OlXfXGJCZZeKl1g9HauQx CkDo5lt+SwIZhrY+bct4/PvJD4NYCDuH7Ota+swFcs0VBl1RyQQWJFLVgL+9mNEr3H67BI p0WefdCFtMhOwYSDHJjEh/V00BsYM7tJ0MB1NJfaTjpKCWgCXq5wdr/BFGQrMSHex2HEMB cLeyYynZh0OUnxT6NVoHrDBTxzsdWHYqmR9GjuwMk2xXxwY6zgQU26fyJ7S1fw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=e0853c9336616e4ca4ff41aab0f8ad91bb75fd42 commit e0853c9336616e4ca4ff41aab0f8ad91bb75fd42 Author: Andrew Turner AuthorDate: 2022-10-05 09:24:13 +0000 Commit: Andrew Turner CommitDate: 2022-10-05 09:26:36 +0000 Use SYSCTL_FOREACH in drm2 This was added recently. Use it to get the correct _FOREACH macro. Sponsored by: The FreeBSD Foundation --- sys/dev/drm2/drm_sysctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/drm2/drm_sysctl.c b/sys/dev/drm2/drm_sysctl.c index 6b1f2e7e6e3f..2879f2df1220 100644 --- a/sys/dev/drm2/drm_sysctl.c +++ b/sys/dev/drm2/drm_sysctl.c @@ -78,7 +78,7 @@ int drm_sysctl_init(struct drm_device *dev) /* Find the next free slot under hw.dri */ i = 0; - SLIST_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) { + SYSCTL_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) { if (i <= oid->oid_arg2) i = oid->oid_arg2 + 1; }