mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Helge Deller <deller@gmx.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [deller-parisc:for-next 7/14] arch/parisc/include/asm/topology.h:11:20: error: static declaration of 'init_cpu_topology' follows non-static declaration
Date: Mon, 28 Mar 2022 04:29:38 +0800	[thread overview]
Message-ID: <202203280457.DJpX1Rq4-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git for-next
head:   01734b6427402bb7a324707d0b2bec646bdf760b
commit: 84615181b699411d95c24fb444ed93bff2e87f1d [7/14] parisc: Switch from GENERIC_CPU_DEVICES to GENERIC_ARCH_TOPOLOGY
config: parisc-randconfig-r001-20220327 (https://download.01.org/0day-ci/archive/20220328/202203280457.DJpX1Rq4-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.2.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/deller/parisc-linux.git/commit/?id=84615181b699411d95c24fb444ed93bff2e87f1d
        git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
        git fetch --no-tags deller-parisc for-next
        git checkout 84615181b699411d95c24fb444ed93bff2e87f1d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=parisc prepare

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/topology.h:36,
                    from include/linux/gfp.h:9,
                    from include/linux/percpu_counter.h:16,
                    from include/linux/sched/user.h:7,
                    from include/linux/cred.h:17,
                    from include/linux/sched/signal.h:10,
                    from include/linux/ptrace.h:7,
                    from arch/parisc/kernel/asm-offsets.c:20:
>> arch/parisc/include/asm/topology.h:11:20: error: static declaration of 'init_cpu_topology' follows non-static declaration
      11 | static inline void init_cpu_topology(void) { }
         |                    ^~~~~~~~~~~~~~~~~
   In file included from include/linux/topology.h:30,
                    from include/linux/gfp.h:9,
                    from include/linux/percpu_counter.h:16,
                    from include/linux/sched/user.h:7,
                    from include/linux/cred.h:17,
                    from include/linux/sched/signal.h:10,
                    from include/linux/ptrace.h:7,
                    from arch/parisc/kernel/asm-offsets.c:20:
   include/linux/arch_topology.h:88:6: note: previous declaration of 'init_cpu_topology' with type 'void(void)'
      88 | void init_cpu_topology(void);
         |      ^~~~~~~~~~~~~~~~~
   In file included from include/linux/topology.h:36,
                    from include/linux/gfp.h:9,
                    from include/linux/percpu_counter.h:16,
                    from include/linux/sched/user.h:7,
                    from include/linux/cred.h:17,
                    from include/linux/sched/signal.h:10,
                    from include/linux/ptrace.h:7,
                    from arch/parisc/kernel/asm-offsets.c:20:
>> arch/parisc/include/asm/topology.h:12:20: error: static declaration of 'store_cpu_topology' follows non-static declaration
      12 | static inline void store_cpu_topology(unsigned int cpuid) { }
         |                    ^~~~~~~~~~~~~~~~~~
   In file included from include/linux/topology.h:30,
                    from include/linux/gfp.h:9,
                    from include/linux/percpu_counter.h:16,
                    from include/linux/sched/user.h:7,
                    from include/linux/cred.h:17,
                    from include/linux/sched/signal.h:10,
                    from include/linux/ptrace.h:7,
                    from arch/parisc/kernel/asm-offsets.c:20:
   include/linux/arch_topology.h:89:6: note: previous declaration of 'store_cpu_topology' with type 'void(unsigned int)'
      89 | void store_cpu_topology(unsigned int cpuid);
         |      ^~~~~~~~~~~~~~~~~~
   make[2]: *** [scripts/Makefile.build:121: arch/parisc/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1192: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +/init_cpu_topology +11 arch/parisc/include/asm/topology.h

bf7b4c1b3c92f2 Helge Deller 2017-09-21  10  
bf7b4c1b3c92f2 Helge Deller 2017-09-21 @11  static inline void init_cpu_topology(void) { }
bf7b4c1b3c92f2 Helge Deller 2017-09-21 @12  static inline void store_cpu_topology(unsigned int cpuid) { }
bf7b4c1b3c92f2 Helge Deller 2017-09-21  13  

:::::: The code at line 11 was first introduced by commit
:::::: bf7b4c1b3c92f246a535a7c792177041d0442011 parisc: Add CPU topology support

:::::: TO: Helge Deller <deller@gmx.de>
:::::: CC: Helge Deller <deller@gmx.de>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-03-27 20:30 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=202203280457.DJpX1Rq4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=deller@gmx.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®