git: 8cefcdd4567e - stable/13 - Use SYSCTL_FOREACH in drm2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Jan 2023 12:37:28 UTC
The branch stable/13 has been updated by andrew:
URL: https://cgit.FreeBSD.org/src/commit/?id=8cefcdd4567e5780a3e3dff5276f3652e5d58dca
commit 8cefcdd4567e5780a3e3dff5276f3652e5d58dca
Author: Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-10-05 09:24:13 +0000
Commit: Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2023-01-23 12:36:27 +0000
Use SYSCTL_FOREACH in drm2
This was added recently. Use it to get the correct _FOREACH macro.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit e0853c9336616e4ca4ff41aab0f8ad91bb75fd42)
---
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;
}