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:   Sun, 3 Oct 2021 02:35:08 +0800
From:   kernel test robot <lkp@...el.com>
To:     Hector Martin <marcan@...can.st>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [asahilinux:cpufreq/wip 16/16] drivers/memory/apple-mcc.c:99:15:
 error: implicit declaration of function
 'of_genpd_add_provider_simple_noclk'; did you mean
 'of_genpd_add_provider_simple'?

tree:   https://github.com/AsahiLinux/linux cpufreq/wip
head:   e44f8c4999018e6bbbf00e94afe4b35809aa1248
commit: e44f8c4999018e6bbbf00e94afe4b35809aa1248 [16/16] cpufreq/mcc wip
config: h8300-allyesconfig (attached as .config)
compiler: h8300-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://github.com/AsahiLinux/linux/commit/e44f8c4999018e6bbbf00e94afe4b35809aa1248
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux cpufreq/wip
        git checkout e44f8c4999018e6bbbf00e94afe4b35809aa1248
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=h8300 

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

   drivers/memory/apple-mcc.c: In function 'apple_mcc_probe':
>> drivers/memory/apple-mcc.c:99:15: error: implicit declaration of function 'of_genpd_add_provider_simple_noclk'; did you mean 'of_genpd_add_provider_simple'? [-Werror=implicit-function-declaration]
      99 |         ret = of_genpd_add_provider_simple_noclk(node, &mcc->genpd);
         |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |               of_genpd_add_provider_simple
   cc1: some warnings being treated as errors


vim +99 drivers/memory/apple-mcc.c

    68	
    69	static int apple_mcc_probe(struct platform_device *pdev)
    70	{
    71		struct device *dev = &pdev->dev;
    72		struct device_node *node = dev->of_node;
    73		struct apple_mcc *mcc;
    74		int ret;
    75	
    76		mcc = devm_kzalloc(dev, sizeof(*mcc), GFP_KERNEL);
    77		if (!mcc)
    78			return -ENOMEM;
    79	
    80		mcc->reg_base = devm_platform_ioremap_resource(pdev, 0);
    81		if (IS_ERR(mcc->reg_base))
    82			return PTR_ERR(mcc->reg_base);
    83	
    84		if (of_property_read_u32(node, "apple,num-channels", &mcc->num_channels)) {
    85			dev_err(dev, "missing apple,num-channels property\n");
    86		}
    87	
    88		mcc->dev = dev;
    89		mcc->genpd.name = "apple-mcc-perf";
    90		mcc->genpd.opp_to_performance_state = apple_mcc_opp_to_performance_state;
    91		mcc->genpd.set_performance_state = apple_mcc_set_performance_state;
    92	
    93		ret = pm_genpd_init(&mcc->genpd, NULL, false);
    94		if (ret < 0) {
    95			dev_err(dev, "pm_genpd_init failed\n");
    96			return ret;
    97		}
    98	
  > 99		ret = of_genpd_add_provider_simple_noclk(node, &mcc->genpd);
   100		if (ret < 0) {
   101			dev_err(dev, "of_genpd_add_provider_simple failed\n");
   102			return ret;
   103		}
   104	
   105		dev_info(dev, "MCC performance driver initialized\n");
   106	
   107		return 0;
   108	}
   109	

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

Powered by blists - more mailing lists