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>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230412101840.13601-1-sunying@nj.iscas.ac.cn>
Date:   Wed, 12 Apr 2023 18:18:40 +0800
From:   sunying@...iscas.ac.cn
To:     rostedt@...dmis.org, mhiramat@...nel.org
Cc:     linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org,
        Ying Sun <sunying@...iscas.ac.cn>
Subject: [PATCH] trace/recordmcount: add the necessary dependencies

From: Ying Sun <sunying@...iscas.ac.cn>

HAVE_C_RECORDMCOUNT is used only if the condition
"ifdef CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT" is met in the Makefile,
adding a dependency constraint on this configuration option
 to prevent it from being set ‘y' but not taking effect.

Suggested-by: Yanjie Ren <renyanjie01@...il.com>
Signed-off-by: Ying Sun <sunying@...iscas.ac.cn>
---
 kernel/trace/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 8cf97fa4a4b3..69bb70b6bdd7 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -94,6 +94,7 @@ config HAVE_OBJTOOL_NOP_MCOUNT
 
 config HAVE_C_RECORDMCOUNT
 	bool
+	depends on FTRACE_MCOUNT_USE_RECORDMCOUNT
 	help
 	  C version of recordmcount available?
 
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ