[pm:bleeding-edge 6/6] drivers/cpufreq/ti-cpufreq.c:250:6: warning: assignment makes integer from pointer without a cast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rafael,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   bb82180c28a897ea3172e7ed670c42a77a1192df
commit: bb82180c28a897ea3172e7ed670c42a77a1192df [6/6] Merge branch 'pm-opp' into bleeding-edge
config: arm-allmodconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout bb82180c28a897ea3172e7ed670c42a77a1192df
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/cpufreq/ti-cpufreq.c: In function 'ti_cpufreq_init':
>> drivers/cpufreq/ti-cpufreq.c:250:6: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
     ret = dev_pm_opp_set_supported_hw(opp_data->cpu_dev, version,
         ^

vim +250 drivers/cpufreq/ti-cpufreq.c

34a0fc82 Dave Gerlach 2017-01-17  234  	/*
34a0fc82 Dave Gerlach 2017-01-17  235  	 * OPPs determine whether or not they are supported based on
34a0fc82 Dave Gerlach 2017-01-17  236  	 * two metrics:
34a0fc82 Dave Gerlach 2017-01-17  237  	 *	0 - SoC Revision
34a0fc82 Dave Gerlach 2017-01-17  238  	 *	1 - eFuse value
34a0fc82 Dave Gerlach 2017-01-17  239  	 */
34a0fc82 Dave Gerlach 2017-01-17  240  	ret = ti_cpufreq_get_rev(opp_data, &version[0]);
34a0fc82 Dave Gerlach 2017-01-17  241  	if (ret)
34a0fc82 Dave Gerlach 2017-01-17  242  		goto fail_put_node;
34a0fc82 Dave Gerlach 2017-01-17  243  
34a0fc82 Dave Gerlach 2017-01-17  244  	ret = ti_cpufreq_get_efuse(opp_data, &version[1]);
34a0fc82 Dave Gerlach 2017-01-17  245  	if (ret)
34a0fc82 Dave Gerlach 2017-01-17  246  		goto fail_put_node;
34a0fc82 Dave Gerlach 2017-01-17  247  
34a0fc82 Dave Gerlach 2017-01-17  248  	of_node_put(opp_data->opp_node);
34a0fc82 Dave Gerlach 2017-01-17  249  
34a0fc82 Dave Gerlach 2017-01-17 @250  	ret = dev_pm_opp_set_supported_hw(opp_data->cpu_dev, version,
34a0fc82 Dave Gerlach 2017-01-17  251  					  VERSION_COUNT);
34a0fc82 Dave Gerlach 2017-01-17  252  	if (ret) {
34a0fc82 Dave Gerlach 2017-01-17  253  		dev_err(opp_data->cpu_dev,
34a0fc82 Dave Gerlach 2017-01-17  254  			"Failed to set supported hardware\n");
34a0fc82 Dave Gerlach 2017-01-17  255  		goto fail_put_node;
34a0fc82 Dave Gerlach 2017-01-17  256  	}
34a0fc82 Dave Gerlach 2017-01-17  257  
34a0fc82 Dave Gerlach 2017-01-17  258  register_cpufreq_dt:

:::::: The code at line 250 was first introduced by commit
:::::: 34a0fc828fc68b735e33510c24b1bc6aa430079b cpufreq: ti: Add cpufreq driver to determine available OPPs at runtime

:::::: TO: Dave Gerlach <d-gerlach@xxxxxx>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux