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: <202111082122.rnG0FqjZ-lkp@intel.com>
Date:   Mon, 8 Nov 2021 21:40:29 +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 5/12] arch/arm/mach-bcm/bcm63xx_pmb.c:94:16:
 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: 0675c9648ac70490841259b1e449c293d27fd6ce [5/12] ARM: broadcom: Use of_get_cpu_hwid()
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-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=0675c9648ac70490841259b1e449c293d27fd6ce
        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 0675c9648ac70490841259b1e449c293d27fd6ce
        # 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=arm 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/arm/mach-bcm/bcm63xx_pmb.c: In function 'bcm63xx_pmb_get_resources':
>> arch/arm/mach-bcm/bcm63xx_pmb.c:94:16: error: too few arguments to function 'of_get_cpu_hwid'
      94 |         *cpu = of_get_cpu_hwid(dn);
         |                ^~~~~~~~~~~~~~~
   In file included from arch/arm/mach-bcm/bcm63xx_pmb.c:12:
   include/linux/of.h:356:12: note: declared here
     356 | extern u64 of_get_cpu_hwid(struct device_node *cpun, unsigned int thread);
         |            ^~~~~~~~~~~~~~~


vim +/of_get_cpu_hwid +94 arch/arm/mach-bcm/bcm63xx_pmb.c

    85	
    86	static int bcm63xx_pmb_get_resources(struct device_node *dn,
    87					     void __iomem **base,
    88					     unsigned int *cpu,
    89					     unsigned int *addr)
    90	{
    91		struct of_phandle_args args;
    92		int ret;
    93	
  > 94		*cpu = of_get_cpu_hwid(dn);
    95		if (*cpu == ~0U) {
    96			pr_err("CPU is missing a reg node\n");
    97			return -ENODEV;
    98		}
    99	
   100		ret = of_parse_phandle_with_args(dn, "resets", "#reset-cells",
   101						 0, &args);
   102		if (ret) {
   103			pr_err("CPU is missing a resets phandle\n");
   104			return ret;
   105		}
   106	
   107		if (args.args_count != 2) {
   108			pr_err("reset-controller does not conform to reset-cells\n");
   109			return -EINVAL;
   110		}
   111	
   112		*base = of_iomap(args.np, 0);
   113		if (!*base) {
   114			pr_err("failed remapping PMB register\n");
   115			return -ENOMEM;
   116		}
   117	
   118		/* We do not need the number of zones */
   119		*addr = args.args[0];
   120	
   121		return 0;
   122	}
   123	

---
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" (55348 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ