summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uvideo.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-03-28 03:31:57 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-03-28 03:31:57 +0000
commitf3ad470857a3f56a9c87e882b230560aa53b8997 (patch)
tree50bd9143c36905aa565f7e06b39e2743f78243ca /sys/dev/usb/uvideo.c
parent7f3b9e3bc6d1bf3735d920fc2a1a0928246b3143 (diff)
you probably don't need to include vnode.h or reboot.h. you most definitely
absolutely do not need to include vnode.h because it includes uvm_extern.h and you want the idiotic TRUE FALSE defines from uvm.
Diffstat (limited to 'sys/dev/usb/uvideo.c')
-rw-r--r--sys/dev/usb/uvideo.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c
index 0d6c1fe6b5e..5f71f7d867d 100644
--- a/sys/dev/usb/uvideo.c
+++ b/sys/dev/usb/uvideo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvideo.c,v 1.167 2012/06/18 15:43:30 mpi Exp $ */
+/* $OpenBSD: uvideo.c,v 1.168 2013/03/28 03:31:56 tedu Exp $ */
/*
* Copyright (c) 2008 Robert Nagy <robert@openbsd.org>
@@ -25,18 +25,16 @@
#include <sys/ioctl.h>
#include <sys/tty.h>
#include <sys/file.h>
-#include <sys/reboot.h>
#include <sys/selinfo.h>
#include <sys/proc.h>
-#include <sys/namei.h>
-#include <sys/vnode.h>
#include <sys/lock.h>
#include <sys/stat.h>
#include <sys/device.h>
#include <sys/poll.h>
#include <sys/timeout.h>
#include <sys/kthread.h>
-#include <uvm/uvm.h>
+
+#include <uvm/uvm_extern.h>
#include <machine/bus.h>
@@ -132,6 +130,9 @@ usbd_status uvideo_usb_control(struct uvideo_softc *sc, uint8_t rt, uint8_t r,
uint16_t value, uint8_t *data, size_t length);
#ifdef UVIDEO_DEBUG
+#include <sys/namei.h>
+#include <sys/vnode.h>
+
void uvideo_dump_desc_all(struct uvideo_softc *);
void uvideo_dump_desc_vc_header(struct uvideo_softc *,
const usb_descriptor_t *);