Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261709AbVCUJpv (ORCPT ); Mon, 21 Mar 2005 04:45:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261715AbVCUJpu (ORCPT ); Mon, 21 Mar 2005 04:45:50 -0500 Received: from wproxy.gmail.com ([64.233.184.201]:12560 "EHLO wproxy.gmail.com") by vger.kernel.org with ESMTP id S261709AbVCUJpm (ORCPT ); Mon, 21 Mar 2005 04:45:42 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Sl0Hbshr2mtOd4ddU2Y1Y5MRXDFWNojl8LCVWyc2bqD7xUH9jrEzsMebshLe9Fd+GF+bM/0Z4pEe5lK5FrBhscMWLzFUpmSzjyENnSu6+qnQ4AvZx1qJPdo+HzNYnnDXnC5TqHmL9rfMbOQ60dSUh9eOIoXHvIFINb3ltg8UYpI= Message-ID: <58cb370e0503210145375f5092@mail.gmail.com> Date: Mon, 21 Mar 2005 10:45:40 +0100 From: Bartlomiej Zolnierkiewicz Reply-To: Bartlomiej Zolnierkiewicz To: Ivan Kokshaysky Subject: Re: [PATCH] alpha build fixes Cc: Jeff Garzik , Andrew Morton , Dave Jones , Greg KH , chas williams - CONTRACTOR , Leendert van Doorn , Reiner Sailer , Linux Kernel , Benjamin Herrenschmidt In-Reply-To: <20050321121616.A24129@jurassic.park.msu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <423BABBF.6030103@pobox.com> <20050319231116.GA4114@twiddle.net> <20050319231641.GA28070@havoc.gtf.org> <58cb370e0503210005358cf200@mail.gmail.com> <20050321121616.A24129@jurassic.park.msu.ru> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1590 Lines: 34 On Mon, 21 Mar 2005 12:16:16 +0300, Ivan Kokshaysky wrote: > On Mon, Mar 21, 2005 at 09:05:39AM +0100, Bartlomiej Zolnierkiewicz wrote: > > On Sat, 19 Mar 2005 18:16:41 -0500, Jeff Garzik wrote: > > > On Sat, Mar 19, 2005 at 03:11:16PM -0800, Richard Henderson wrote: > > > > On Fri, Mar 18, 2005 at 11:34:07PM -0500, Jeff Garzik wrote: > > > > > +/* TODO: integrate with include/asm-generic/pci.h ? */ > > > > > +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) > > > > > +{ > > > > > + return channel ? 15 : 14; > > > > > +} > > > > > > > > Am I missing something, or is this *only* used by drivers/ide/pci/amd74xx.c? > > > > Why in the world would we have this much infrastructure for one driver? And > > > > why not just not compile that one for Alpha, since it'll never be used. > > > > > > My presumption is that it will be used in other IDE drivers in the > > > future. Bart? > > > > This code is meant to be used by other IDE/libata drivers. > > Then isn't linux/ide.h the proper place for default pci_get_legacy_ide_irq() ide.h is not shared between IDE and libata drivers (but ata.h is) > implementation instead of asm-generic/pci.h? The latter is only used by > 7 out of 23 architectures, so not only alpha gets broken. I'm cc:ing Ben as it was his idea - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/