Skip to contentSkip to conversation

mn10300: Use is_vmalloc_addr

PATCH New Min-Hua Chen 1 participant 1 message Oct 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mn10300: Use is_vmalloc_addr

To is_vmalloc_addr() to check if an address is a vmalloc address instead of checking VMALLOC_START and VMALLOC_END manually.

---
 arch/mn10300/kernel/gdb-stub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mn10300/kernel/gdb-stub.c +1 -1
index a128c57..f69026a 100644
@@ -441,7 +441,7 @@ static const unsigned char gdbstub_insn_sizes[256] =
 static int __gdbstub_mark_bp(u8 *addr, int ix)
 {
 	/* vmalloc area */
-	if (((u8 *) VMALLOC_START <= addr) && (addr < (u8 *) VMALLOC_END))
+	if (is_vmalloc_addr((void *)addr))
 		goto okay;
 	/* SRAM, SDRAM */
 	if (((u8 *) 0x80000000UL <= addr) && (addr < (u8 *) 0xa0000000UL))
Signature · 1 line
2.7.4