* [kbuild:for-next 13/15] arch/ia64/kernel/crash.c:79:1: warning: no previous prototype for 'machine_crash_shutdown'
@ 2021-02-10 7:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-10 7:41 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: kbuild-all, linux-kbuild, Randy Dunlap
[-- Attachment #1: Type: text/plain, Size: 5806 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git for-next
head: 49362029a00b1c8af81d635333806e3d0dc8fdc1
commit: 092d5045cefaf39a0c8ea8a20ccd640a038dac32 [13/15] ia64: remove unneeded header includes from <asm/mca.h>
config: ia64-randconfig-r013-20210209 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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/masahiroy/linux-kbuild.git/commit/?id=092d5045cefaf39a0c8ea8a20ccd640a038dac32
git remote add kbuild https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
git fetch --no-tags kbuild for-next
git checkout 092d5045cefaf39a0c8ea8a20ccd640a038dac32
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> arch/ia64/kernel/crash.c:79:1: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes]
79 | machine_crash_shutdown(struct pt_regs *pt)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/machine_crash_shutdown +79 arch/ia64/kernel/crash.c
a79561134f38de Zou Nan hai 2006-12-07 77
a79561134f38de Zou Nan hai 2006-12-07 78 void
a79561134f38de Zou Nan hai 2006-12-07 @79 machine_crash_shutdown(struct pt_regs *pt)
a79561134f38de Zou Nan hai 2006-12-07 80 {
a79561134f38de Zou Nan hai 2006-12-07 81 /* This function is only called after the system
a79561134f38de Zou Nan hai 2006-12-07 82 * has paniced or is otherwise in a critical state.
a79561134f38de Zou Nan hai 2006-12-07 83 * The minimum amount of code to allow a kexec'd kernel
a79561134f38de Zou Nan hai 2006-12-07 84 * to run successfully needs to happen here.
a79561134f38de Zou Nan hai 2006-12-07 85 *
a79561134f38de Zou Nan hai 2006-12-07 86 * In practice this means shooting down the other cpus in
a79561134f38de Zou Nan hai 2006-12-07 87 * an SMP system.
a79561134f38de Zou Nan hai 2006-12-07 88 */
a79561134f38de Zou Nan hai 2006-12-07 89 kexec_disable_iosapic();
a79561134f38de Zou Nan hai 2006-12-07 90 #ifdef CONFIG_SMP
1726b0883dd086 Hidetoshi Seto 2009-08-06 91 /*
1726b0883dd086 Hidetoshi Seto 2009-08-06 92 * If kdump_on_init is set and an INIT is asserted here, kdump will
1726b0883dd086 Hidetoshi Seto 2009-08-06 93 * be started again via INIT monarch.
1726b0883dd086 Hidetoshi Seto 2009-08-06 94 */
1726b0883dd086 Hidetoshi Seto 2009-08-06 95 local_irq_disable();
1726b0883dd086 Hidetoshi Seto 2009-08-06 96 ia64_set_psr_mc(); /* mask MCA/INIT */
1726b0883dd086 Hidetoshi Seto 2009-08-06 97 if (atomic_inc_return(&kdump_in_progress) != 1)
1726b0883dd086 Hidetoshi Seto 2009-08-06 98 unw_init_running(kdump_cpu_freeze, NULL);
1726b0883dd086 Hidetoshi Seto 2009-08-06 99
1726b0883dd086 Hidetoshi Seto 2009-08-06 100 /*
1726b0883dd086 Hidetoshi Seto 2009-08-06 101 * Now this cpu is ready for kdump.
1726b0883dd086 Hidetoshi Seto 2009-08-06 102 * Stop all others by IPI or INIT. They could receive INIT from
1726b0883dd086 Hidetoshi Seto 2009-08-06 103 * outside and might be INIT monarch, but only thing they have to
1726b0883dd086 Hidetoshi Seto 2009-08-06 104 * do is falling into kdump_cpu_freeze().
1726b0883dd086 Hidetoshi Seto 2009-08-06 105 *
1726b0883dd086 Hidetoshi Seto 2009-08-06 106 * If an INIT is asserted here:
1726b0883dd086 Hidetoshi Seto 2009-08-06 107 * - All receivers might be slaves, since some of cpus could already
1726b0883dd086 Hidetoshi Seto 2009-08-06 108 * be frozen and INIT might be masked on monarch. In this case,
0cced40e7c58b1 Hidetoshi Seto 2009-08-06 109 * all slaves will be frozen soon since kdump_in_progress will let
0cced40e7c58b1 Hidetoshi Seto 2009-08-06 110 * them into DIE_INIT_SLAVE_LEAVE.
1726b0883dd086 Hidetoshi Seto 2009-08-06 111 * - One might be a monarch, but INIT rendezvous will fail since
1726b0883dd086 Hidetoshi Seto 2009-08-06 112 * at least this cpu already have INIT masked so it never join
1726b0883dd086 Hidetoshi Seto 2009-08-06 113 * to the rendezvous. In this case, all slaves and monarch will
0cced40e7c58b1 Hidetoshi Seto 2009-08-06 114 * be frozen soon with no wait since the INIT rendezvous is skipped
0cced40e7c58b1 Hidetoshi Seto 2009-08-06 115 * by kdump_in_progress.
1726b0883dd086 Hidetoshi Seto 2009-08-06 116 */
a79561134f38de Zou Nan hai 2006-12-07 117 kdump_smp_send_stop();
0ac1faca4a63fc Simon Horman 2007-02-14 118 /* not all cpu response to IPI, send INIT to freeze them */
5959906ee9dee6 Hidetoshi Seto 2009-08-06 119 if (kdump_wait_cpu_freeze()) {
a79561134f38de Zou Nan hai 2006-12-07 120 kdump_smp_send_init();
5959906ee9dee6 Hidetoshi Seto 2009-08-06 121 /* wait again, don't go ahead if possible */
5959906ee9dee6 Hidetoshi Seto 2009-08-06 122 kdump_wait_cpu_freeze();
a79561134f38de Zou Nan hai 2006-12-07 123 }
a79561134f38de Zou Nan hai 2006-12-07 124 #endif
a79561134f38de Zou Nan hai 2006-12-07 125 }
a79561134f38de Zou Nan hai 2006-12-07 126
:::::: The code at line 79 was first introduced by commit
:::::: a79561134f38de12dce14ed72138f38e55ef53fc [IA64] IA64 Kexec/kdump
:::::: TO: Zou Nan hai <nanhai.zou@intel.com>
:::::: CC: Tony Luck <tony.luck@intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39212 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-10 7:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 7:41 [kbuild:for-next 13/15] arch/ia64/kernel/crash.c:79:1: warning: no previous prototype for 'machine_crash_shutdown' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).