Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux linux: Fix timer_setup -...
details: https://anonhg.NetBSD.org/src/rev/c552fa101aea
branches: trunk
changeset: 1028652:c552fa101aea
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 11:36:00 2021 +0000
description:
linux: Fix timer_setup -- pass timer, not flags, as argument.
diffstat:
sys/external/bsd/drm2/include/linux/timer.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 0e29b6a9e534 -r c552fa101aea sys/external/bsd/drm2/include/linux/timer.h
--- a/sys/external/bsd/drm2/include/linux/timer.h Sun Dec 19 11:35:51 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/timer.h Sun Dec 19 11:36:00 2021 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index