From c76f5257b0ba1605be01c441e5080612c5e3cdfe Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Wed, 29 Nov 2017 03:59:35 +0000 Subject: fix this on sparc64 (or maybe gcc) ok jmatthew@ guenther@ kettenis@ --- sys/dev/pci/drm/drm_linux.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3