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]
Message-ID: <202110080018.H9VGGFpZ-lkp@intel.com>
Date:   Fri, 8 Oct 2021 00:56:20 +0800
From:   kernel test robot <lkp@...el.com>
To:     Rob Herring <robh@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [robh:mpam/cache-id 8/12] arch/openrisc/kernel/smp.c:68:26: error:
 too few arguments to function 'of_get_cpu_hwid'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git mpam/cache-id
head:   4dec66d0c19165b654cca2ce8810615f61709693
commit: 7a517f9f9f3c9fb8b09eabd4fbdf6b2b829082ef [8/12] openrisc: Use of_get_cpu_hwid()
config: openrisc-buildonly-randconfig-r002-20211007 (attached as .config)
compiler: or1k-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/robh/linux.git/commit/?id=7a517f9f9f3c9fb8b09eabd4fbdf6b2b829082ef
        git remote add robh https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git
        git fetch --no-tags robh mpam/cache-id
        git checkout 7a517f9f9f3c9fb8b09eabd4fbdf6b2b829082ef
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash

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

   arch/openrisc/kernel/smp.c: In function 'smp_init_cpus':
>> arch/openrisc/kernel/smp.c:68:26: error: too few arguments to function 'of_get_cpu_hwid'
      68 |                 cpu_id = of_get_cpu_hwid(cpu);
         |                          ^~~~~~~~~~~~~~~
   In file included from arch/openrisc/kernel/smp.c:19:
   include/linux/of.h:356:12: note: declared here
     356 | extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
         |            ^~~~~~~~~~~~~~~
   arch/openrisc/kernel/smp.c: At top level:
   arch/openrisc/kernel/smp.c:116:24: warning: no previous prototype for 'secondary_start_kernel' [-Wmissing-prototypes]
     116 | asmlinkage __init void secondary_start_kernel(void)
         |                        ^~~~~~~~~~~~~~~~~~~~~~
   arch/openrisc/kernel/smp.c:201:5: warning: no previous prototype for 'setup_profiling_timer' [-Wmissing-prototypes]
     201 | int setup_profiling_timer(unsigned int multiplier)
         |     ^~~~~~~~~~~~~~~~~~~~~


vim +/of_get_cpu_hwid +68 arch/openrisc/kernel/smp.c

    61	
    62	void __init smp_init_cpus(void)
    63	{
    64		struct device_node *cpu;
    65		u32 cpu_id;
    66	
    67		for_each_of_cpu_node(cpu) {
  > 68			cpu_id = of_get_cpu_hwid(cpu);
    69			if (cpu_id < NR_CPUS)
    70				set_cpu_possible(cpu_id, true);
    71		}
    72	}
    73	

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

Download attachment ".config.gz" of type "application/gzip" (33090 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ