Module Name: src
Committed By: riastradh
Date: Sun Dec 19 01:55:29 UTC 2021
Modified Files:
src/sys/external/bsd/drm2/include/linux: timer.h
Log Message:
Match argument name, and uintptr_t has a size-match to void*, might be a better
fit.
Author: Maya Rashish <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/external/bsd/drm2/include/linux/timer.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/linux/timer.h
diff -u src/sys/external/bsd/drm2/include/linux/timer.h:1.8 src/sys/external/bsd/drm2/include/linux/timer.h:1.9
--- src/sys/external/bsd/drm2/include/linux/timer.h:1.8 Sun Dec 19 01:16:21 2021
+++ src/sys/external/bsd/drm2/include/linux/timer.h Sun Dec 19 01:55:29 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: timer.h,v 1.8 2021/12/19 01:16:21 riastradh Exp $ */
+/* $NetBSD: timer.h,v 1.9 2021/12/19 01:55:29 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -51,14 +51,14 @@ struct timer_list {
static inline void
timer_setup(struct timer_list *timer, void (*fn)(struct timer_list *),
- unsigned flags)
+ uintptr_t flags)
{
callout_init(&timer->tl_callout, 0);
/* XXX Super-sketchy casts! */
callout_setfunc(&timer->tl_callout, (void (*)(void *))(void *)fn,
- (void *)arg);
+ (void *)flags);
}
static inline void