mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
Merge "arm64: mm: Fix compilation when CONFIG_MEMORY_HOTPLUG is not enabled"
This commit is contained in:
commit
7c6f0d6195
1 changed files with 7 additions and 0 deletions
|
|
@ -685,6 +685,7 @@ void __init paging_init(void)
|
|||
memblock_allow_resize();
|
||||
}
|
||||
|
||||
#ifdef CONFIG_MEMORY_HOTPLUG
|
||||
#define PAGE_INUSE 0xFD
|
||||
|
||||
static void free_pagetable(struct page *page, int order, bool direct)
|
||||
|
|
@ -1059,6 +1060,12 @@ static void remove_pagetable(unsigned long start, unsigned long end,
|
|||
flush_tlb_all();
|
||||
}
|
||||
|
||||
#else
|
||||
static void remove_pagetable(unsigned long start, unsigned long end,
|
||||
bool direct)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_MEMORY_HOTPLUG */
|
||||
|
||||
/*
|
||||
* Check whether a kernel address is valid (derived from arch/x86/).
|
||||
|
|
|
|||
Loading…
Reference in a new issue