Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ata make this compile.
details: https://anonhg.NetBSD.org/src/rev/60cfb3ced85a
branches: trunk
changeset: 768876:60cfb3ced85a
user: christos <christos%NetBSD.org@localhost>
date: Sun Aug 28 09:43:25 2011 +0000
description:
make this compile.
diffstat:
sys/dev/ata/ata_wdc.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 66574c4ea590 -r 60cfb3ced85a sys/dev/ata/ata_wdc.c
--- a/sys/dev/ata/ata_wdc.c Sun Aug 28 09:39:44 2011 +0000
+++ b/sys/dev/ata/ata_wdc.c Sun Aug 28 09:43:25 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ata_wdc.c,v 1.94 2011/08/27 17:05:57 bouyer Exp $ */
+/* $NetBSD: ata_wdc.c,v 1.95 2011/08/28 09:43:25 christos Exp $ */
/*
* Copyright (c) 1998, 2001, 2003 Manuel Bouyer.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata_wdc.c,v 1.94 2011/08/27 17:05:57 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata_wdc.c,v 1.95 2011/08/28 09:43:25 christos Exp $");
#include "opt_ata.h"
#include "opt_wdc.h"
@@ -179,12 +179,12 @@
struct wdc_regs *wdr = &wdc->regs[chp->ch_channel];
struct ata_bio *ata_bio = xfer->c_cmd;
struct ata_drive_datas *drvp = &chp->ch_drive[xfer->c_drive];
- int wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
+ int wait_flags;
const char *errstring;
#ifdef WDC_NO_IDS
wait_flags = AT_POLL;
#else
-#error "NEED WDC_NO_IDS"
+ wait_flags = (xfer->c_flags & C_POLL) ? AT_POLL : 0;
#endif
ATADEBUG_PRINT(("wdc_ata_bio_start %s:%d:%d\n",
Home |
Main Index |
Thread Index |
Old Index