lkml.org 
[lkml]   [2023]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] trace/recordmcount: add the necessary dependencies
Date
From: Ying Sun <sunying@nj.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@gmail.com>
Signed-off-by: Ying Sun <sunying@nj.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
\
 
 \ /
  Last update: 2023-04-12 12:29    [W:0.029 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site