lkml.org 
[lkml]   [2022]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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
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

\
 
 \ /
  Last update: 2022-03-27 22:31    [W:0.169 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site