From mboxrd@z Thu Jan 1 00:00:00 1970 From: michal at ellpspace.math.ualberta.ca (Michal Jaegermann) Date: Sat, 19 Mar 2005 13:01:39 -0700 Subject: kernel build fixes from Jeff Garzik Message-ID: <20050319130139.A10677@ellpspace.math.ualberta.ca> On linux-kernel list Jeff Garzik posted under a subject "[PATCH] alpha build fixes" a message which says: Needed this to build Fedora rawhide kernel (2.6.12-rc1 + some patches) on alpha. This is the upstream portion of the build fixes. The patch is not that big and various interested parties may not subscribe to linux-kernel; so here it is. It may save some head scratching. Michal -------------- next part -------------- diff -urN ../kernel-2.6.11.orig/linux-2.6.11/drivers/char/agp/generic.c linux-2.6.11/drivers/char/agp/generic.c --- ../kernel-2.6.11.orig/linux-2.6.11/drivers/char/agp/generic.c 2005-03-18 16:45:23.000000000 -0500 +++ linux-2.6.11/drivers/char/agp/generic.c 2005-03-18 18:34:00.000000000 -0500 @@ -35,6 +35,7 @@ #include #include #include +#include #include #include #include diff -urN ../kernel-2.6.11.orig/linux-2.6.11/include/asm-alpha/pci.h linux-2.6.11/include/asm-alpha/pci.h --- ../kernel-2.6.11.orig/linux-2.6.11/include/asm-alpha/pci.h 2005-03-02 02:38:34.000000000 -0500 +++ linux-2.6.11/include/asm-alpha/pci.h 2005-03-18 18:39:31.000000000 -0500 @@ -223,6 +223,12 @@ /* Nothing to do. */ } +/* 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; +} + extern void pcibios_resource_to_bus(struct pci_dev *, struct pci_bus_region *, struct resource *); diff -urN ../kernel-2.6.11.orig/linux-2.6.11/include/linux/debugfs.h linux-2.6.11/include/linux/debugfs.h --- ../kernel-2.6.11.orig/linux-2.6.11/include/linux/debugfs.h 2005-03-02 02:38:33.000000000 -0500 +++ linux-2.6.11/include/linux/debugfs.h 2005-03-18 18:14:12.000000000 -0500 @@ -15,6 +15,8 @@ #ifndef _DEBUGFS_H_ #define _DEBUGFS_H_ +#include + #if defined(CONFIG_DEBUG_FS) struct dentry *debugfs_create_file(const char *name, mode_t mode, struct dentry *parent, void *data, diff -ur ../kernel-2.6.11.orig/linux-2.6.11/drivers/atm/lanai.c linux-2.6.11/drivers/atm/lanai.c --- ../kernel-2.6.11.orig/linux-2.6.11/drivers/atm/lanai.c 2005-03-18 20:06:31.000000000 -0500 +++ linux-2.6.11/drivers/atm/lanai.c 2005-03-18 20:36:19.000000000 -0500 @@ -61,6 +61,7 @@ #include #include #include +#include #include #include #include diff -ur ../kernel-2.6.11.orig/linux-2.6.11/drivers/char/tpm/tpm.h linux-2.6.11/drivers/char/tpm/tpm.h --- ../kernel-2.6.11.orig/linux-2.6.11/drivers/char/tpm/tpm.h 2005-03-18 20:06:31.000000000 -0500 +++ linux-2.6.11/drivers/char/tpm/tpm.h 2005-03-18 20:50:31.000000000 -0500 @@ -22,6 +22,7 @@ #include #include #include +#include #include #define TPM_TIMEOUT msecs_to_jiffies(5)