All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [android-common:android12-5.10-2021-09 1944/10848] kernel/cpu.c:1098:5: warning: no previous prototype for function '__pause_drain_rq'
Date: Mon, 08 Nov 2021 06:46:41 +0800	[thread overview]
Message-ID: <202111080637.AIqu7SBq-lkp@intel.com> (raw)

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

tree:   https://android.googlesource.com/kernel/common android12-5.10-2021-09
head:   ece338aaa6b4bdf1c505c64f6b391e5cfabbfee5
commit: e19b8ce907a4ccc2f9dbeba218c50d1ff07fd321 [1944/10848] ANDROID: cpu/hotplug: add migration to paused_cpus
config: x86_64-randconfig-r033-20210928 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android12-5.10-2021-09
        git checkout e19b8ce907a4ccc2f9dbeba218c50d1ff07fd321
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> kernel/cpu.c:1098:5: warning: no previous prototype for function '__pause_drain_rq' [-Wmissing-prototypes]
   int __pause_drain_rq(struct cpumask *cpus)
       ^
   kernel/cpu.c:1098:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __pause_drain_rq(struct cpumask *cpus)
   ^
   static 
>> kernel/cpu.c:1118:6: warning: no previous prototype for function '__wait_drain_rq' [-Wmissing-prototypes]
   void __wait_drain_rq(struct cpumask *cpus)
        ^
   kernel/cpu.c:1118:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void __wait_drain_rq(struct cpumask *cpus)
   ^
   static 
   2 warnings generated.


vim +/__pause_drain_rq +1098 kernel/cpu.c

  1097	
> 1098	int __pause_drain_rq(struct cpumask *cpus)
  1099	{
  1100		unsigned int cpu;
  1101		int err = 0;
  1102	
  1103		/*
  1104		 * Disabling preemption avoids that one of the stopper, started from
  1105		 * sched_cpu_drain_rq(), blocks firing draining for the whole cpumask.
  1106		 */
  1107		preempt_disable();
  1108		for_each_cpu(cpu, cpus) {
  1109			err = sched_cpu_drain_rq(cpu);
  1110			if (err)
  1111				break;
  1112		}
  1113		preempt_enable();
  1114	
  1115		return err;
  1116	}
  1117	
> 1118	void __wait_drain_rq(struct cpumask *cpus)
  1119	{
  1120		unsigned int cpu;
  1121	
  1122		for_each_cpu(cpu, cpus)
  1123			sched_cpu_drain_rq_wait(cpu);
  1124	}
  1125	

---
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: 29632 bytes --]

                 reply	other threads:[~2021-11-07 22:46 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=202111080637.AIqu7SBq-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.