GNU/Weeb Mailing List <[email protected]>
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: David Woodhouse <[email protected]>
Cc: [email protected], [email protected],
	Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>,
	"Paul E. McKenney" <[email protected]>,
	Usama Arif <[email protected]>
Subject: [ammarfaizi2-block:paulmck/linux-rcu/paronl.2023.02.01a 7/9] arch/x86/kernel/smpboot.c:1361:24: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct task_struct *'
Date: Thu, 2 Feb 2023 11:10:09 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

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-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20230202/[email protected]/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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://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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 function 'do_cpu_up' [-Wmissing-prototypes]
   int do_cpu_up(unsigned int cpu, struct task_struct *tidle)
       ^
   arch/x86/kernel/smpboot.c:1266:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int do_cpu_up(unsigned int cpu, struct task_struct *tidle)
   ^
   static 
   arch/x86/kernel/smpboot.c:1361:24: error: implicit declaration of function 'idle_thread_get' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
           return do_cpu_up(cpu, idle_thread_get(cpu));
                                 ^
>> arch/x86/kernel/smpboot.c:1361:24: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'struct task_struct *' [-Wint-conversion]
           return do_cpu_up(cpu, idle_thread_get(cpu));
                                 ^~~~~~~~~~~~~~~~~~~~
   arch/x86/kernel/smpboot.c:1266:53: note: passing argument to parameter 'tidle' here
   int do_cpu_up(unsigned int cpu, struct task_struct *tidle)
                                                       ^
   2 warnings and 1 error generated.


vim +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

                 reply	other threads:[~2023-02-02  3:11 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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