Received: by 2002:a05:7412:85a1:b0:e2:908c:2ebd with SMTP id n33csp106127rdh; Mon, 30 Oct 2023 15:37:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHB7GWYiFiBqwpbsGHu+DhKnpmGxzyxJFZA2sUewKy2MaxPGp+i73vo/9FuQOaeP8azuYgj X-Received: by 2002:a05:6359:8089:b0:168:d966:c1e8 with SMTP id re9-20020a056359808900b00168d966c1e8mr8324795rwb.30.1698705459889; Mon, 30 Oct 2023 15:37:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698705459; cv=none; d=google.com; s=arc-20160816; b=MScBo/ahrCAHkraxGgMAyKrGXNuUH0Sh7dgHGLprMnxIWsiCMgNEPHu2hAsVyHK/BP xafQzIM7+UbyHHfqw3t28/GtiiZc0rTMpnXYycJ3Yfdo76ZVzw5MLGUYDA1Ly9ceLwqh LHIDDg+oZ1ij5Scgi4iuVfNOvhVzh8IZuiP4TDdCxssFqaRZQQwPX4Ftlx8+c/pdVLGX jUwxE9BBrE1WxM4yq4J0G2Yn49NrWjY6OsfmmJyst5eNr9qOBrbCgTrTshemjCcv1W5J SXaP0amSmNKn6I+MszYqtq/1IkZv4tW1ZaqdNNCsbXB/uXD1LkumYd8vVa05bamXzQGf Yaew== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=4kKApIrZfOWRp5PuLUKS36x2cHJeUlADn2R2ZRJUers=; fh=JJFmRoNRvQWQzdn48NwxWb3T2HCWl93yueCrhC/G834=; b=K9vv0KU3Iucf3BYHRwuKSa7L4uvXr5rTasT/ZMwGC0zJthBh9Aid7c/+JPVCHcIIwI Xww8QD8SXPp0ijTnrzkRrJ4tOAoRmU82g+sPGps5q76MtmKrQxfJWByrt9otcOLYX8ie gptLmsnPF4ImzEPNg343MCWmuKsSv1TUnPSix9MQz1HHuhxRSeieHft/tfPYsr2NRw7H BYOVvbXdCYZc4hTTgY41aWo9mN+TOR6QEQbc5AmMphJXwg0mawaG+P9HqQ/0SXba/gfx bgTWccM3+jnVp3FktyjD3/kOSyWCEhrPjkYfIyp8jDNDWk0Z14WC5a+r6lxr/fRcpuV1 Ry2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id cn3-20020a056a020a8300b0056959099f46si73425pgb.856.2023.10.30.15.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 15:37:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 1AB4080B2D74; Mon, 30 Oct 2023 15:37:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232256AbjJ3Whb (ORCPT + 99 others); Mon, 30 Oct 2023 18:37:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232225AbjJ3Wh3 (ORCPT ); Mon, 30 Oct 2023 18:37:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 458A2126; Mon, 30 Oct 2023 15:37:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2948DC433C7; Mon, 30 Oct 2023 22:37:24 +0000 (UTC) Date: Mon, 30 Oct 2023 18:37:22 -0400 From: Steven Rostedt To: kernel test robot Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , linux-sh@vger.kernel.org Subject: Re: arch/sh/boot/compressed/misc.c:118:6: warning: no previous prototype for 'arch_ftrace_ops_list_func' Message-ID: <20231030183722.21712d18@gandalf.local.home> In-Reply-To: <202310310611.5RteDpO7-lkp@intel.com> References: <202310310611.5RteDpO7-lkp@intel.com> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 30 Oct 2023 15:37:37 -0700 (PDT) On Tue, 31 Oct 2023 06:15:04 +0800 kernel test robot wrote: > Hi Steven, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 14ab6d425e80674b6a0145f05719b11e82e64824 > commit: 17b251a290ba84a0c2c5c82df9596cb2e7207ca6 ftrace/sh: Add arch_ftrace_ops_list_func stub to have compressed image still link > date: 2 years ago > config: sh-allnoconfig (https://download.01.org/0day-ci/archive/20231031/202310310611.5RteDpO7-lkp@intel.com/config) > compiler: sh4-linux-gcc (GCC) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231031/202310310611.5RteDpO7-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202310310611.5RteDpO7-lkp@intel.com/ > > All warnings (new ones prefixed by >>): > > arch/sh/boot/compressed/misc.c:109:6: warning: no previous prototype for '__stack_chk_fail' [-Wmissing-prototypes] > 109 | void __stack_chk_fail(void) > | ^~~~~~~~~~~~~~~~ > arch/sh/boot/compressed/misc.c:115:6: warning: no previous prototype for 'ftrace_stub' [-Wmissing-prototypes] > 115 | void ftrace_stub(void) > | ^~~~~~~~~~~ > >> arch/sh/boot/compressed/misc.c:118:6: warning: no previous prototype for 'arch_ftrace_ops_list_func' [-Wmissing-prototypes] > 118 | void arch_ftrace_ops_list_func(void) > | ^~~~~~~~~~~~~~~~~~~~~~~~~ As the comment states, this is needed only because the linker script vmlinux.lds.h references them, and it will not build without it. If someone really cares, they could simply add a header to quiet these warnings, but seriously, these functions are just stubs to allow the sh boot portion use the vmlinux.lds.h linker script. These stubs are only for satisfying linker references and are not used. I'm not going to be the one to bother "fixing" it. -- Steve > arch/sh/boot/compressed/misc.c:128:6: warning: no previous prototype for 'decompress_kernel' [-Wmissing-prototypes] > 128 | void decompress_kernel(void) > | ^~~~~~~~~~~~~~~~~ > > > vim +/arch_ftrace_ops_list_func +118 arch/sh/boot/compressed/misc.c > > 113 > 114 /* Needed because vmlinux.lds.h references this */ > 115 void ftrace_stub(void) > 116 { > 117 } > > 118 void arch_ftrace_ops_list_func(void) > 119 { > 120 } > 121 >