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
This is a multi-part message in MIME format.
--------------A157D447F60D3CCD4D42A96D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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
--------------A157D447F60D3CCD4D42A96D
Content-Type: text/plain; charset=us-ascii;
 name="diff.ata"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="diff.ata"

--- 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)

--------------A157D447F60D3CCD4D42A96D--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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