Remove ARM and MIPS from linuxkpi ioremap_attr definition
ARM and MIPS fail universe builds. ARM and MIPS are missing the following: * VM_MEMATTR_WRITE_THROUGH * VM_MEMATTR_WRITE_COMBINING Pointy-hat to: jhibbits
This commit is contained in:
parent
4b5ee0911d
commit
29092d1ae9
@ -180,8 +180,7 @@ _outb(u_char data, u_int port)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(__i386__) || defined(__amd64__) || \
|
||||
defined(__arm__) || defined(__mips__) || defined(__powerpc__)
|
||||
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
|
||||
void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr);
|
||||
#else
|
||||
#define _ioremap_attr(...) NULL
|
||||
|
@ -1415,8 +1415,7 @@ vmmap_remove(void *addr)
|
||||
return (vmmap);
|
||||
}
|
||||
|
||||
#if defined(__i386__) || defined(__amd64__) || \
|
||||
defined(__arm__) || defined(__mips__) || defined(__powerpc__)
|
||||
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
|
||||
void *
|
||||
_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr)
|
||||
{
|
||||
@ -1439,8 +1438,7 @@ iounmap(void *addr)
|
||||
vmmap = vmmap_remove(addr);
|
||||
if (vmmap == NULL)
|
||||
return;
|
||||
#if defined(__i386__) || defined(__amd64__) || \
|
||||
defined(__arm__) || defined(__mips__) || defined(__powerpc__)
|
||||
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
|
||||
pmap_unmapdev((vm_offset_t)addr, vmmap->vm_size);
|
||||
#endif
|
||||
kfree(vmmap);
|
||||
|
Loading…
Reference in New Issue
Block a user