Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3506453ioo; Wed, 25 May 2022 02:04:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlZbRFXQFq96+z1Gv8bu6uLDphAdtarHXECZa7PRFQ39GiMFNkCMFVr83CNZGA86ZZ6Gcx X-Received: by 2002:a05:6402:2384:b0:42b:42c7:f63e with SMTP id j4-20020a056402238400b0042b42c7f63emr19727348eda.216.1653469465868; Wed, 25 May 2022 02:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653469465; cv=none; d=google.com; s=arc-20160816; b=IUHKZLzzsNOizHYaGSknr4I1jyVDrMqy2LyEqzg3W5/0oajCDTL+9d4nApMi1GYO2h uJrmd3ZDEbL44ga9RFM0Oly1c9VRUnFmCccPWSubKGia3LClucxAO2x49GN+FL+KbQa3 fUlkCvg3m8qN5TEOpZmOXc+xQxn2kSTSpQeafuC7F571pl1PNfc0HmotTUy41umAFxvD tibKXagR/ZtG9G+Gr/NeRcnUKE0QcGLsc2VE5Erpvw3B4Oa1zXyZNEkNyoeTsp85zvqt UiWkgFrepb8Wh+AEXmxqYVmkBDZm5AZEDjagyTiiV61dvr859lgMsFuDplisw6SV0hfk ceSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ladsc9ZbRsPnjNV3GwZ0vHfPJUjVRQLSEgZV//8wTc8=; b=JuCcrH/piK2PZttPSlMLzMh9/Z33kJxKpUHqqdrKosyifmzbkwHaU1rVDcB5R7Ax7d JpSYTVlKoXpPJTQihLO94eSHqnGXZZnzHixpUlOErcY6+xo0dx9ZdVuARx9nRwzRRuL2 ECEYeGtl6QNw6bGAjZ18q//bWEipjudTusaELrCcYByxVAK/crOgD+7E0Pn1yyRM0XmO 9uEbuiV+/nwGlss0lypJREL83G1W+nYN8vpua8XQrAj9nLimC8Of9vVaRphwXLTI+V2n LG4pq7D90JXb2BGpVKGrx4xNIaUVQP+7QAeG8wYeyEksBqFkv+TVub3rfnTyAV36Wi7Z vGOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs37-20020a1709073ea500b006fed02b6308si9990925ejc.412.2022.05.25.02.03.58; Wed, 25 May 2022 02:04:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbiEYIb6 (ORCPT + 99 others); Wed, 25 May 2022 04:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232674AbiEYIbr (ORCPT ); Wed, 25 May 2022 04:31:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99B18B65 for ; Wed, 25 May 2022 01:31:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 024BCB81CEF for ; Wed, 25 May 2022 08:31:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62179C385B8; Wed, 25 May 2022 08:31:40 +0000 (UTC) Date: Wed, 25 May 2022 09:31:36 +0100 From: Catalin Marinas To: Steven Rostedt Cc: Chengming Zhou , mark.rutland@arm.com, linux-kernel@vger.kernel.org, kbuild-all@lists.01.org, lkp@intel.com Subject: Re: [PATCH] ftrace/fgraph: fix increased missing-prototypes warnings Message-ID: References: <20220506032737.23375-1-zhouchengming@bytedance.com> <20220524191718.5d906700@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220524191718.5d906700@gandalf.local.home> X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 24, 2022 at 07:17:18PM -0400, Steven Rostedt wrote: > On Fri, 6 May 2022 11:27:37 +0800 > Chengming Zhou wrote: > > > After commit e999995c84c3 ("ftrace: cleanup ftrace_graph_caller enable > > and disable") merged into the linux-next tree, the kernel test robot > > (lkp@intel.com) has send out report that there are increased missing-prototypes > > warnings caused by that commit. > > > > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 \ > > O=build_dir ARCH=sh SHELL=/bin/bash kernel/trace/ > > warning: no previous prototype for 'ftrace_enable_ftrace_graph_caller' [-Wmissing-prototypes] > > warning: no previous prototype for 'ftrace_disable_ftrace_graph_caller' [-Wmissing-prototypes] > > warning: no previous prototype for 'ftrace_return_to_handler' [-Wmissing-prototypes] > > warning: no previous prototype for 'ftrace_graph_sleep_time_control' [-Wmissing-prototypes] > > > > BTW there are so many missing-prototypes warnings if build kernel with "W=1". > > > > The increased warnings for 'ftrace_[enable,disable]_ftrace_graph_caller' > > is caused by CONFIG_FUNCTION_GRAPH_TRACER && !CONFIG_DYNAMIC_FTRACE, > > so the declarations in can't be seen in fgraph.c. > > > > And this warning can't reproduce on x86_64 since x86_64 select > > HAVE_FUNCTION_GRAPH_TRACER only when DYNAMIC_FTRACE, so fgraph.c will > > always see the declarations in . > > > > This patch fix the increased warnings by put the definitions in > > CONFIG_DYNAMIC_FTRACE although there are no real problems exist. > > > > Signed-off-by: Chengming Zhou > > The change this fixes was merged into the ARM tree and I do not have that > code, so I can not apply this. Ah, I missed this patch. The commit mentioned is in mainline now but I'm happy to add it to the arm64 tree and send before -rc1. -- Catalin