public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [norov:bitmap-cocci 15/15] kernel/sched/topology.c:2002:45: error: too many arguments to function call, expected single argument 'srcp', have 2 arguments
@ 2022-05-07 13:51 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-05-07 13:51 UTC (permalink / raw)
  To: Yury Norov; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://github.com/norov/linux bitmap-cocci
head:   3175a64928a804328d3f9a87af8bfda683539bee
commit: 3175a64928a804328d3f9a87af8bfda683539bee [15/15] sched/topology: replace cpumask_weight() with cpumask_weight_eq where appropriate
config: x86_64-randconfig-a016 (https://download.01.org/0day-ci/archive/20220507/202205072127.9RxAaefa-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af4cf1c6b8ed0d8102fc5e69acdc2fcbbcdaa9a7)
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/norov/linux/commit/3175a64928a804328d3f9a87af8bfda683539bee
        git remote add norov https://github.com/norov/linux
        git fetch --no-tags norov bitmap-cocci
        git checkout 3175a64928a804328d3f9a87af8bfda683539bee
        # 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 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from kernel/sched/build_utility.c:89:
>> kernel/sched/topology.c:2002:45: error: too many arguments to function call, expected single argument 'srcp', have 2 arguments
           if (!cpumask_weight(cpumask_of_node(node), 1))
                ~~~~~~~~~~~~~~                        ^
   include/linux/cpumask.h:573:28: note: 'cpumask_weight' declared here
   static inline unsigned int cpumask_weight(const struct cpumask *srcp)
                              ^
   1 error generated.


vim +/srcp +2002 kernel/sched/topology.c

  1989	
  1990	/*
  1991	 * Call with hotplug lock held
  1992	 */
  1993	void sched_update_numa(int cpu, bool online)
  1994	{
  1995		int node;
  1996	
  1997		node = cpu_to_node(cpu);
  1998		/*
  1999		 * Scheduler NUMA topology is updated when the first CPU of a
  2000		 * node is onlined or the last CPU of a node is offlined.
  2001		 */
> 2002		if (!cpumask_weight(cpumask_of_node(node), 1))
  2003			return;
  2004	
  2005		sched_reset_numa();
  2006		sched_init_numa(online ? NUMA_NO_NODE : node);
  2007	}
  2008	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-05-07 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-07 13:51 [norov:bitmap-cocci 15/15] kernel/sched/topology.c:2002:45: error: too many arguments to function call, expected single argument 'srcp', have 2 arguments 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