All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [sashal-stable:pending-5.10 389/399] arch/powerpc/kernel/smp.c:611:6: warning: no previous prototype for function 'crash_smp_send_stop'
Date: Mon, 24 Jan 2022 16:25:17 +0800	[thread overview]
Message-ID: <202201241635.seiM4ELp-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.10
head:   929e0c4ef688344580bfb57a585b24b1d99a5064
commit: cdf962f344e1e3f76f392fce8eb84e2547842e62 [389/399] powerpc: handle kdump appropriately with crash_kexec_post_notifiers option
config: powerpc-randconfig-r005-20220123 (https://download.01.org/0day-ci/archive/20220124/202201241635.seiM4ELp-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=cdf962f344e1e3f76f392fce8eb84e2547842e62
        git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-stable pending-5.10
        git checkout cdf962f344e1e3f76f392fce8eb84e2547842e62
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/

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 >>):

   arch/powerpc/kernel/smp.c:551:6: warning: no previous prototype for function 'tick_broadcast' [-Wmissing-prototypes]
   void tick_broadcast(const struct cpumask *mask)
        ^
   arch/powerpc/kernel/smp.c:551:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void tick_broadcast(const struct cpumask *mask)
   ^
   static 
   arch/powerpc/kernel/smp.c:561:6: warning: no previous prototype for function 'debugger_ipi_callback' [-Wmissing-prototypes]
   void debugger_ipi_callback(struct pt_regs *regs)
        ^
   arch/powerpc/kernel/smp.c:561:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void debugger_ipi_callback(struct pt_regs *regs)
   ^
   static 
>> arch/powerpc/kernel/smp.c:611:6: warning: no previous prototype for function 'crash_smp_send_stop' [-Wmissing-prototypes]
   void crash_smp_send_stop(void)
        ^
   arch/powerpc/kernel/smp.c:611:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void crash_smp_send_stop(void)
   ^
   static 
   arch/powerpc/kernel/smp.c:1410:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
           bool ret;
                ^
   4 warnings generated.


vim +/crash_smp_send_stop +611 arch/powerpc/kernel/smp.c

   559	
   560	#ifdef CONFIG_DEBUGGER
 > 561	void debugger_ipi_callback(struct pt_regs *regs)
   562	{
   563		debugger_ipi(regs);
   564	}
   565	
   566	void smp_send_debugger_break(void)
   567	{
   568		smp_send_nmi_ipi(NMI_IPI_ALL_OTHERS, debugger_ipi_callback, 1000000);
   569	}
   570	#endif
   571	
   572	#ifdef CONFIG_KEXEC_CORE
   573	void crash_send_ipi(void (*crash_ipi_callback)(struct pt_regs *))
   574	{
   575		int cpu;
   576	
   577		smp_send_nmi_ipi(NMI_IPI_ALL_OTHERS, crash_ipi_callback, 1000000);
   578		if (kdump_in_progress() && crash_wake_offline) {
   579			for_each_present_cpu(cpu) {
   580				if (cpu_online(cpu))
   581					continue;
   582				/*
   583				 * crash_ipi_callback will wait for
   584				 * all cpus, including offline CPUs.
   585				 * We don't care about nmi_ipi_function.
   586				 * Offline cpus will jump straight into
   587				 * crash_ipi_callback, we can skip the
   588				 * entire NMI dance and waiting for
   589				 * cpus to clear pending mask, etc.
   590				 */
   591				do_smp_send_nmi_ipi(cpu, false);
   592			}
   593		}
   594	}
   595	#endif
   596	
   597	#ifdef CONFIG_NMI_IPI
   598	static void crash_stop_this_cpu(struct pt_regs *regs)
   599	#else
   600	static void crash_stop_this_cpu(void *dummy)
   601	#endif
   602	{
   603		/*
   604		 * Just busy wait here and avoid marking CPU as offline to ensure
   605		 * register data is captured appropriately.
   606		 */
   607		while (1)
   608			cpu_relax();
   609	}
   610	
 > 611	void crash_smp_send_stop(void)
   612	{
   613		static bool stopped = false;
   614	
   615		if (stopped)
   616			return;
   617	
   618		stopped = true;
   619	

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

                 reply	other threads:[~2022-01-24  8:25 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=202201241635.seiM4ELp-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.