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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AEEDC433EF for ; Fri, 11 Mar 2022 01:45:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BE4828D0002; Thu, 10 Mar 2022 20:45:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B6C9D8D0001; Thu, 10 Mar 2022 20:45:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9BE9A8D0002; Thu, 10 Mar 2022 20:45:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.27]) by kanga.kvack.org (Postfix) with ESMTP id 898C08D0001 for ; Thu, 10 Mar 2022 20:45:17 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 4E74C248E9 for ; Fri, 11 Mar 2022 01:45:17 +0000 (UTC) X-FDA: 79230412674.05.805B4C1 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf08.hostedemail.com (Postfix) with ESMTP id 5A601160013 for ; Fri, 11 Mar 2022 01:45:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646963116; x=1678499116; h=date:from:to:cc:subject:message-id:mime-version; bh=Rauxs/5suKIb9B7UTIkUC+nYFKHhDE8nv1hVP0nUPyg=; b=INwkvSRYd/4dll3npUtQn0/BHNX719M6emXd0jfqWBsWo6oejpdcl0/D wZ/8mK65WDGuM6ltHcJJB7RHNKpPkkz5R6BP2irzwZap6VGHnK8p/HWiU dtsuYjNTiO1O1Q287PDP4Ozis6fVYUt2+TBo0B3QYbwdsv19m2kcooFj8 ktB/0zxoihCPOGJ77Sympoob4h8xLYHeT3BXt8ICyARBpVHQ2YXVQgax+ Drcb5PUeHmgUKC6xm2hhjCt+keqs7MSE97OmPR0LPTx8yz79Q/njzadkG cn9JbnVD1CqUJeMfZbE8tk0w9Xv2TcjUmrBIhZJmDpsoIJCoA++lh9oAd A==; X-IronPort-AV: E=McAfee;i="6200,9189,10282"; a="341896515" X-IronPort-AV: E=Sophos;i="5.90,172,1643702400"; d="scan'208";a="341896515" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2022 17:45:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,172,1643702400"; d="scan'208";a="712668313" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 10 Mar 2022 17:45:12 -0800 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nSULA-0005fh-4w; Fri, 11 Mar 2022 01:45:12 +0000 Date: Fri, 11 Mar 2022 09:44:11 +0800 From: kernel test robot To: Ard Biesheuvel Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , "Steven Rostedt (Google)" Subject: [linux-next:master 4103/11953] arch/arm/kernel/ftrace.c:229:6: warning: no previous prototype for function 'prepare_ftrace_return' Message-ID: <202203110903.3xDyTUVl-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-User: X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 5A601160013 X-Stat-Signature: newyht7wk15y1mh9s1gihm4t4nqeztkh Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=INwkvSRY; spf=none (imf08.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1646963116-478900 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Ard, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 71941773e143369a73c9c4a3b62fbb60736a1182 commit: 41918ec82eb6f80c8b401422f27ca76c85aa0cb7 [4103/11953] ARM: ftrace: enable the graph tracer with the EABI unwinder config: arm-aspeed_g4_defconfig (https://download.01.org/0day-ci/archive/20220311/202203110903.3xDyTUVl-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 276ca87382b8f16a65bddac700202924228982f6) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=41918ec82eb6f80c8b401422f27ca76c85aa0cb7 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 41918ec82eb6f80c8b401422f27ca76c85aa0cb7 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/kernel/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/arm/kernel/ftrace.c:229:6: warning: no previous prototype for function 'prepare_ftrace_return' [-Wmissing-prototypes] void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr, ^ arch/arm/kernel/ftrace.c:229:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr, ^ static 1 warning generated. vim +/prepare_ftrace_return +229 arch/arm/kernel/ftrace.c 376cfa8730c08c Tim Bird 2010-10-09 226 376cfa8730c08c Tim Bird 2010-10-09 227 #ifdef CONFIG_FUNCTION_GRAPH_TRACER 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 228 asmlinkage 376cfa8730c08c Tim Bird 2010-10-09 @229 void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr, 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 230 unsigned long frame_pointer, 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 231 unsigned long stack_pointer) 376cfa8730c08c Tim Bird 2010-10-09 232 { 376cfa8730c08c Tim Bird 2010-10-09 233 unsigned long return_hooker = (unsigned long) &return_to_handler; 376cfa8730c08c Tim Bird 2010-10-09 234 unsigned long old; 376cfa8730c08c Tim Bird 2010-10-09 235 376cfa8730c08c Tim Bird 2010-10-09 236 if (unlikely(atomic_read(¤t->tracing_graph_pause))) 376cfa8730c08c Tim Bird 2010-10-09 237 return; 376cfa8730c08c Tim Bird 2010-10-09 238 953f534a7ed6b7 Ard Biesheuvel 2022-01-25 239 if (IS_ENABLED(CONFIG_UNWINDER_FRAME_POINTER)) { 953f534a7ed6b7 Ard Biesheuvel 2022-01-25 240 /* FP points one word below parent's top of stack */ 953f534a7ed6b7 Ard Biesheuvel 2022-01-25 241 frame_pointer += 4; 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 242 } else { 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 243 struct stackframe frame = { 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 244 .fp = frame_pointer, 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 245 .sp = stack_pointer, 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 246 .lr = self_addr, 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 247 .pc = self_addr, 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 248 }; 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 249 if (unwind_frame(&frame) < 0) 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 250 return; 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 251 if (frame.lr != self_addr) 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 252 parent = frame.lr_addr; 41918ec82eb6f8 Ard Biesheuvel 2022-01-25 253 frame_pointer = frame.sp; 953f534a7ed6b7 Ard Biesheuvel 2022-01-25 254 } 953f534a7ed6b7 Ard Biesheuvel 2022-01-25 255 376cfa8730c08c Tim Bird 2010-10-09 256 old = *parent; 376cfa8730c08c Tim Bird 2010-10-09 257 *parent = return_hooker; 376cfa8730c08c Tim Bird 2010-10-09 258 f1f5b14afd7cce Steven Rostedt (VMware 2018-11-18 259) if (function_graph_enter(old, self_addr, frame_pointer, NULL)) 376cfa8730c08c Tim Bird 2010-10-09 260 *parent = old; 376cfa8730c08c Tim Bird 2010-10-09 261 } dd686eb13959e4 Rabin Vincent 2010-11-06 262 :::::: The code at line 229 was first introduced by commit :::::: 376cfa8730c08c0394d0aa1d4a80fd8c9971f323 ARM: ftrace: function graph tracer support :::::: TO: Tim Bird :::::: CC: Rabin Vincent --- 0-DAY CI Kernel Test Service https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org