Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2002 21:38:33 +0100
From:      Thierry Herbelot <thierry@herbelot.com>
To:        "current@FreeBSD.ORG" <current@FreeBSD.ORG>
Subject:   slight patch to ata-all.c
Message-ID:  <3C8BC449.B0261E76@herbelot.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello

[on a very recent -Current]

wtih the Werror compile flag, I can't compile src/sys/dev/ata/ata-all.c
on a PC with nothing more than a single IDE disk

	TfH

patch enclosed
[-- Attachment #2 --]
--- ata-all.c	Sun Mar 10 21:32:21 2002
+++ ata-all.c.new	Sun Mar 10 20:44:15 2002
@@ -274,10 +274,12 @@
 ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct thread *td)
 {
     struct ata_cmd *iocmd = (struct ata_cmd *)addr;
+#if defined(DEV_ATAPICD) || defined(DEV_ATAPIFD) || defined(DEV_ATAPIST)
     struct ata_device *atadev;
+    caddr_t buf;
+#endif
     struct ata_channel *ch;
     device_t device = devclass_get_device(ata_devclass, iocmd->channel);
-    caddr_t buf;
     int error, s;
 
     if (cmd != IOCATA)

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C8BC449.B0261E76>