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:
Justin Hibbits 2017-06-08 02:44:34 +00:00
parent d4a698487c
commit 864092bcaa
2 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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);