From patchwork Fri Apr 14 08:27:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: sunying@nj.iscas.ac.cn X-Patchwork-Id: 13211110 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A06BFC77B6E for ; Fri, 14 Apr 2023 08:29:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230335AbjDNI3L (ORCPT ); Fri, 14 Apr 2023 04:29:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjDNI24 (ORCPT ); Fri, 14 Apr 2023 04:28:56 -0400 Received: from cstnet.cn (smtp80.cstnet.cn [159.226.251.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5A21C768D; Fri, 14 Apr 2023 01:28:09 -0700 (PDT) Received: from localhost.localdomain (unknown [124.16.141.245]) by APP-01 (Coremail) with SMTP id qwCowAAnL5+ODjlkXzDPAw--.24916S2; Fri, 14 Apr 2023 16:27:58 +0800 (CST) From: sunying@nj.iscas.ac.cn To: rostedt@goodmis.org, mhiramat@kernel.org, linux-kernel@vger.kernel.org Cc: linux-trace-kernel@vger.kernel.org, Ying Sun Subject: [PATCH v1] trace: add the necessary dependencies of configuration options Date: Fri, 14 Apr 2023 16:27:56 +0800 Message-Id: <20230414082756.24119-1-sunying@nj.iscas.ac.cn> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CM-TRANSID: qwCowAAnL5+ODjlkXzDPAw--.24916S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xw1kZryUWr13Ww45JF4ruFg_yoW3Zwb_Za yUJa48Gw4DZryqgrW3WFs3Zr1Fv3y7WFZYv3WUtrZrJw4DKr45GasxJFn8JFsrG39rWF13 urWfXrZ3K3WfujkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbaAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr 1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r126r1DMcIj6I8E87Iv67AKxVW8Jr0_Cr1UMcvjeVCFs4IE7xkEbVWUJV W8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lw4CEc2x0rVAKj4xx MxkF7I0En4kS14v26r126r1DMxkIecxEwVAFwVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxV CFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r10 6r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxV WUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG 6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_Gr UvcSsGvfC2KfnxnUUI43ZEXa7VUj1lk3UUUUU== X-Originating-IP: [124.16.141.245] X-CM-SenderInfo: 5vxq5xdqj60y4olvutnvoduhdfq/ Precedence: bulk List-ID: X-Mailing-List: linux-trace-kernel@vger.kernel.org From: Ying Sun HAVE_NOP_MCOUNT is used only if the condition "ifdef CONFIG_FTRACE_MCOUNT_USE_CC" 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 Signed-off-by: Ying Sun --- kernel/trace/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 8cf97fa4a4b3..c640f405cc91 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -77,6 +77,7 @@ config HAVE_FENTRY config HAVE_NOP_MCOUNT bool + depends on FTRACE_MCOUNT_USE_CC help Arch supports the gcc options -pg with -mrecord-mcount and -nop-mcount