From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EBB7A2104 for ; Wed, 2 Mar 2022 02:52:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646189571; x=1677725571; h=date:from:to:cc:subject:message-id:mime-version; bh=iFNsU1SVdgRA2EoTp3vOFp9fcRk5Wlp7wfV/zeJRq64=; b=gYG3Ar9NXhq073CCEIs5ieJWClxThglS6UQcPWsIXgY4BIMmVluSrhyo SIMvi1v1zZIko+u9QDEJMBnwYbRbhGNyLtimpH2QLJXZJ1Xe6LDZJmHFl fN4jzT4WYzTIw2vCDK1DLx8Sh2DJGDq+3XUaHdLQOStLAzHcJuqmM63qy oblpe0UqHDuaSQU0CYtg9NFKriO85UD5VadcWkoVYTBCxVZJyWa80NGtl HNGQqDWPciZYsQRwojDjDw5n7yrPNC9s2Lrk1r+ZXm3Nj+l1o66QScXCj hMxDq6+1dHdTRo64LwbpCrd9X0xGmDXnLljQiC24clUrnG8TVUBAfqunN A==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="240708014" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="240708014" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 18:52:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="806399754" Received: from lkp-server02.sh.intel.com (HELO e9605edfa585) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 01 Mar 2022 18:52:34 -0800 Received: from kbuild by e9605edfa585 with local (Exim 4.92) (envelope-from ) id 1nPF6Q-0000xl-2P; Wed, 02 Mar 2022 02:52:34 +0000 Date: Wed, 2 Mar 2022 10:52:03 +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 4044/9592] arch/arm/kernel/ftrace.c:229:6: warning: no previous prototype for function 'prepare_ftrace_return' Message-ID: <202203020913.I6LbmH7l-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e6ada6df471f847da3b09b357e246c62335bc0bb commit: 41918ec82eb6f80c8b401422f27ca76c85aa0cb7 [4044/9592] ARM: ftrace: enable the graph tracer with the EABI unwinder config: arm-bcm2835_defconfig (https://download.01.org/0day-ci/archive/20220302/202203020913.I6LbmH7l-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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 376cfa8730c08c0 Tim Bird 2010-10-09 226 376cfa8730c08c0 Tim Bird 2010-10-09 227 #ifdef CONFIG_FUNCTION_GRAPH_TRACER 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 228 asmlinkage 376cfa8730c08c0 Tim Bird 2010-10-09 @229 void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr, 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 230 unsigned long frame_pointer, 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 231 unsigned long stack_pointer) 376cfa8730c08c0 Tim Bird 2010-10-09 232 { 376cfa8730c08c0 Tim Bird 2010-10-09 233 unsigned long return_hooker = (unsigned long) &return_to_handler; 376cfa8730c08c0 Tim Bird 2010-10-09 234 unsigned long old; 376cfa8730c08c0 Tim Bird 2010-10-09 235 376cfa8730c08c0 Tim Bird 2010-10-09 236 if (unlikely(atomic_read(¤t->tracing_graph_pause))) 376cfa8730c08c0 Tim Bird 2010-10-09 237 return; 376cfa8730c08c0 Tim Bird 2010-10-09 238 953f534a7ed6b72 Ard Biesheuvel 2022-01-25 239 if (IS_ENABLED(CONFIG_UNWINDER_FRAME_POINTER)) { 953f534a7ed6b72 Ard Biesheuvel 2022-01-25 240 /* FP points one word below parent's top of stack */ 953f534a7ed6b72 Ard Biesheuvel 2022-01-25 241 frame_pointer += 4; 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 242 } else { 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 243 struct stackframe frame = { 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 244 .fp = frame_pointer, 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 245 .sp = stack_pointer, 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 246 .lr = self_addr, 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 247 .pc = self_addr, 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 248 }; 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 249 if (unwind_frame(&frame) < 0) 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 250 return; 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 251 if (frame.lr != self_addr) 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 252 parent = frame.lr_addr; 41918ec82eb6f80 Ard Biesheuvel 2022-01-25 253 frame_pointer = frame.sp; 953f534a7ed6b72 Ard Biesheuvel 2022-01-25 254 } 953f534a7ed6b72 Ard Biesheuvel 2022-01-25 255 376cfa8730c08c0 Tim Bird 2010-10-09 256 old = *parent; 376cfa8730c08c0 Tim Bird 2010-10-09 257 *parent = return_hooker; 376cfa8730c08c0 Tim Bird 2010-10-09 258 f1f5b14afd7cce3 Steven Rostedt (VMware 2018-11-18 259) if (function_graph_enter(old, self_addr, frame_pointer, NULL)) 376cfa8730c08c0 Tim Bird 2010-10-09 260 *parent = old; 376cfa8730c08c0 Tim Bird 2010-10-09 261 } dd686eb13959e49 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, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org