lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230330085059.761204-1-lienze@kylinos.cn>
Date:   Thu, 30 Mar 2023 16:50:59 +0800
From:   Enze Li <lienze@...inos.cn>
To:     chenhuacai@...nel.org, kernel@...0n.name
Cc:     loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org,
        enze.li@....com, lienze@...inos.cn
Subject: [PATCH] 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.

Signed-off-by: Enze Li <lienze@...inos.cn>
---
 arch/loongarch/mm/tlb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/loongarch/mm/tlb.c b/arch/loongarch/mm/tlb.c
index 8bad6b0cff59..99f607afaf80 100644
--- a/arch/loongarch/mm/tlb.c
+++ b/arch/loongarch/mm/tlb.c
@@ -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
-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ