mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
x86, MM: virtual address debug, cleanups
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
a1bf9631be
commit
7aa413def7
2 changed files with 6 additions and 4 deletions
|
@ -6,13 +6,13 @@
|
|||
#ifdef CONFIG_DEBUG_VM
|
||||
#define VM_BUG_ON(cond) BUG_ON(cond)
|
||||
#else
|
||||
#define VM_BUG_ON(cond) do { } while(0)
|
||||
#define VM_BUG_ON(cond) do { } while (0)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_VIRTUAL
|
||||
#define VIRTUAL_BUG_ON(cond) BUG_ON(cond)
|
||||
#else
|
||||
#define VIRTUAL_BUG_ON(cond) do { } while(0)
|
||||
#define VIRTUAL_BUG_ON(cond) do { } while (0)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -180,8 +180,10 @@ struct page *vmalloc_to_page(const void *vmalloc_addr)
|
|||
pmd_t *pmd;
|
||||
pte_t *ptep, pte;
|
||||
|
||||
/* XXX we might need to change this if we add VIRTUAL_BUG_ON for
|
||||
* architectures that do not vmalloc module space */
|
||||
/*
|
||||
* XXX we might need to change this if we add VIRTUAL_BUG_ON for
|
||||
* architectures that do not vmalloc module space
|
||||
*/
|
||||
VIRTUAL_BUG_ON(!is_vmalloc_addr(vmalloc_addr) &&
|
||||
!is_module_address(addr));
|
||||
|
||||
|
|
Loading…
Reference in a new issue