Skip to contentSkip to conversation

LoongArch: undefine pr_define macro when it's appropriate

PATCH New Enze Li 1 participant 1 message Mar 30, 2023 LoongArch

lore
Share & tools
lore

Enze Li

author
#0 lore raw

PATCH 1/1 LoongArch: undefine pr_define macro when it's appropriate

There's a macro definition that is only used within the output_pgtable_bits_defines function. We don't need to spread this macro elsewhere. Therefore, it should be undefined when appropriate.

---
 arch/loongarch/mm/tlb.c | 1 +
 1 file changed, 1 insertion(+)
arch/loongarch/mm/tlb.c +1 -0
index 8bad6b0cff59..99f607afaf80 100644
@@ -248,6 +248,7 @@ static void output_pgtable_bits_defines(void)
 	pr_define("_PAGE_NO_EXEC_SHIFT %d\n", _PAGE_NO_EXEC_SHIFT);
 	pr_define("_PFN_SHIFT %d\n", _PFN_SHIFT);
 	pr_debug("\n");
+#undef pr_define
 }
 
 #ifdef CONFIG_NUMA

base-commit: fc89d7fb499b0162e081f434d45e8d1b47e82ece

Signature · 1 line
2.34.1