public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rob Herring <robh@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.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'
Date: Fri, 8 Oct 2021 00:56:20 +0800	[thread overview]
Message-ID: <202110080018.H9VGGFpZ-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-10-07 16:57 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=202110080018.H9VGGFpZ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@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