All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2026-10-20 13:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-20 13:59 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-20 14:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 13:59 [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 kernel test robot

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.