mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: Add IOMEM_ERR_PTR() to linux/io.h
The function creates an error pointer. Sponsored by: Serenity Cyber Security, LLC Reviewed by: manu, bz MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D42805 (cherry picked from commit af787b8e8b803dbb2c6bd06629974ba39bd0fb70)
This commit is contained in:
parent
f3ce597171
commit
67cc189db4
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include <machine/vm.h>
|
||||
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/types.h>
|
||||
#if !defined(__arm__)
|
||||
#include <asm/set_memory.h>
|
||||
|
|
@ -528,6 +529,8 @@ memunmap(void *addr)
|
|||
iounmap(addr);
|
||||
}
|
||||
|
||||
#define IOMEM_ERR_PTR(err) (void __iomem *)ERR_PTR(err)
|
||||
|
||||
#define __MTRR_ID_BASE 1
|
||||
int lkpi_arch_phys_wc_add(unsigned long, unsigned long);
|
||||
void lkpi_arch_phys_wc_del(int);
|
||||
|
|
|
|||
Loading…
Reference in a new issue