Index: sys/compat/linuxkpi/common/include/linux/highmem.h =================================================================== --- sys/compat/linuxkpi/common/include/linux/highmem.h +++ sys/compat/linuxkpi/common/include/linux/highmem.h @@ -91,6 +91,12 @@ return (kmap_atomic_prot(page, VM_PROT_ALL)); } +static inline void * +kmap_local_page_prot(vm_page_t page, pgprot_t prot) +{ + return (kmap_atomic_prot(page, prot)); +} + static inline void kunmap(vm_page_t page) { @@ -115,4 +121,10 @@ kunmap(virt_to_page(vaddr)); } +static inline void +kunmap_local(void *addr) +{ + kunmap_atomic(addr); +} + #endif /* _LINUXKPI_LINUX_HIGHMEM_H_ */