git: a03b09579cdb - stable/13 - LinuxKPI: Use SYSCTL_FOREACH()

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 04 Oct 2022 14:50:21 UTC
The branch stable/13 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=a03b09579cdb8989a6caa058e0b1b90b4f943bcc

commit a03b09579cdb8989a6caa058e0b1b90b4f943bcc
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-09-28 11:42:32 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
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++) {