Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 26 Apr 2002 05:17:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 26 Apr 2002 05:17:44 -0400 Received: from gate.perex.cz ([194.212.165.105]:54536 "EHLO gate.perex.cz") by vger.kernel.org with ESMTP id ; Fri, 26 Apr 2002 05:17:43 -0400 Date: Fri, 26 Apr 2002 11:17:23 +0200 (CEST) From: Jaroslav Kysela X-X-Sender: To: Ivan Kokshaysky cc: Jurriaan on Alpha , "linux-kernel@vger.kernel.org" Subject: Re: compiling cmipci in 2.5.10 on Alpha doesn't work In-Reply-To: <20020426130514.A20345@jurassic.park.msu.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Apr 2002, Ivan Kokshaysky wrote: > On Fri, Apr 26, 2002 at 09:44:16AM +0200, Jurriaan on Alpha wrote: > > -#if defined(__i386__) || defined(__ppc__) > > +#if defined(__i386__) || defined(__ppc__) || defined(__alpha__) > > /* > > * Here a dirty hack for 2.4 kernels.. See kernel/memory.c. > > */ > > No, alpha doesn't need any kind of "dirty hacks". :-) > We only need to get included properly. The real fix is to add '#include ' line to all necessary source files (sound/pci/cmipci.c in this example). Not all source files need pci.h for compilation. Jaroslav > --- 2.5.10/include/sound/driver.h Mon Mar 18 23:37:12 2002 > +++ linux/include/sound/driver.h Tue Mar 26 23:47:32 2002 > @@ -50,12 +50,12 @@ > */ > > #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 4, 0) > +#include > #if defined(__i386__) || defined(__ppc__) > /* > * Here a dirty hack for 2.4 kernels.. See kernel/memory.c. > */ > #define HACK_PCI_ALLOC_CONSISTENT > -#include > void *snd_pci_hack_alloc_consistent(struct pci_dev *hwdev, size_t size, > dma_addr_t *dma_handle); > #undef pci_alloc_consistent ----- Jaroslav Kysela Linux Kernel Sound Maintainer ALSA Project http://www.alsa-project.org SuSE Linux http://www.suse.com - 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/