enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA
PATCH 1/1 enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA
Trivial fix to enable compile on !CONFIG_PCI and CONFIG_PPC_EFIKA
Signed-off-by Domen Puncer <[email protected]>
---
Used in arch/powerpc/platforms/52xx/efika.c bydefine_machine(efika) { .phys_mem_access_prot = }
include/asm-powerpc/pci.h | 4 ++++ 1 file changed, 4 insertions(+)
include/asm-powerpc/pci.h +4 -0
@@ -240,10 +240,14 @@ extern int pci_read_irq_line(struct pci_extern void pcibios_add_platform_entries (struct pci_dev *dev);struct file ; +#ifdef CONFIG_PCI extern pgprot_t pci_phys_mem_access_prot (struct file *file,unsigned long pfn,unsigned long size,pgprot_t prot); +#else +#define pci_phys_mem_access_prot NULL +#endif #define HAVE_ARCH_PCI_RESOURCE_TO_USER extern void pci_resource_to_user(const struct pci_dev *dev, int bar,