From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755572Ab0CEToA (ORCPT ); Fri, 5 Mar 2010 14:44:00 -0500 Received: from mail-vw0-f46.google.com ([209.85.212.46]:51207 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755350Ab0CETn6 (ORCPT ); Fri, 5 Mar 2010 14:43:58 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=GdPBMU0t4FYZlqxp2UReFVylbBwLcIJfrR49gw9vjkr3RWjZF4/TNXUnggjcgjLC6c kKtkvB8Y2jfgxJtD5Pjj9nharBRDNofihV9+BiL3B5FxcciIZ1UBPHXlLuMZp44KdZkN 0HGrBICmz/nhhmZJFqMGi7uHHFNs+rXM6/8KA= Message-ID: <4B915EEF.1040307@garzik.org> Date: Fri, 05 Mar 2010 14:43:43 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc11 Thunderbird/3.0.3 MIME-Version: 1.0 To: Bartlomiej Zolnierkiewicz CC: Andrew Morton , Linus Torvalds , linux-ide@vger.kernel.org, LKML , Alan Cox Subject: Re: [git patches] libata updates for 2.6.34 References: <20100301202330.GA14977@havoc.gtf.org> <201003051958.24987.bzolnier@gmail.com> In-Reply-To: <201003051958.24987.bzolnier@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/05/2010 01:58 PM, Bartlomiej Zolnierkiewicz wrote: > On Monday 01 March 2010 09:23:30 pm Jeff Garzik wrote: > >> libata: Pass host flags into the pci helper > > It introduces a subtle bug: > > struct ata_host { > ... > unsigned long flags; > >> @@ -1642,8 +1643,8 @@ extern int ata_pci_sff_activate_host(struct ata_host *host, >> irq_handler_t irq_handler, >> struct scsi_host_template *sht); >> extern int ata_pci_sff_init_one(struct pci_dev *pdev, >> - const struct ata_port_info * const * ppi, >> - struct scsi_host_template *sht, void *host_priv); >> + const struct ata_port_info * const * ppi, >> + struct scsi_host_template *sht, void *host_priv, int hflags); > > 'int' type is not equal 'unsigned long' one on 64-bit architectures. True but largely irrelevant as we will never use more than 32 bits worth of host flags. > Besides doing it this way is clearly suboptimal as the same effect > could have been achieved by doing: > > extern int __ata_pci_sff_init_one(struct pci_dev *pdev, > const struct ata_port_info * const *ppi, > struct scsi_host_template *sht, void *host_priv, > int hflag); > static inline int ata_pci_sff_init_one(struct pci_dev *pdev, > const struct ata_port_info * const *ppi, > struct scsi_host_template *sht, void *host_priv) > { > return __ata_pci_sff_init_one(pdev, ppi, sht, host_priv, 0); > } This is far uglier than simply changing the API. > without the need to update all drivers and without breaking pending > out-of-tree driver patches (yeah, it breaks my pata_ep93xx patches).. Every post you include a disclaimer about "my patches are not intended for upstream" yet you still complain? Some people are never satisfied... Jeff