lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 28 Mar 2022 04:29:38 +0800
From:   kernel test robot <lkp@...el.com>
To:     Helge Deller <deller@....de>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.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

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@...el.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@....de>
:::::: CC: Helge Deller <deller@....de>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ