From nobody Tue Oct 04 14:50:21 2022 X-Original-To: dev-commits-src-branches@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 4Mhgbx48D9z4f1lG; Tue, 4 Oct 2022 14:50:21 +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 4Mhgbx3VB0z3pnG; Tue, 4 Oct 2022 14:50:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664895021; 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=HI1kZQkZisatToC0XsshFTvgu3tKeLll/eUPZ0qfIpg=; b=THPp9HxoSlkVppe6tCLF3j32AZtXPLA634b+5VpEpI6X40cFQcp1W8hVjcFb3Qul8DLM9t XCH5EfZ3qC2gSm+2rvaeuUY9aNa5X/u5jkBPQz2aSbJlxIj8huDB5+340G9/J8O5pFeqvx m+kKFbqVC1SSeiiNyZ7eauwiK1Wf3WGblWzmkFzujFadAQ5QP4/g9KXUU37DSFapY+I/jK a9/hddU3N4yE1jjVe03GriNSsvF+SQrJbsk7bt8U2B4u1dXMHfE+Qok6KYEFqU+3FggnnC 92+vrRHLeEn5mV2Gicg1tRaHsozQidwpB29W1Dh0cZccE3jGpLmaZxmAdGKdyQ== 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 4Mhgbx2b2Dzbb3; Tue, 4 Oct 2022 14:50:21 +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 294EoLqv030758; Tue, 4 Oct 2022 14:50:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 294EoLiq030752; Tue, 4 Oct 2022 14:50:21 GMT (envelope-from git) Date: Tue, 4 Oct 2022 14:50:21 GMT Message-Id: <202210041450.294EoLiq030752@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: a03b09579cdb - stable/13 - LinuxKPI: Use SYSCTL_FOREACH() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: a03b09579cdb8989a6caa058e0b1b90b4f943bcc Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664895021; 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=HI1kZQkZisatToC0XsshFTvgu3tKeLll/eUPZ0qfIpg=; b=jUI0lzwc+b3dfoFvMXMyipRvlq216C8UwEKztl3+CXS7Bw1kLbkZyhPH9d/5Qy8covh7dt U+HDnT8pNjF0WbBdsfZrW5LFrQTvkZ8USfFD9nUk5R6CzuG/zWmGuuSTM8l5ZDStQ+StQ+ ueGaPnyPGF+wkxmbB8FSV7No2qZFZboIHoP2DKyiF6JRPGCZTezw0u3Jol/K9c84ARUkF3 AHgEb7+SpVzFMc2KTubMtFvdIiOfnuj/XLwFf9Q2r++wCF1ickgAtVX+RSv2eSa8xmFE9i 7uYaCNeuOwB5Yzi9cp3UOj73VQbRG+qhQRe6HxFI5xO43d7H+9qxt1ek128WjA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664895021; a=rsa-sha256; cv=none; b=mkUDc2K11dU7UgjsvI1lbjbRzA2uRgU4IAarkJIXUSI4c5EwpW84ClbJsaYH/F+MzIwmEe 9OsE8FBtSlMStsp8ZlYggpmhHmj44wQtuvhnRxZAqRvMWN+bZC56Brs4HpA/H72fpdxmRQ d5+oqARAcoibPICtzk1fapzXy8yALfE+eCE+6h5UdplIi42tAB6oUyCXpB2YmciSSwHsN6 dtv1dzi9LzTX2FEe5fx++nWrDTt6rcFpngvc+YM1Bqt5Nv9Ck/Rjl/ZnC+qdoWa8wVyBRQ F2EDfEbfpuA8IRrvlg1/6Dr+Cd7zL417pujnnonCJDw31eb/p4MP20hM7IvYPg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=a03b09579cdb8989a6caa058e0b1b90b4f943bcc commit a03b09579cdb8989a6caa058e0b1b90b4f943bcc Author: Hans Petter Selasky AuthorDate: 2022-09-28 11:42:32 +0000 Commit: Hans Petter Selasky CommitDate: 2022-10-04 14:40:53 +0000 LinuxKPI: Use SYSCTL_FOREACH() Differential Revision: https://reviews.freebsd.org/D36748 Sponsored by: NVIDIA Networking (cherry picked from commit dd6bb9abf075fd3a14956f61559a7e90bb2f26d9) --- 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 0b6b479d9362..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; - SLIST_FOREACH(oidp, SYSCTL_CHILDREN(kobj->oidp), oid_link) { + SYSCTL_FOREACH(oidp, SYSCTL_CHILDREN(kobj->oidp)) { if (strcmp(oidp->oid_name, grp->name) != 0) continue; for (attr = grp->attrs; *attr != NULL; attr++) {