All of lore.kernel.org
 help / color / mirror / Atom feed
* [peterz-queue:sched/hotplug 2/4] include/linux/cpumask.h:126:9: error: implicit declaration of function 'cpumask_test_cpu'
@ 2021-01-24 11:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-24 11:59 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 5786 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/hotplug
head:   4f17b2ec56fe3ace63aa971af4b00b0d7db812ea
commit: 25e81c8a0ac0e4da8ce266f182b59ebd5efded2a [2/4] cpumask: Introduce DYING mask
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=25e81c8a0ac0e4da8ce266f182b59ebd5efded2a
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/hotplug
        git checkout 25e81c8a0ac0e4da8ce266f182b59ebd5efded2a
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc 

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 include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/arc/kernel/asm-offsets.c:6:
   include/linux/cpumask.h: In function 'cpu_dying':
>> include/linux/cpumask.h:126:9: error: implicit declaration of function 'cpumask_test_cpu' [-Werror=implicit-function-declaration]
     126 |  return cpumask_test_cpu(cpu, cpu_dying_mask);
         |         ^~~~~~~~~~~~~~~~
   include/linux/cpumask.h: At top level:
>> include/linux/cpumask.h:385:19: error: static declaration of 'cpumask_test_cpu' follows non-static declaration
     385 | static inline int cpumask_test_cpu(int cpu, const struct cpumask *cpumask)
         |                   ^~~~~~~~~~~~~~~~
   include/linux/cpumask.h:126:9: note: previous implicit declaration of 'cpumask_test_cpu' was here
     126 |  return cpumask_test_cpu(cpu, cpu_dying_mask);
         |         ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/arc/kernel/asm-offsets.c:6:
   include/linux/cpumask.h: In function 'cpu_dying':
>> include/linux/cpumask.h:126:9: error: implicit declaration of function 'cpumask_test_cpu' [-Werror=implicit-function-declaration]
     126 |  return cpumask_test_cpu(cpu, cpu_dying_mask);
         |         ^~~~~~~~~~~~~~~~
   include/linux/cpumask.h: At top level:
>> include/linux/cpumask.h:385:19: error: static declaration of 'cpumask_test_cpu' follows non-static declaration
     385 | static inline int cpumask_test_cpu(int cpu, const struct cpumask *cpumask)
         |                   ^~~~~~~~~~~~~~~~
   include/linux/cpumask.h:126:9: note: previous implicit declaration of 'cpumask_test_cpu' was here
     126 |  return cpumask_test_cpu(cpu, cpu_dying_mask);
         |         ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:117: arch/arc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1206: prepare0] Error 2
   make[1]: Target 'modules_prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'modules_prepare' not remade because of errors.
--
   In file included from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/rcupdate.h:29,
                    from include/linux/rculist.h:11,
                    from include/linux/pid.h:5,
                    from include/linux/sched.h:14,
                    from arch/arc/kernel/asm-offsets.c:6:
   include/linux/cpumask.h: In function 'cpu_dying':
>> include/linux/cpumask.h:126:9: error: implicit declaration of function 'cpumask_test_cpu' [-Werror=implicit-function-declaration]
     126 |  return cpumask_test_cpu(cpu, cpu_dying_mask);
         |         ^~~~~~~~~~~~~~~~
   include/linux/cpumask.h: At top level:
>> include/linux/cpumask.h:385:19: error: static declaration of 'cpumask_test_cpu' follows non-static declaration
     385 | static inline int cpumask_test_cpu(int cpu, const struct cpumask *cpumask)
         |                   ^~~~~~~~~~~~~~~~
   include/linux/cpumask.h:126:9: note: previous implicit declaration of 'cpumask_test_cpu' was here
     126 |  return cpumask_test_cpu(cpu, cpu_dying_mask);
         |         ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:117: arch/arc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1206: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:185: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/cpumask_test_cpu +126 include/linux/cpumask.h

   123	
   124	static inline bool cpu_dying(unsigned int cpu)
   125	{
 > 126		return cpumask_test_cpu(cpu, cpu_dying_mask);
   127	}
   128	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 67234 bytes --]

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

only message in thread, other threads:[~2021-01-24 11:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-24 11:59 [peterz-queue:sched/hotplug 2/4] include/linux/cpumask.h:126:9: error: implicit declaration of function 'cpumask_test_cpu' 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.