linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <yujie.liu@intel.com>
To: Helge Deller <deller@gmx.de>
Cc: <kbuild-all@lists.01.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 12185/12461] arch/parisc/kernel/toc.c:64:32: sparse: void extern [addressable] [noreturn] [toplevel] toc_intr( ... )
Date: Thu, 20 Jan 2022 09:19:02 +0800	[thread overview]
Message-ID: <d1c8edbc-f439-6156-7542-c038c92c727b@intel.com> (raw)
In-Reply-To: <202201182205.RYtP0ybc-lkp@intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6f59bc242877fcb9c9a5136ea62d383fce5615df
commit: 3d3a5814228feedd46fbddbeab381ae9bc2996ba [12185/12461] parisc: Fix missing prototype for 'toc_intr' warning in toc.c
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20220118/202201182205.RYtP0ybc-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.2.0
reproduce:
         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
         chmod +x ~/bin/make.cross
         # apt-get install sparse
         # sparse version: v0.6.4-dirty
         # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3d3a5814228feedd46fbddbeab381ae9bc2996ba
         git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
         git fetch --no-tags linux-next master
         git checkout 3d3a5814228feedd46fbddbeab381ae9bc2996ba
         # save the config file to linux build tree
         mkdir build_dir
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash arch/parisc/kernel/

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


sparse warnings:

    arch/parisc/kernel/toc.c:64:32: sparse: sparse: symbol 'toc_intr' redeclared with different type (different modifiers):
    arch/parisc/kernel/toc.c:64:32: sparse:    void extern [addressable] [noreturn] [toplevel] toc_intr( ... )
    arch/parisc/kernel/toc.c: note: in included file (through arch/parisc/include/asm/spinlock.h, arch/parisc/include/asm/atomic.h, include/linux/atomic.h, ...):
    arch/parisc/include/asm/processor.h:292:13: sparse: note: previously declared as:
    arch/parisc/include/asm/processor.h:292:13: sparse:    void extern [addressable] [toplevel] toc_intr( ... )

vim +64 arch/parisc/kernel/toc.c

bc294838cc3443 Sven Schnelle 2021-10-14  63
bc294838cc3443 Sven Schnelle 2021-10-14 @64  void notrace __noreturn __cold toc_intr(struct pt_regs *regs)
bc294838cc3443 Sven Schnelle 2021-10-14  65  {
bc294838cc3443 Sven Schnelle 2021-10-14  66  	struct pdc_toc_pim_20 pim_data20;
bc294838cc3443 Sven Schnelle 2021-10-14  67  	struct pdc_toc_pim_11 pim_data11;
bc294838cc3443 Sven Schnelle 2021-10-14  68
d6ab9fc74513ae Helge Deller  2022-01-07  69  	/* verify we wrote regs to the correct stack */
d6ab9fc74513ae Helge Deller  2022-01-07  70  	BUG_ON(regs != (struct pt_regs *)&per_cpu(toc_stack, raw_smp_processor_id()));
bc294838cc3443 Sven Schnelle 2021-10-14  71
bc294838cc3443 Sven Schnelle 2021-10-14  72  	if (boot_cpu_data.cpu_type >= pcxu) {
bc294838cc3443 Sven Schnelle 2021-10-14  73  		if (pdc_pim_toc20(&pim_data20))
bc294838cc3443 Sven Schnelle 2021-10-14  74  			panic("Failed to get PIM data");
bc294838cc3443 Sven Schnelle 2021-10-14  75  		toc20_to_pt_regs(regs, &pim_data20);
bc294838cc3443 Sven Schnelle 2021-10-14  76  	} else {
bc294838cc3443 Sven Schnelle 2021-10-14  77  		if (pdc_pim_toc11(&pim_data11))
bc294838cc3443 Sven Schnelle 2021-10-14  78  			panic("Failed to get PIM data");
bc294838cc3443 Sven Schnelle 2021-10-14  79  		toc11_to_pt_regs(regs, &pim_data11);
bc294838cc3443 Sven Schnelle 2021-10-14  80  	}
bc294838cc3443 Sven Schnelle 2021-10-14  81

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


       reply	other threads:[~2022-01-20  1:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <202201182205.RYtP0ybc-lkp@intel.com>
2022-01-20  1:19 ` kernel test robot [this message]
2022-01-20 17:26   ` Helge Deller

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=d1c8edbc-f439-6156-7542-c038c92c727b@intel.com \
    --to=yujie.liu@intel.com \
    --cc=deller@gmx.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox