Skip to contentSkip to conversation

DECstation fails to compile with iomap patch applied

DISCUSSION Martin Michlmayr 3 participants 4 messages Jan 22, 2006 – Jan 23, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

DECstation fails to compile when your iomap patch is applied. (FWIW, DECstations don't have PCI at all, only TurboCHANNEL).

CC arch/mips/lib/iomap.o
arch/mips/lib/iomap.c: In function ‘pci_iomap’:
arch/mips/lib/iomap.c:66: error: ‘_CACHE_CACHABLE_COW’ undeclared (first use in this function) arch/mips/lib/iomap.c:66: error: (Each undeclared identifier is reported only once arch/mips/lib/iomap.c:66: error: for each function it appears in.)
make[1]: *** [arch/mips/lib/iomap.o] Error 1

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Martin Michlmayr

tbm> DECstation fails to compile when your iomap patch is applied. (FWIW, tbm> DECstations don't have PCI at all, only TurboCHANNEL).

tbm> CC arch/mips/lib/iomap.o
tbm> arch/mips/lib/iomap.c: In function ‘pci_iomap’:
tbm> arch/mips/lib/iomap.c:66: error: ‘_CACHE_CACHABLE_COW’ undeclared (first use in this function)

Yes, R3000 does not define _CACHE_CACHABLE_COW. I suppose the line would be

	return __ioremap_mode(start, len, PAGE_CACHABLE_DEFAULT);

or

	return ioremap(start, len);

I doubt we can really use cacheable page for IORESOURCE_CACHEABLE resource...

---
Atsushi Nemoto

#2 lore raw
Quoted 6 lines · Atsushi Nemoto

tbm> CC arch/mips/lib/iomap.o
tbm> arch/mips/lib/iomap.c: In function ‘pci_iomap’:
tbm> arch/mips/lib/iomap.c:66: error: ‘_CACHE_CACHABLE_COW’ undeclared (first use in this function)

Yes, R3000 does not define _CACHE_CACHABLE_COW. I suppose the line would be

Quoted 8 lines
	return __ioremap_mode(start, len, PAGE_CACHABLE_DEFAULT);

or

	return ioremap(start, len);

I doubt we can really use cacheable page for IORESOURCE_CACHEABLE resource...

I think "iomap.o" should simply be obj-$(CONFIG_PCI) until (unless) there
is a use for it for other I/O buses.

Maciej

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Maciej W. Rozycki

macro> I think "iomap.o" should simply be obj-$(CONFIG_PCI) until macro> (unless) there is a use for it for other I/O buses.

This is another problem. For example, The _CACHE_CACHEABLE_COW is not defined for TX39XX too, and TX3927 has a builtin PCI controller. So this is not enough theoretically.

---
Atsushi Nemoto