Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp6029101pxb; Mon, 14 Feb 2022 13:30:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJx427kWyL7rXXHR+p/Zbi8r4kfnLu3BIiYD+L3Jru/WM4WUqPYuxm9rxXPF6JfrckZSk209 X-Received: by 2002:a05:6a00:d45:: with SMTP id n5mr1037304pfv.71.1644874217366; Mon, 14 Feb 2022 13:30:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644874217; cv=none; d=google.com; s=arc-20160816; b=0FNMlkuDwtxKerNQcD7DxJbYry1JF/6oufQuIrc42iFjnacUinkE9aeqEcGlHtsBlf nBqDGRAdQK1m/x1TLUTa+jTfEQqGUjRdpdx70pbgwSAEwSuDvseqUqAq3I59xRMuRMXA RlKLmQLHbwLi4zX/6Dlhy0hvJcQKRkFYkFomFaG7WjEHKQaXs16IrkRwrQZjpTQI6o9L UUG04o5ijcnPH6RBUVGdvgm5h5k0psius//Zg1hG/g6FNZCHBWQ+z4zaAEJdNdjANLxl G/ETlQUWZ15H2mNH41WqqUyb9U7CsImRJTFNKJziWB4om7ooQq3WBVRClD+Qrg7+QXfm juvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=q7IwDQpJ8VqiYdAAh/1QXNvd+pYfec59L3lkw0+4mUY=; b=hkdJ290qIiEidkY4xv1J1Ju27lKCifGCoGzlG1Pd8bvM025TsqnIYAtHFVUgmagY98 NHg6T42qVwl2l6pQrzPqW/VbkHB3N6+6qjCAu3w/+fOFzVTFv6yKi8rQys4OqglAs0zw w8sIATX6KLlKtTih3EFwsg3VpbzcrSqcMFD3dS7ZaPd7lZM/aYx/UDoH4pyJjdZ8KqW7 JLR37IaABK6wW3SDHMuMsATCIQj3L8wONEodYVrJHgUEDK8KdLlzHcoVkjIDRm9uqqbP kQimEnqSou+F2alD0nQTLpQ2f2XiGMRZ7o5KWJUNWaCwmdaTXEJCTfLTIS2gaLzd6EEB wO3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b+KNMhMm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q17si15133125plh.251.2022.02.14.13.30.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 13:30:17 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b+KNMhMm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 65BAC13D570; Mon, 14 Feb 2022 12:49:49 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229744AbiBNUtt (ORCPT + 99 others); Mon, 14 Feb 2022 15:49:49 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229757AbiBNUto (ORCPT ); Mon, 14 Feb 2022 15:49:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E8AC15F601 for ; Mon, 14 Feb 2022 12:49:29 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id C5942610A1 for ; Mon, 14 Feb 2022 19:28:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4CF1C340EB; Mon, 14 Feb 2022 19:28:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644866937; bh=zRzXMCM9AhF3WBIJ4GuTK+ukLtut1AMLJ1G7ORC9iMo=; h=From:To:Cc:Subject:Date:From; b=b+KNMhMmSRyY30RB495UofKiq8RCAoxZ29bKm99qeU5cyjakjYbzzcr74HtjwzIwr cOurBuPKU/EahWT87CKDYhUaP0vAThxFcXXQN0i1qoFSAS+kofwPd2BIMA61cNJ9s5 aTTuDcblueQaenPKeRXnNbduZxc8vDKFXMtn2jBHsd0e90iktNhU0o+NblIF+KWrGo PKL3ZV3PpwTq9euozbw7iLvsG/c0uxGER+GXMeGqOwh9LFUdOCPJ/ds1lwHHLJ9H0b 6FHu4YkEKEiBEgUy+gGS7/gxb8o68h17PuQVsqbZwjMZ2XiI8J7yK93/CXvIz5jiZV B6c/tEaw3NlvQ== From: Nathan Chancellor To: Steven Rostedt , Ingo Molnar Cc: Nick Desaulniers , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor , kernel test robot Subject: [PATCH] ftrace: Remove unused ftrace_startup_enable() stub Date: Mon, 14 Feb 2022 12:28:47 -0700 Message-Id: <20220214192847.488166-1-nathan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 When building with clang + CONFIG_DYNAMIC_FTRACE=n + W=1, there is a warning: kernel/trace/ftrace.c:7194:20: error: unused function 'ftrace_startup_enable' [-Werror,-Wunused-function] static inline void ftrace_startup_enable(int command) { } ^ 1 error generated. Clang warns on instances of static inline functions in .c files with W=1 after commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). The ftrace_startup_enable() stub has been unused since commit e1effa0144a1 ("ftrace: Annotate the ops operation on update"), where its use outside of the CONFIG_DYNAMIC_TRACE section was replaced by ftrace_startup_all(). Remove it to resolve the warning. Reported-by: kernel test robot Signed-off-by: Nathan Chancellor --- kernel/trace/ftrace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index f9feb197b2da..a4b462b6f944 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -7191,7 +7191,6 @@ static int __init ftrace_nodyn_init(void) core_initcall(ftrace_nodyn_init); static inline int ftrace_init_dyn_tracefs(struct dentry *d_tracer) { return 0; } -static inline void ftrace_startup_enable(int command) { } static inline void ftrace_startup_all(int command) { } # define ftrace_startup_sysctl() do { } while (0) base-commit: 754e0b0e35608ed5206d6a67a791563c631cec07 -- 2.35.1