All of lore.kernel.org
 help / color / mirror / Atom feed
* [robh:mpam/cache-id 8/12] arch/openrisc/kernel/smp.c:68:26: error: too few arguments to function 'of_get_cpu_hwid'
@ 2021-10-07 16:56 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-07 16:56 UTC (permalink / raw)
  To: Rob Herring; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2635 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33090 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [robh:mpam/cache-id 8/12] arch/openrisc/kernel/smp.c:68:26: error: too few arguments to function 'of_get_cpu_hwid'
@ 2021-10-07 16:56 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-07 16:56 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2692 bytes --]

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@intel.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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33090 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-07 16:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07 16:56 [robh:mpam/cache-id 8/12] arch/openrisc/kernel/smp.c:68:26: error: too few arguments to function 'of_get_cpu_hwid' kernel test robot
2021-10-07 16:56 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.