[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204142253.7Hya9r42-lkp@intel.com>
Date: Thu, 14 Apr 2022 23:01:04 +0800
From: kernel test robot <lkp@...el.com>
To: Josh Poimboeuf <jpoimboe@...hat.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jpoimboe:objtool-run 11/29] arch/powerpc/kernel/smp.c:1781:1:
warning: 'noreturn' function does return
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git objtool-run
head: 47d3f4f7a72524799c1f646713e2377e3c4e239f
commit: 685d8d205c29aa853326bd2bb27dcee2ba1f5ef4 [11/29] sched: Convert arch_cpu_idle_dead() to proper __noreturn
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220414/202204142253.7Hya9r42-lkp@intel.com/config)
compiler: powerpc-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/jpoimboe/linux.git/commit/?id=685d8d205c29aa853326bd2bb27dcee2ba1f5ef4
git remote add jpoimboe https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git
git fetch --no-tags jpoimboe objtool-run
git checkout 685d8d205c29aa853326bd2bb27dcee2ba1f5ef4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
arch/powerpc/kernel/smp.c: In function 'arch_cpu_idle_dead':
>> arch/powerpc/kernel/smp.c:1781:1: warning: 'noreturn' function does return
1781 | }
| ^
vim +/noreturn +1781 arch/powerpc/kernel/smp.c
d0174c721900ff8 Nathan Fontenot 2010-01-14 1767
1ea21ba231f2480 Michael Ellerman 2020-08-19 1768 void arch_cpu_idle_dead(void)
1ea21ba231f2480 Michael Ellerman 2020-08-19 1769 {
424ef0160f439fe Naveen N. Rao 2018-04-19 1770 /*
424ef0160f439fe Naveen N. Rao 2018-04-19 1771 * Disable on the down path. This will be re-enabled by
424ef0160f439fe Naveen N. Rao 2018-04-19 1772 * start_secondary() via start_secondary_resume() below
424ef0160f439fe Naveen N. Rao 2018-04-19 1773 */
424ef0160f439fe Naveen N. Rao 2018-04-19 1774 this_cpu_disable_ftrace();
424ef0160f439fe Naveen N. Rao 2018-04-19 1775
39f87561454dc33 Michael Ellerman 2020-08-19 1776 if (smp_ops->cpu_offline_self)
39f87561454dc33 Michael Ellerman 2020-08-19 1777 smp_ops->cpu_offline_self();
fa3f82c8bb7acbe Benjamin Herrenschmidt 2011-02-10 1778
fa3f82c8bb7acbe Benjamin Herrenschmidt 2011-02-10 1779 /* If we return, we re-enter start_secondary */
fa3f82c8bb7acbe Benjamin Herrenschmidt 2011-02-10 1780 start_secondary_resume();
abb17f9c3a92c5a Milton Miller 2010-05-19 @1781 }
fa3f82c8bb7acbe Benjamin Herrenschmidt 2011-02-10 1782
:::::: The code at line 1781 was first introduced by commit
:::::: abb17f9c3a92c5acf30e749efdf0419b7f50a5b8 powerpc: Use common cpu_die (fixes SMP+SUSPEND build)
:::::: TO: Milton Miller <miltonm@....com>
:::::: CC: Benjamin Herrenschmidt <benh@...nel.crashing.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists