Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, MM: virtual address debug, cleanups

Signed-off-by: Ingo Molnar <mingo@elte.hu>

+6 -4
+2 -2
include/linux/mmdebug.h
··· 6 6 #ifdef CONFIG_DEBUG_VM 7 7 #define VM_BUG_ON(cond) BUG_ON(cond) 8 8 #else 9 - #define VM_BUG_ON(cond) do { } while(0) 9 + #define VM_BUG_ON(cond) do { } while (0) 10 10 #endif 11 11 12 12 #ifdef CONFIG_DEBUG_VIRTUAL 13 13 #define VIRTUAL_BUG_ON(cond) BUG_ON(cond) 14 14 #else 15 - #define VIRTUAL_BUG_ON(cond) do { } while(0) 15 + #define VIRTUAL_BUG_ON(cond) do { } while (0) 16 16 #endif 17 17 18 18 #endif
+4 -2
mm/vmalloc.c
··· 180 180 pmd_t *pmd; 181 181 pte_t *ptep, pte; 182 182 183 - /* XXX we might need to change this if we add VIRTUAL_BUG_ON for 184 - * architectures that do not vmalloc module space */ 183 + /* 184 + * XXX we might need to change this if we add VIRTUAL_BUG_ON for 185 + * architectures that do not vmalloc module space 186 + */ 185 187 VIRTUAL_BUG_ON(!is_vmalloc_addr(vmalloc_addr) && 186 188 !is_module_address(addr)); 187 189