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 26F1AC6FD1D for ; Mon, 20 Mar 2023 17:58:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbjCTR6R (ORCPT ); Mon, 20 Mar 2023 13:58:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjCTR5z (ORCPT ); Mon, 20 Mar 2023 13:57:55 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74E1331BF4; Mon, 20 Mar 2023 10:53:03 -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 sin.source.kernel.org (Postfix) with ESMTPS id CC3A4CE13A1; Mon, 20 Mar 2023 17:51:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A52E8C4339B; Mon, 20 Mar 2023 17:51:34 +0000 (UTC) Date: Mon, 20 Mar 2023 13:51:32 -0400 From: Steven Rostedt To: Mark Rutland Cc: Tom Rix , mhiramat@kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] ftrace: set direct_ops storage-class-specifier to static Message-ID: <20230320135132.26b29f36@gandalf.local.home> In-Reply-To: References: <20230311135113.711824-1-trix@redhat.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Mar 2023 17:44:13 +0000 Mark Rutland wrote: > On Sat, Mar 11, 2023 at 08:51:13AM -0500, Tom Rix wrote: > > smatch reports this warning > > kernel/trace/ftrace.c:2594:19: warning: > > symbol 'direct_ops' was not declared. Should it be static? > > > > The variable direct_ops is only used in ftrace.c, so it should be static > > > > Signed-off-by: Tom Rix > > This makes sense, and as this stands: > > Acked-by: Mark Rutland > > ... but Florent's rework of the API is going to remove this anyway: > > https://lore.kernel.org/all/20230316173811.1223508-1-revest@chromium.org/ > https://lore.kernel.org/all/20230316173811.1223508-4-revest@chromium.org/ > > ... so if we take Florent's series, this patch isn't necessary. Except that it's already upstream: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8732565549011cabbea08329a1aefd78a68d96c7 I had to rebase Florent's patch to accommodate this change. -- Steve