From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 2.6.13] libata: Marvell SATA support (PIO mode) Date: Thu, 1 Sep 2005 15:40:38 +0100 Message-ID: <20050901144038.GA25830@infradead.org> References: <20050830183625.BEE1520F4C@lns1058.lss.emc.com> <4314C604.4030208@pobox.com> <20050901142754.B93BF27137@lns1058.lss.emc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20050901142754.B93BF27137@lns1058.lss.emc.com> Sender: linux-kernel-owner@vger.kernel.org To: Brett Russ Cc: Jeff Garzik , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-ide@vger.kernel.org > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include "scsi.h" pleaese don't include "scsi.h" in new drivers. It will go away soon. Use the headers and get rid of usage of obsolete constucts in your driver. > +static inline void writelfl(unsigned long data, void __iomem *addr) > +{ > + writel(data, addr); > + (void) readl(addr); /* flush */ no need for the (void) case. > +static void mv_irq_clear(struct ata_port *ap) > +{ > + return; > +} no need for the return > + return (ofs); please remove the braces around the return value > + if (ap && > + (NULL != (qc = ata_qc_from_tag(ap, ap->active_tag)))) { > + VPRINTK("port %u IRQ found for qc, ata_status 0x%x\n", > + port,ata_status); > + BUG_ON(0xffU == ata_status); > + /* mark qc status appropriately */ > + ata_qc_complete(qc, ata_status); > + } the formatting looks rather odd. What about; if (ap) { qc = ata_qc_from_tag(ap, ap->active_tag); if (qc) { VPRINTK("port %u IRQ found for qc, " "ata_status 0x%x\n", port, ata_status); BUG_ON(0xffU == ata_status); /* mark qc status appropriately */ ata_qc_complete(qc, ata_status); } } > + err_out_hpriv: rather odd placement of the goto labels. If you look at kernel code it's always either not indented at all, or indented a single space.