mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
linuxkpi: Use an inline function for the _ioremap_attr stub.
This "consumes" variables passed to ioremap*() avoiding set but unused warnings.
This commit is contained in:
parent
69c595ed7f
commit
34dae08e6c
1 changed files with 5 additions and 1 deletions
|
|
@ -393,7 +393,11 @@ _outb(u_char data, u_int port)
|
|||
#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__) || defined(__aarch64__) || defined(__riscv)
|
||||
void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr);
|
||||
#else
|
||||
#define _ioremap_attr(...) NULL
|
||||
static __inline void *
|
||||
_ioremap_attr(vm_paddr_t _phys_addr, unsigned long _size, int _attr)
|
||||
{
|
||||
return (NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef VM_MEMATTR_DEVICE
|
||||
|
|
|
|||
Loading…
Reference in a new issue