DECstation fails to compile with iomap patch applied
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.oarch/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/
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
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_CACHEABLEresource...
I think "iomap.o" should simply be obj-$(CONFIG_PCI) until (unless) there
is a use for it for other I/O buses.
Maciej
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