From nobody Wed Sep 28 12:00:31 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 4Mcw6m0h2Rz4V2XG; Wed, 28 Sep 2022 12:00: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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mcw6l70yFz3Sx3; Wed, 28 Sep 2022 12:00:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664366432; 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=9wOHynSjQewjyrvX1UIBp/JlE1R3SbwCLKVLcYnszck=; b=rc+wnojkTZy7BTFO5dYYTDvXfNFqIRh90BiZuLMaNUF6hy/O8eWwatKBzMNrgW/B+FzCL/ wl4SHmPMBBbopowGseeLkpWu90qS4vq38boTu8DKU54xUuxpSoEE/2KkVDlajK22NHnDNF QoGtTlc9DFvO1/rNl51BNSubUU7Uw+3Vxd6vojmlBopyIfRtVg9jD1XCwfe3iPWsCRXvrp sbO1H+qoni/mWkB8qxP0ps3iOxIRVtCFzsiF7nkTEC1sZsfd9lIvwd+WCGG1mnjnG5gl94 hK5qpQVGGGkmo9YaA+um9b24IxwCn5QO2AxNQePuOxjfY1BkHWERi9+gfnjZ1A== 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 4Mcw6l628rzSdr; Wed, 28 Sep 2022 12:00:31 +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 28SC0VIA062203; Wed, 28 Sep 2022 12:00:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28SC0VnO062202; Wed, 28 Sep 2022 12:00:31 GMT (envelope-from git) Date: Wed, 28 Sep 2022 12:00:31 GMT Message-Id: <202209281200.28SC0VnO062202@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: dd6bb9abf075 - main - LinuxKPI: Use SYSCTL_FOREACH() 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: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dd6bb9abf075fd3a14956f61559a7e90bb2f26d9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664366432; 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=9wOHynSjQewjyrvX1UIBp/JlE1R3SbwCLKVLcYnszck=; b=SKP46nQroaUymKa76l+SrjyvV0Y1+EdKP6kzVGIvE9hxaEVRTNKKFiDsqdU+EzdViD1zxJ vVTEnk9/HlG8iDB3eqp4hEudLVdaAC5UDZt3f2WgiUtNi9BY2JqcsyHn6faAX5wNwRlz9S qONPmEXSWbDF0JjWH6Ymcdb+kL4NkCQYYXOuDQsi1kPeYfF4ZtHr5aIMLZIyjzKnlt/zDG eIXNkd+KskADSucOoTQjvOwf1kOgFU5mNySEq1DhgiBfVHsSCcd46SkP1PLH23w+/RXf2r zwjowRJNFXroyuOKiRGjx8oaNTpl6EcTbttFCNfXqH3jOfiFa9wMfuw/2j61hg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664366432; a=rsa-sha256; cv=none; b=GgjGSj7IZ18vOSObe+s227kPd+Iw0yE3N2D6sofULZLJ+7VRbWH8JHP6Nc7ycx69F1aQ3b lB872uRAjGnLsVeNTQOY1aP/63i1A9Vv+g2FGuMEX+d5aY1LLXMmoNTYAH3ZC47F4RDz52 GGwxvE9XxX+J0h9C4YpPwqL7wy+BHLr6lA/vusCOaY+5IuZVWhYM3j/ZbUjhMp27vl9sLZ HF7/eKHn9qoqoM5zopb3qpQAAMiBlZFTJ//Sd17jOpFtWlhyFgZTrYLOEKZjJjlz8ljKsE rkd1sTGGNP+QYvrGr8Fgd4SkZ3GzFvyRkB37pKm0MIei1cGkh8Y0Z0+S6oHjmg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=dd6bb9abf075fd3a14956f61559a7e90bb2f26d9 commit dd6bb9abf075fd3a14956f61559a7e90bb2f26d9 Author: Hans Petter Selasky AuthorDate: 2022-09-28 11:42:32 +0000 Commit: Hans Petter Selasky CommitDate: 2022-09-28 11:59:55 +0000 LinuxKPI: Use SYSCTL_FOREACH() Differential Revision: https://reviews.freebsd.org/D36748 MFC after: 1 week Sponsored by: NVIDIA Networking --- sys/compat/linuxkpi/common/include/linux/sysfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/include/linux/sysfs.h b/sys/compat/linuxkpi/common/include/linux/sysfs.h index 881a72e62ed9..e6b8ad210f16 100644 --- a/sys/compat/linuxkpi/common/include/linux/sysfs.h +++ b/sys/compat/linuxkpi/common/include/linux/sysfs.h @@ -246,7 +246,7 @@ sysfs_unmerge_group(struct kobject *kobj, const struct attribute_group *grp) struct attribute **attr; struct sysctl_oid *oidp; - RB_FOREACH(oidp, sysctl_oid_list, SYSCTL_CHILDREN(kobj->oidp)) { + SYSCTL_FOREACH(oidp, SYSCTL_CHILDREN(kobj->oidp)) { if (strcmp(oidp->oid_name, grp->name) != 0) continue; for (attr = grp->attrs; *attr != NULL; attr++) {