summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfeinerer <feinerer@openbsd.org>2020-05-30 09:01:04 +0000
committerfeinerer <feinerer@openbsd.org>2020-05-30 09:01:04 +0000
commit23b0dfe462d7dda3673a0dee4b3111e4867530a5 (patch)
treed3f18ce8d0d942133ca4c8bae0af8d2186f7540b
parentFix error message on close(2) and add printf format attributes. (diff)
downloadwireguard-openbsd-23b0dfe462d7dda3673a0dee4b3111e4867530a5.tar.xz
wireguard-openbsd-23b0dfe462d7dda3673a0dee4b3111e4867530a5.zip
Fix UVIDEO_DEBUG build
Include sys/proc.h to address following errors: /usr/src/sys/dev/usb/uvideo.c:2901:31: error: incomplete definition of type 'struct proc' vn_close(nd.ni_vp, FWRITE, p->p_ucred, p); ~^ /usr/src/sys/sys/types.h:223:8: note: forward declaration of 'struct proc' struct proc; ^ /usr/src/sys/dev/usb/uvideo.c:2925:40: error: incomplete definition of type 'struct proc' UIO_SYSSPACE, IO_APPEND|IO_UNIT, p->p_ucred, NULL, p); ~^ /usr/src/sys/sys/types.h:223:8: note: forward declaration of 'struct proc' struct proc; ^ 2 errors generated. ok mpi@
-rw-r--r--sys/dev/usb/uvideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index d33e3079acd..e5900a6e437 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.206 2020/01/16 09:59:26 mpi Exp $ */
+/* $OpenBSD: uvideo.c,v 1.207 2020/05/30 09:01:04 feinerer Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -186,6 +186,7 @@ usbd_status uvideo_usb_control(struct uvideo_softc *sc, uint8_t rt, uint8_t r,
#ifdef UVIDEO_DEBUG
#include <sys/namei.h>
+#include <sys/proc.h>
#include <sys/vnode.h>
void uvideo_dump_desc_all(struct uvideo_softc *);