mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
8092677085
Unlike x86, arm64 and ARM, ia64 does not declare its implementations of early_ioremap/early_iounmap/early_memremap/early_memunmap in a header file called <asm/early_ioremap.h> This complicates the use of these functions in generic code, since the header cannot be included directly, and we have to rely on transitive includes, which is fragile. So create a <asm/early_ioremap.h> for ia64, and move the existing definitions into it. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
11 lines
389 B
C
11 lines
389 B
C
#ifndef _ASM_IA64_EARLY_IOREMAP_H
|
|
#define _ASM_IA64_EARLY_IOREMAP_H
|
|
|
|
extern void __iomem * early_ioremap (unsigned long phys_addr, unsigned long size);
|
|
#define early_memremap(phys_addr, size) early_ioremap(phys_addr, size)
|
|
|
|
extern void early_iounmap (volatile void __iomem *addr, unsigned long size);
|
|
#define early_memunmap(addr, size) early_iounmap(addr, size)
|
|
|
|
#endif
|