summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-07-09 17:53:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-07-09 17:53:47 +0000
commit915963d7f7c30ae86b596a5a3e8b608aa0228d04 (patch)
treec9f21ffa953d00fac9bc595d9723f4eb9049dd0c /sys
parentba4f79557c288791ba7f528ba047c72941334bae (diff)
pay attention to the #ifdef
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ahci.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c
index 69d52183931..c6524d50383 100644
--- a/sys/dev/ic/ahci.c
+++ b/sys/dev/ic/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.2 2013/07/09 11:55:55 jmatthew Exp $ */
+/* $OpenBSD: ahci.c,v 1.3 2013/07/09 17:53:46 deraadt Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -30,20 +30,9 @@
#include <machine/bus.h>
-
#include <dev/ic/ahcivar.h>
#include <dev/ic/ahcireg.h>
-#ifdef HIBERNATE
-#include <uvm/uvm.h>
-#include <sys/hibernate.h>
-#include <sys/disk.h>
-#include <sys/disklabel.h>
-
-#include <scsi/scsi_all.h>
-#include <scsi/scsiconf.h>
-
-
#ifdef AHCI_DEBUG
#define DPRINTF(m, f...) do { if ((ahcidebug & (m)) == (m)) printf(f); } \
while (0)
@@ -56,6 +45,14 @@ int ahcidebug = AHCI_D_VERBOSE;
#define DPRINTF(m, f...)
#endif
+#ifdef HIBERNATE
+#include <uvm/uvm.h>
+#include <sys/hibernate.h>
+#include <sys/disk.h>
+#include <sys/disklabel.h>
+
+#include <scsi/scsi_all.h>
+#include <scsi/scsiconf.h>
void ahci_hibernate_io_start(struct ahci_port *,
struct ahci_ccb *);