* arch/powerpc/kvm/e500mc.c:171:5: error: no previous prototype for 'kvmppc_e500mc_check_processor_compat'
@ 2023-03-03 8:19 kernel test robot
2023-03-08 1:08 ` Sean Christopherson
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2023-03-03 8:19 UTC (permalink / raw)
To: Sean Christopherson; +Cc: oe-kbuild-all, linux-kernel, Paolo Bonzini
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2eb29d59ddf02e39774abfb60b2030b0b7e27c1f
commit: 7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f KVM: PPC: Fix refactoring goof in kvmppc_e500mc_init()
date: 5 weeks ago
config: powerpc-randconfig-r001-20230302 (https://download.01.org/0day-ci/archive/20230303/202303031630.ntvIuYqo-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.1.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/torvalds/linux.git/commit/?id=7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303031630.ntvIuYqo-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/kvm/e500mc.c:171:5: error: no previous prototype for 'kvmppc_e500mc_check_processor_compat' [-Werror=missing-prototypes]
171 | int kvmppc_e500mc_check_processor_compat(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/kvmppc_e500mc_check_processor_compat +171 arch/powerpc/kvm/e500mc.c
170
> 171 int kvmppc_e500mc_check_processor_compat(void)
172 {
173 int r;
174
175 if (strcmp(cur_cpu_spec->cpu_name, "e500mc") == 0)
176 r = 0;
177 else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0)
178 r = 0;
179 #ifdef CONFIG_ALTIVEC
180 /*
181 * Since guests have the privilege to enable AltiVec, we need AltiVec
182 * support in the host to save/restore their context.
183 * Don't use CPU_FTR_ALTIVEC to identify cores with AltiVec unit
184 * because it's cleared in the absence of CONFIG_ALTIVEC!
185 */
186 else if (strcmp(cur_cpu_spec->cpu_name, "e6500") == 0)
187 r = 0;
188 #endif
189 else
190 r = -ENOTSUPP;
191
192 return r;
193 }
194
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 3+ messages in thread* arch/powerpc/kvm/e500mc.c:171:5: error: no previous prototype for 'kvmppc_e500mc_check_processor_compat'
@ 2023-04-05 7:18 kernel test robot
0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2023-04-05 7:18 UTC (permalink / raw)
To: Sean Christopherson; +Cc: oe-kbuild-all, linux-kernel, Paolo Bonzini
Hi Sean,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 76f598ba7d8e2bfb4855b5298caedd5af0c374a8
commit: 7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f KVM: PPC: Fix refactoring goof in kvmppc_e500mc_init()
date: 2 months ago
config: powerpc-buildonly-randconfig-r003-20230405 (https://download.01.org/0day-ci/archive/20230405/202304051534.jWWiT0cj-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.1.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/torvalds/linux.git/commit/?id=7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7cb79f433e75b05d1635aefaa851cfcd1cb7dc4f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304051534.jWWiT0cj-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/kvm/e500mc.c:171:5: error: no previous prototype for 'kvmppc_e500mc_check_processor_compat' [-Werror=missing-prototypes]
171 | int kvmppc_e500mc_check_processor_compat(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/kvmppc_e500mc_check_processor_compat +171 arch/powerpc/kvm/e500mc.c
170
> 171 int kvmppc_e500mc_check_processor_compat(void)
172 {
173 int r;
174
175 if (strcmp(cur_cpu_spec->cpu_name, "e500mc") == 0)
176 r = 0;
177 else if (strcmp(cur_cpu_spec->cpu_name, "e5500") == 0)
178 r = 0;
179 #ifdef CONFIG_ALTIVEC
180 /*
181 * Since guests have the privilege to enable AltiVec, we need AltiVec
182 * support in the host to save/restore their context.
183 * Don't use CPU_FTR_ALTIVEC to identify cores with AltiVec unit
184 * because it's cleared in the absence of CONFIG_ALTIVEC!
185 */
186 else if (strcmp(cur_cpu_spec->cpu_name, "e6500") == 0)
187 r = 0;
188 #endif
189 else
190 r = -ENOTSUPP;
191
192 return r;
193 }
194
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-04-05 7:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03 8:19 arch/powerpc/kvm/e500mc.c:171:5: error: no previous prototype for 'kvmppc_e500mc_check_processor_compat' kernel test robot
2023-03-08 1:08 ` Sean Christopherson
-- strict thread matches above, loose matches on Subject: below --
2023-04-05 7:18 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