summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-12-17 19:35:25 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-12-17 19:35:25 +0000
commit1063e680bd0ec37b8311f42aff4e5b1a9f8fbdf3 (patch)
tree0010a74716656fa7a38f4796b55bc40e58f5cd6b
parent71e09ba3b30499229a117a573578ea71c6567bc9 (diff)
sprinkling ifndef __linux__ around two variable declarations could not
possibly make this driver portable
-rw-r--r--sys/dev/ic/aic79xx.c4
-rw-r--r--sys/dev/ic/aic79xx.h6
-rw-r--r--sys/dev/ic/aic7xxxvar.h8
3 files changed, 4 insertions, 14 deletions
diff --git a/sys/dev/ic/aic79xx.c b/sys/dev/ic/aic79xx.c
index e6c6113113d..e2cdb5e828a 100644
--- a/sys/dev/ic/aic79xx.c
+++ b/sys/dev/ic/aic79xx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx.c,v 1.58 2015/12/06 02:41:23 mmcc Exp $ */
+/* $OpenBSD: aic79xx.c,v 1.59 2015/12/17 19:35:24 tedu Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -6068,9 +6068,7 @@ ahd_alloc_scbs(struct ahd_softc *ahd)
for (i = 0; i < newcount; i++) {
struct scb_platform_data *pdata = NULL;
u_int col_tag;
-#ifndef __linux__
int error;
-#endif
next_scb = (struct scb *)malloc(sizeof(*next_scb),
M_DEVBUF, M_NOWAIT);
diff --git a/sys/dev/ic/aic79xx.h b/sys/dev/ic/aic79xx.h
index 2b58c9ce61b..a298b4abe22 100644
--- a/sys/dev/ic/aic79xx.h
+++ b/sys/dev/ic/aic79xx.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx.h,v 1.24 2015/07/17 21:42:49 krw Exp $ */
+/* $OpenBSD: aic79xx.h,v 1.25 2015/12/17 19:35:24 tedu Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -656,9 +656,7 @@ struct scb {
struct ahd_softc *ahd_softc;
scb_flag flags;
-#ifndef __linux__
bus_dmamap_t dmamap;
-#endif
struct scb_platform_data *platform_data;
struct map_node *hscb_map;
struct map_node *sg_map;
@@ -1102,9 +1100,7 @@ struct ahd_softc {
bus_space_tag_t tags[2];
bus_space_handle_t bshs[2];
-#ifndef __linux__
bus_dma_tag_t buffer_dmat; /* dmat for buffer I/O */
-#endif
struct scb_data scb_data;
struct hardware_scb *next_queued_hscb;
diff --git a/sys/dev/ic/aic7xxxvar.h b/sys/dev/ic/aic7xxxvar.h
index a875a950a44..26172f95c3b 100644
--- a/sys/dev/ic/aic7xxxvar.h
+++ b/sys/dev/ic/aic7xxxvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic7xxxvar.h,v 1.28 2015/11/14 14:47:56 miod Exp $ */
+/* $OpenBSD: aic7xxxvar.h,v 1.29 2015/12/17 19:35:24 tedu Exp $ */
/*
* Core definitions and data structures shareable across OS platforms.
*
@@ -38,7 +38,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aic7xxxvar.h,v 1.28 2015/11/14 14:47:56 miod Exp $
+ * $Id: aic7xxxvar.h,v 1.29 2015/12/17 19:35:24 tedu Exp $
*
* $FreeBSD: src/sys/dev/aic7xxx/aic7xxx.h,v 1.50 2003/12/17 00:02:09 gibbs Exp $
*/
@@ -597,9 +597,7 @@ struct scb {
struct scsipi_xfer *xs;
struct ahc_softc *ahc_softc;
scb_flag flags;
-#ifndef __linux__
bus_dmamap_t dmamap;
-#endif
struct scb_platform_data *platform_data;
struct sg_map_node *sg_map;
struct ahc_dma_seg *sg_list;
@@ -949,9 +947,7 @@ struct ahc_softc {
bus_space_tag_t tag;
bus_space_handle_t bsh;
-#ifndef __linux__
bus_dma_tag_t buffer_dmat; /* dmat for buffer I/O */
-#endif
struct scb_data *scb_data;
struct scb *next_queued_scb;