* [ammarfaizi2-block:paulmck/linux-rcu/paronl.2023.02.01a 7/9] arch/x86/kernel/smpboot.c:1361:31: warning: passing argument 2 of 'do_cpu_up' makes pointer from integer without a cast
@ 2023-02-02 2:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-02 2:49 UTC (permalink / raw)
To: David Woodhouse
Cc: oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List,
Paul E. McKenney, Usama Arif
tree: https://github.com/ammarfaizi2/linux-block paulmck/linux-rcu/paronl.2023.02.01a
head: 05792727280c094a8dcd1aa4950a61a2d214ddb8
commit: 5d245bcd0107a551fe69545ae757526932f9738a [7/9] x86/smpboot: Send INIT/SIPI/SIPI to secondary CPUs in parallel
config: x86_64-randconfig-a001-20230130 (https://download.01.org/0day-ci/archive/20230202/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/5d245bcd0107a551fe69545ae757526932f9738a
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block paulmck/linux-rcu/paronl.2023.02.01a
git checkout 5d245bcd0107a551fe69545ae757526932f9738a
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kernel/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
All warnings (new ones prefixed by >>):
arch/x86/kernel/smpboot.c:1266:5: warning: no previous prototype for 'do_cpu_up' [-Wmissing-prototypes]
1266 | int do_cpu_up(unsigned int cpu, struct task_struct *tidle)
| ^~~~~~~~~
arch/x86/kernel/smpboot.c: In function 'native_cpu_kick':
arch/x86/kernel/smpboot.c:1361:31: error: implicit declaration of function 'idle_thread_get' [-Werror=implicit-function-declaration]
1361 | return do_cpu_up(cpu, idle_thread_get(cpu));
| ^~~~~~~~~~~~~~~
>> arch/x86/kernel/smpboot.c:1361:31: warning: passing argument 2 of 'do_cpu_up' makes pointer from integer without a cast [-Wint-conversion]
1361 | return do_cpu_up(cpu, idle_thread_get(cpu));
| ^~~~~~~~~~~~~~~~~~~~
| |
| int
arch/x86/kernel/smpboot.c:1266:53: note: expected 'struct task_struct *' but argument is of type 'int'
1266 | int do_cpu_up(unsigned int cpu, struct task_struct *tidle)
| ~~~~~~~~~~~~~~~~~~~~^~~~~
cc1: some warnings being treated as errors
vim +/do_cpu_up +1361 arch/x86/kernel/smpboot.c
1357
1358 /* Bringup step one: Send INIT/SIPI to the target AP */
1359 static int native_cpu_kick(unsigned int cpu)
1360 {
> 1361 return do_cpu_up(cpu, idle_thread_get(cpu));
1362 }
1363
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-02 2:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-02 2:49 [ammarfaizi2-block:paulmck/linux-rcu/paronl.2023.02.01a 7/9] arch/x86/kernel/smpboot.c:1361:31: warning: passing argument 2 of 'do_cpu_up' makes pointer from integer without a cast 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