diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2017-11-29 03:59:35 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2017-11-29 03:59:35 +0000 |
commit | c76f5257b0ba1605be01c441e5080612c5e3cdfe (patch) | |
tree | 31bb0242cc9fcee10cbb939fd45987dfaa4124c2 /sys | |
parent | eff72174594edfdc08d2097cec16ce248773bbdb (diff) |
fix this on sparc64 (or maybe gcc)
ok jmatthew@ guenther@ kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/drm_linux.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/drm_linux.h b/sys/dev/pci/drm/drm_linux.h index d75086494e9..8b5a4c716db 100644 --- a/sys/dev/pci/drm/drm_linux.h +++ b/sys/dev/pci/drm/drm_linux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_linux.h,v 1.64 2017/11/27 16:20:42 kettenis Exp $ */ +/* $OpenBSD: drm_linux.h,v 1.65 2017/11/29 03:59:34 dlg Exp $ */ /* * Copyright (c) 2013, 2014, 2015 Mark Kettenis * Copyright (c) 2017 Martin Pieuchot @@ -1180,7 +1180,7 @@ kobject_del(struct kobject *obj) #define DEFINE_WAIT(wait) wait_queue_head_t *wait = NULL -inline void +static inline void prepare_to_wait(wait_queue_head_t *wq, wait_queue_head_t **wait, int state) { if (*wait == NULL) { @@ -1189,14 +1189,14 @@ prepare_to_wait(wait_queue_head_t *wq, wait_queue_head_t **wait, int state) } } -inline void +static inline void finish_wait(wait_queue_head_t *wq, wait_queue_head_t **wait) { if (*wait) mtx_leave(&wq->lock); } -inline long +static inline long schedule_timeout(long timeout, wait_queue_head_t **wait) { return -msleep(*wait, &(*wait)->lock, PZERO, "schto", timeout); |