From owner-freebsd-current Sun Mar 10 12:38:40 2002 Delivered-To: freebsd-current@freebsd.org Received: from herbelot.dyndns.org (d211.dhcp212-198-26.noos.fr [212.198.26.211]) by hub.freebsd.org (Postfix) with ESMTP id 4979A37B404 for ; Sun, 10 Mar 2002 12:38:36 -0800 (PST) Received: from herbelot.com (tulipe.herbelot.nom [192.168.1.5]) by herbelot.dyndns.org (8.9.3/8.9.3) with ESMTP id VAA79680 for ; Sun, 10 Mar 2002 21:38:33 +0100 (CET) (envelope-from thierry@herbelot.com) Message-ID: <3C8BC449.B0261E76@herbelot.com> Date: Sun, 10 Mar 2002 21:38:33 +0100 From: Thierry Herbelot X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: "current@FreeBSD.ORG" Subject: slight patch to ata-all.c Content-Type: multipart/mixed; boundary="------------A157D447F60D3CCD4D42A96D" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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