--- zzzz-none-000/linux-2.6.39.4/include/asm-generic/pci.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/include/asm-generic/pci.h 2021-11-10 13:38:17.000000000 +0000 @@ -15,7 +15,7 @@ * Convert a resource to a PCI device bus address or bus window. */ static inline void -pcibios_resource_to_bus(struct pci_dev *dev, struct pci_bus_region *region, +pcibios_resource_to_bus(struct pci_dev *dev __attribute__((unused)), struct pci_bus_region *region, struct resource *res) { region->start = res->start; @@ -23,7 +23,7 @@ } static inline void -pcibios_bus_to_resource(struct pci_dev *dev, struct resource *res, +pcibios_bus_to_resource(struct pci_dev *dev __attribute__((unused)), struct resource *res, struct pci_bus_region *region) { res->start = region->start; @@ -31,7 +31,7 @@ } static inline struct resource * -pcibios_select_root(struct pci_dev *pdev, struct resource *res) +pcibios_select_root(struct pci_dev *pdev __attribute__((unused)), struct resource *res) { struct resource *root = NULL; @@ -44,7 +44,7 @@ } #ifndef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ -static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) +static inline int pci_get_legacy_ide_irq(struct pci_dev *dev __attribute__((unused)), int channel) { return channel ? 15 : 14; }