Skip to content

Commit 233ba2c

Browse files
committed
Merge tag 'parisc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6
PARISC fixes from James Bottomley: "This is a set of build fixes to get the cross compiled architecture testbeds building again" * tag 'parisc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/parisc-2.6: [PARISC] don't unconditionally override CROSS_COMPILE for 64 bit. [PARISC] include <linux/prefetch.h> in drivers/parisc/iommu-helpers.h [PARISC] fix compile break caused by iomap: make IOPORT/PCI mapping functions conditional
2 parents 001f3a4 + aabb70d commit 233ba2c

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎arch/parisc/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ ifdef CONFIG_64BIT
3131
UTS_MACHINE := parisc64
3232
CHECKFLAGS += -D__LP64__=1 -m64
3333
WIDTH := 64
34+
35+
# FIXME: if no default set, should really try to locate dynamically
36+
ifeq ($(CROSS_COMPILE),)
3437
CROSS_COMPILE := hppa64-linux-gnu-
38+
endif
3539
else # 32-bit
3640
WIDTH :=
3741
endif

‎drivers/parisc/iommu-helpers.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include <linux/prefetch.h>
2+
13
/**
24
* iommu_fill_pdir - Insert coalesced scatter/gather chunks into the I/O Pdir.
35
* @ioc: The I/O Controller.

‎include/asm-generic/iomap.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ extern void ioport_unmap(void __iomem *);
7070
/* Destroy a virtual mapping cookie for a PCI BAR (memory or IO) */
7171
struct pci_dev;
7272
extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
73-
#else
73+
#elif defined(CONFIG_GENERIC_IOMAP)
7474
struct pci_dev;
7575
static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
7676
{ }

‎include/asm-generic/pci_iomap.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern void __iomem *__pci_ioport_map(struct pci_dev *dev, unsigned long port,
2525
#define __pci_ioport_map(dev, port, nr) ioport_map((port), (nr))
2626
#endif
2727

28-
#else
28+
#elif defined(CONFIG_GENERIC_PCI_IOMAP)
2929
static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max)
3030
{
3131
return NULL;

0 commit comments

Comments
 (0)