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 622EAC433EF for ; Fri, 26 Nov 2021 12:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377393AbhKZM3F (ORCPT ); Fri, 26 Nov 2021 07:29:05 -0500 Received: from foss.arm.com ([217.140.110.172]:33220 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237112AbhKZM1E (ORCPT ); Fri, 26 Nov 2021 07:27:04 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 05AE711D4; Fri, 26 Nov 2021 04:23:52 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.34.174]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B7003F66F; Fri, 26 Nov 2021 04:23:50 -0800 (PST) Date: Fri, 26 Nov 2021 12:23:48 +0000 From: Mark Rutland To: kernel test robot Cc: "Madhavan T. Venkataraman" , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Mark Brown Subject: Re: [mark:arm64/stacktrace/arch-stack-walk 9/11] arch/arm64/kernel/time.c:49:9: error: implicit declaration of function 'arch_stack_walk' Message-ID: References: <202111241909.UDKmhCqg-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202111241909.UDKmhCqg-lkp@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 24, 2021 at 07:37:58PM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git arm64/stacktrace/arch-stack-walk > head: e982ef8a4c9b8bc2f92b7cdafbae70aa31b679d1 > commit: 36fa81ac0d771ba0080197745a39dbe94562c615 [9/11] arm64: Make profile_pc() use arch_stack_walk() > config: arm64-alldefconfig (https://download.01.org/0day-ci/archive/20211124/202111241909.UDKmhCqg-lkp@intel.com/config) > compiler: aarch64-linux-gcc (GCC) 11.2.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/commit/?id=36fa81ac0d771ba0080197745a39dbe94562c615 > git remote add mark https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git > git fetch --no-tags mark arm64/stacktrace/arch-stack-walk > git checkout 36fa81ac0d771ba0080197745a39dbe94562c615 > # save the config file to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > arch/arm64/kernel/time.c: In function 'profile_pc': > >> arch/arm64/kernel/time.c:49:9: error: implicit declaration of function 'arch_stack_walk' [-Werror=implicit-function-declaration] > 49 | arch_stack_walk(profile_pc_cb, &prof_pc, current, regs); > | ^~~~~~~~~~~~~~~ > arch/arm64/kernel/time.c: At top level: > arch/arm64/kernel/time.c:55:13: warning: no previous prototype for 'time_init' [-Wmissing-prototypes] > 55 | void __init time_init(void) > | ^~~~~~~~~ > cc1: some warnings being treated as errors The problem here is that arch_stack_walk() is defined in , but we only include . The same is true for other files in arm64, but we happen to get a transitive include of by chance; I'll go fix the whole series... Thanks, Mark.