From mboxrd@z Thu Jan 1 00:00:00 1970 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 57239C77B7E for ; Thu, 25 May 2023 16:50:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240089AbjEYQuV (ORCPT ); Thu, 25 May 2023 12:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239398AbjEYQuS (ORCPT ); Thu, 25 May 2023 12:50:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0CFF195; Thu, 25 May 2023 09:50:17 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 54D4260B39; Thu, 25 May 2023 16:50:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1129C433EF; Thu, 25 May 2023 16:50:14 +0000 (UTC) Date: Thu, 25 May 2023 17:50:12 +0100 From: Catalin Marinas To: Arnd Bergmann Cc: Steven Rostedt , Masami Hiramatsu , Arnd Bergmann , Mark Rutland , Will Deacon , Kees Cook , Florent Revest , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] tracing: avoid missing-prototype warnings Message-ID: References: <20230517125215.930689-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230517125215.930689-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-trace-kernel@vger.kernel.org On Wed, May 17, 2023 at 02:51:48PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > These are all tracing W=1 warnings in arm64 allmodconfig about missing > prototypes: > > kernel/trace/trace_kprobe_selftest.c:7:5: error: no previous prototype for 'kprobe_trace_selftest_target' [-Werror=missing-pro > totypes] > kernel/trace/ftrace.c:329:5: error: no previous prototype for '__register_ftrace_function' [-Werror=missing-prototypes] > kernel/trace/ftrace.c:372:5: error: no previous prototype for '__unregister_ftrace_function' [-Werror=missing-prototypes] > kernel/trace/ftrace.c:4130:15: error: no previous prototype for 'arch_ftrace_match_adjust' [-Werror=missing-prototypes] > kernel/trace/fgraph.c:243:15: error: no previous prototype for 'ftrace_return_to_handler' [-Werror=missing-prototypes] > kernel/trace/fgraph.c:358:6: error: no previous prototype for 'ftrace_graph_sleep_time_control' [-Werror=missing-prototypes] > arch/arm64/kernel/ftrace.c:460:6: error: no previous prototype for 'prepare_ftrace_return' [-Werror=missing-prototypes] > arch/arm64/kernel/ptrace.c:2172:5: error: no previous prototype for 'syscall_trace_enter' [-Werror=missing-prototypes] > arch/arm64/kernel/ptrace.c:2195:6: error: no previous prototype for 'syscall_trace_exit' [-Werror=missing-prototypes] > > Move the declarations to an appropriate header where they can be seen > by the caller and callee, and make sure the headers are included where > needed. > > Signed-off-by: Arnd Bergmann Acked-by: Catalin Marinas From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DFDCC77B7A for ; Thu, 25 May 2023 16:50:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6WV0qtvo9pdEtQOtpGJrzEA9qmb7uxb5CZOtx2PKPFY=; b=rl9+/FMy6KbzsL w6APSXL0ODSq+qLAQm1ulIM3eb6onohNjOgKfei7Nj/2yhPhvFl2319zcV2GEncBbQUd9yM2qHL9O MN7eHRRMSEc48PCf+u8gbaRFmI7lMDzUtsa08+bpmy2GByxmHgzhVz8w13UfpdPA7EGnheOlTuicM jlxyn5tHCkEEtpu7vEuVn9Sv0Q+LM9TfHKS+a1ao6bPdkZXF4PanYJ21iXH9CuyQqPTubYySB6joI ZcDiMFQY7VzaFYciWu4UngkDr3LLeH4MSHHYWJ6dZk5LYpmL2I+jGWPHvSG/VjttEgN71sy627K/s sbfldR6fBQ4Ap7Oc19wA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q2EAQ-00H8Yy-2g; Thu, 25 May 2023 16:50:22 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q2EAO-00H8YD-01 for linux-arm-kernel@lists.infradead.org; Thu, 25 May 2023 16:50:21 +0000 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 9667F647A4; Thu, 25 May 2023 16:50:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1129C433EF; Thu, 25 May 2023 16:50:14 +0000 (UTC) Date: Thu, 25 May 2023 17:50:12 +0100 From: Catalin Marinas To: Arnd Bergmann Cc: Steven Rostedt , Masami Hiramatsu , Arnd Bergmann , Mark Rutland , Will Deacon , Kees Cook , Florent Revest , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] tracing: avoid missing-prototype warnings Message-ID: References: <20230517125215.930689-1-arnd@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230517125215.930689-1-arnd@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230525_095020_084754_1A7C892E X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, May 17, 2023 at 02:51:48PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > These are all tracing W=1 warnings in arm64 allmodconfig about missing > prototypes: > > kernel/trace/trace_kprobe_selftest.c:7:5: error: no previous prototype for 'kprobe_trace_selftest_target' [-Werror=missing-pro > totypes] > kernel/trace/ftrace.c:329:5: error: no previous prototype for '__register_ftrace_function' [-Werror=missing-prototypes] > kernel/trace/ftrace.c:372:5: error: no previous prototype for '__unregister_ftrace_function' [-Werror=missing-prototypes] > kernel/trace/ftrace.c:4130:15: error: no previous prototype for 'arch_ftrace_match_adjust' [-Werror=missing-prototypes] > kernel/trace/fgraph.c:243:15: error: no previous prototype for 'ftrace_return_to_handler' [-Werror=missing-prototypes] > kernel/trace/fgraph.c:358:6: error: no previous prototype for 'ftrace_graph_sleep_time_control' [-Werror=missing-prototypes] > arch/arm64/kernel/ftrace.c:460:6: error: no previous prototype for 'prepare_ftrace_return' [-Werror=missing-prototypes] > arch/arm64/kernel/ptrace.c:2172:5: error: no previous prototype for 'syscall_trace_enter' [-Werror=missing-prototypes] > arch/arm64/kernel/ptrace.c:2195:6: error: no previous prototype for 'syscall_trace_exit' [-Werror=missing-prototypes] > > Move the declarations to an appropriate header where they can be seen > by the caller and callee, and make sure the headers are included where > needed. > > Signed-off-by: Arnd Bergmann Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel