From: kernel test robot <lkp@intel.com>
To: Huacai Chen <chenhc@lemote.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Jinyang He <hejinyang@loongson.cn>,
Youling Tang <tangyouling@loongson.cn>
Subject: arch/mips/loongson64/reset.c:133:2: error: 'secondary_kexec_args' undeclared
Date: Fri, 30 Apr 2021 21:18:36 +0800 [thread overview]
Message-ID: <202104302128.JlwfOdDv-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2689 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ca5297e7e38f2dc8c753d33a5092e7be181fff0
commit: 6ce48897ce476bed86fde28752c27596e8753277 MIPS: Loongson64: Add kexec/kdump support
date: 2 weeks ago
config: mips-randconfig-s032-20210430 (attached as .config)
compiler: mips64el-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6ce48897ce476bed86fde28752c27596e8753277
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6ce48897ce476bed86fde28752c27596e8753277
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
arch/mips/loongson64/reset.c: In function 'loongson_kexec_shutdown':
>> arch/mips/loongson64/reset.c:133:2: error: 'secondary_kexec_args' undeclared (first use in this function)
133 | secondary_kexec_args[0] = TO_UNCAC(0x3ff01000);
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/loongson64/reset.c:133:2: note: each undeclared identifier is reported only once for each function it appears in
arch/mips/loongson64/reset.c: In function 'loongson_crash_shutdown':
arch/mips/loongson64/reset.c:144:2: error: 'secondary_kexec_args' undeclared (first use in this function)
144 | secondary_kexec_args[0] = TO_UNCAC(0x3ff01000);
| ^~~~~~~~~~~~~~~~~~~~
vim +/secondary_kexec_args +133 arch/mips/loongson64/reset.c
119
120 static void loongson_kexec_shutdown(void)
121 {
122 #ifdef CONFIG_SMP
123 int cpu;
124
125 /* All CPUs go to reboot_code_buffer */
126 for_each_possible_cpu(cpu)
127 if (!cpu_online(cpu))
128 cpu_device_up(get_cpu_device(cpu));
129 #endif
130 kexec_args[0] = kexec_argc;
131 kexec_args[1] = fw_arg1;
132 kexec_args[2] = fw_arg2;
> 133 secondary_kexec_args[0] = TO_UNCAC(0x3ff01000);
134 memcpy((void *)fw_arg1, kexec_argv, KEXEC_ARGV_SIZE);
135 memcpy((void *)fw_arg2, kexec_envp, KEXEC_ENVP_SIZE);
136 }
137
---
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: 33172 bytes --]
reply other threads:[~2021-04-30 13:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202104302128.JlwfOdDv-lkp@intel.com \
--to=lkp@intel.com \
--cc=chenhc@lemote.com \
--cc=hejinyang@loongson.cn \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tangyouling@loongson.cn \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®