Date: Tue, 4 Oct 2022 14:50:21 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: a03b09579cdb - stable/13 - LinuxKPI: Use SYSCTL_FOREACH() Message-ID: <202210041450.294EoLiq030752@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210041450.294EoLiq030752>