Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1261428rwd; Thu, 25 May 2023 10:04:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WHlwWwz5aNCgTm6rwormNAnA+whFOUVwJq+bJPiN7ZrtMfYNixOhajhwg6dNCb+0p7ZeD X-Received: by 2002:a05:6a00:cc5:b0:64d:2e0a:4812 with SMTP id b5-20020a056a000cc500b0064d2e0a4812mr9958462pfv.17.1685034246376; Thu, 25 May 2023 10:04:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685034246; cv=none; d=google.com; s=arc-20160816; b=dnSO4mw5veH4/1GIATy1qitdeA28tDrn+RLFJb+sFS52KSII8qqrTGpbVMunAspuG3 zWFPwaQ53BMFOnVl9Jp5+iheIvKt6nzRnN7+1tF22Z+82C7ZSKmhDT9ar5INy3F8/tYs 5BiOAqwaDW8m7IoJtjustnXUFk0H80vMdIvGVwax5KkT+Ef95pyRZ4YBNDhs7ucfISUO /u5tECeHRNGM9cEWnl2btPhLHxdsDYeijCWsWK5E3xtbc5Gj9PlX7GqZNnJ2zeddXQLp hQOV6+g5oHr5itfaQpHhABh8hbtlPMKesWnqD93CYQukZf45cNLRh2zTQaN/BQFOfSOm kpBA== 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=Ef/onNzxyeBNm3fFZvjBe6F6tJR03G1UthXx3/P7NH4=; b=OKfv62tgC9ByQxVGJqQgJ8yf6jSy4jf05ovUz9OWRMXsnCsWxr/0CU/tnOjfa1P5+6 dpmzUolChCwHkrshWPs/VOXW3OcNmzSeZd+DeGrNrkQJIDli9pPFL1Tc7Vcj0nNAbigs QMg2uuF53bxb5O2YbEDUDbR5IG8t3AwqVpG4LT509kDyBmui4HyZ7i8WWyke/8gbxEs/ HK2P8+eyxgvRIvJyUt+9wGb301uad/PomcVmLxuVTkdu7c4P4yUhXlG7A/+lolWRPXuY SCTatl+UTIHc9u8sT/P8GR6e6YkUuCMBsUmENHEXQ1nqUkSwSC1+Os7b0HO6eyLU2yIy 7XBg== 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 j62-20020a638b41000000b0053eefa04db9si1612454pge.48.2023.05.25.10.03.51; Thu, 25 May 2023 10:04:06 -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 S240387AbjEYQuW (ORCPT + 99 others); Thu, 25 May 2023 12:50:22 -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> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,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 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