Content-Type: multipart/mixed; boundary="===============7037765040430436888==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 1/3] powerpc/ftrace: Reserve instructions from function entry for ftrace Date: Fri, 18 Feb 2022 03:46:23 +0800 Message-ID: <202202180014.IWuzQ9al-lkp@intel.com> In-Reply-To: <8843d65ac0878232433573d10ebee30457748624.1645096227.git.naveen.n.rao@linux.vnet.ibm.com> List-Id: --===============7037765040430436888== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "Naveen, I love your patch! Perhaps something to improve: [auto build test WARNING on 1b43a74f255c5c00db25a5fedfd75ca0dc029022] url: https://github.com/0day-ci/linux/commits/Naveen-N-Rao/powerpc-ftrac= e-Reserve-instructions-from-function-entry-for-ftrace/20220217-200314 base: 1b43a74f255c5c00db25a5fedfd75ca0dc029022 config: powerpc-allyesconfig (https://download.01.org/0day-ci/archive/20220= 218/202202180014.IWuzQ9al-lkp(a)intel.com/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/6a1891335e377e5def312e7c1= 82aef676f04c926 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Naveen-N-Rao/powerpc-ftrace-Reserv= e-instructions-from-function-entry-for-ftrace/20220217-200314 git checkout 6a1891335e377e5def312e7c182aef676f04c926 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dpowerpc SHELL=3D/bin/bash arch/powerpc/kernel/trace/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> arch/powerpc/kernel/trace/ftrace.c:504:5: warning: no previous prototype= for 'ftrace_location_get_offset' [-Wmissing-prototypes] 504 | int ftrace_location_get_offset(const struct dyn_ftrace *rec) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/ftrace_location_get_offset +504 arch/powerpc/kernel/trace/ftrace.c 502 = 503 #if defined(CONFIG_MPROFILE_KERNEL) || defined(CONFIG_PPC32) > 504 int ftrace_location_get_offset(const struct dyn_ftrace *rec) 505 { 506 if (IS_ENABLED(CONFIG_MPROFILE_KERNEL)) 507 /* 508 * On ppc64le with -mprofile-kernel, function entry can have: 509 * addis r2, r12, M 510 * addi r2, r2, N 511 * mflr r0 512 * bl _mcount 513 * 514 * The first two instructions are for TOC setup and represent the = global entry 515 * point for cross-module calls, and may be missing if the functio= n is never called 516 * from other modules. 517 */ 518 return ((unsigned long)rec->arch.mod & 0x1) ? FUNC_MCOUNT_OFFSET_P= PC64_GEP : 519 FUNC_MCOUNT_OFFSET_PPC64_LEP; 520 else 521 /* 522 * On ppc32, function entry always has: 523 * mflr r0 524 * stw r0, 4(r1) 525 * bl _mcount 526 */ 527 return FUNC_MCOUNT_OFFSET_PPC32; 528 } 529 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7037765040430436888==--