All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:sched/hotplug 2/4] include/linux/cpumask.h:126:9: error: implicit declaration of function 'cpumask_test_cpu'
Date: Sun, 24 Jan 2021 19:59:26 +0800	[thread overview]
Message-ID: <202101241923.Pg9Iafbw-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-01-24 11:59 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=202101241923.Pg9Iafbw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.