diff options
| author | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:36:00 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2021-12-19 11:36:00 +0000 |
| commit | 0d93ca67e8dd4c8dca763a50fd5f93e0db577d59 (patch) | |
| tree | 136e9d4b8f64e86b5e91fd787158006e0d72dcd7 /sys/external/bsd/drm2/include/linux | |
| parent | 4d2871f17dddb1e1837c9fc012f32ccafb9f6326 (diff) | |
linux: Fix timer_setup -- pass timer, not flags, as argument.
Diffstat (limited to 'sys/external/bsd/drm2/include/linux')
| -rw-r--r-- | sys/external/bsd/drm2/include/linux/timer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/external/bsd/drm2/include/linux/timer.h b/sys/external/bsd/drm2/include/linux/timer.h index 2c3b3a8b0a0..115c62fc03b 100644 --- a/sys/external/bsd/drm2/include/linux/timer.h +++ b/sys/external/bsd/drm2/include/linux/timer.h @@ -1,4 +1,4 @@ -/* $NetBSD: timer.h,v 1.11 2021/12/19 11:35:51 riastradh Exp $ */ +/* $NetBSD: timer.h,v 1.12 2021/12/19 11:36:00 riastradh Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -54,14 +54,14 @@ struct timer_list { static inline void timer_setup(struct timer_list *timer, void (*fn)(struct timer_list *), - uintptr_t flags) + int flags) { callout_init(&timer->tl_callout, 0); /* XXX Super-sketchy casts! */ callout_setfunc(&timer->tl_callout, (void (*)(void *))(void *)fn, - (void *)flags); + (void *)timer); } static inline void |
