All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Frederic Weisbecker <frederic@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [frederic-dynticks:core/hotplug 1/49] include/linux/stop_machine.h:182:16: error: too few arguments to function 'stop_machine_cpuslocked'; expected 4, have 3
Date: Tue, 20 Oct 2026 21:59:17 +0800	[thread overview]
Message-ID: <202610202133.Ffm0fNUn-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git core/hotplug
head:   8ff5f866a7c2825213c6aa525a88840cbccf1211
commit: c7da79bd2c65b3817e4a2ce25fbdcc3bb8c9262f [1/49] stop_machine: Add post function to execute while other CPUs can exit
config: openrisc-defconfig (https://download.01.org/0day-ci/archive/20261020/202610202133.Ffm0fNUn-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261020/202610202133.Ffm0fNUn-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610202133.Ffm0fNUn-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from kernel/sched/sched.h:63,
                    from kernel/sched/rq-offsets.c:5:
   include/linux/stop_machine.h: In function 'stop_machine':
>> include/linux/stop_machine.h:182:50: warning: passing argument 3 of 'stop_machine_cpuslocked' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
     182 |         return stop_machine_cpuslocked(fn, data, cpus);
         |                                                  ^~~~
   include/linux/stop_machine.h:167:58: note: expected 'void *' but argument is of type 'const struct cpumask *'
     167 |                                                    void *data, const struct cpumask *cpus)
         |                                                    ~~~~~~^~~~
>> include/linux/stop_machine.h:182:16: error: too few arguments to function 'stop_machine_cpuslocked'; expected 4, have 3
     182 |         return stop_machine_cpuslocked(fn, data, cpus);
         |                ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/stop_machine.h:166:28: note: declared here
     166 | static __always_inline int stop_machine_cpuslocked(cpu_stop_fn_t fn, cpu_stop_fn_t postfn,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~
   make[3]: *** [scripts/Makefile.build:185: kernel/sched/rq-offsets.s] Error 1
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1425: prepare0] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/stop_machine_cpuslocked +182 include/linux/stop_machine.h

9ea09af3bd3090e Heiko Carstens            2008-12-22  178  
cbf78d85079cee6 Arnd Bergmann             2021-03-12  179  static __always_inline int
cbf78d85079cee6 Arnd Bergmann             2021-03-12  180  stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus)
fe5595c074005bd Sebastian Andrzej Siewior 2017-05-24  181  {
fe5595c074005bd Sebastian Andrzej Siewior 2017-05-24 @182  	return stop_machine_cpuslocked(fn, data, cpus);
fe5595c074005bd Sebastian Andrzej Siewior 2017-05-24  183  }
fe5595c074005bd Sebastian Andrzej Siewior 2017-05-24  184  

:::::: The code at line 182 was first introduced by commit
:::::: fe5595c074005bd94f0c7d1644175941149f6768 stop_machine: Provide stop_machine_cpuslocked()

:::::: TO: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-10-20 14:00 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=202610202133.Ffm0fNUn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=frederic@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.