Re: [PATCH 2/3] firmware: qcom: scm: Remove core, iface and bus clocks dependency

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

 



Hi Sarangdhar,

[auto build test WARNING on linus/master]
[also build test WARNING on v4.9-rc2 next-20161028]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Sarangdhar-Joshi/Remove-clocks-dependency-from-SCM-driver/20161029-081333
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
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All warnings (new ones prefixed by >>):

   drivers/firmware/qcom_scm.c: In function 'qcom_scm_probe':
>> drivers/firmware/qcom_scm.c:337:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
     clks = (uint64_t)of_device_get_match_data(&pdev->dev);
            ^

vim +337 drivers/firmware/qcom_scm.c

   321	bool qcom_scm_is_available(void)
   322	{
   323		return !!__scm;
   324	}
   325	EXPORT_SYMBOL(qcom_scm_is_available);
   326	
   327	static int qcom_scm_probe(struct platform_device *pdev)
   328	{
   329		struct qcom_scm *scm;
   330		uint64_t clks;
   331		int ret;
   332	
   333		scm = devm_kzalloc(&pdev->dev, sizeof(*scm), GFP_KERNEL);
   334		if (!scm)
   335			return -ENOMEM;
   336	
 > 337		clks = (uint64_t)of_device_get_match_data(&pdev->dev);
   338		if (clks & SCM_HAS_CORE_CLK) {
   339			scm->core_clk = devm_clk_get(&pdev->dev, "core");
   340			if (IS_ERR(scm->core_clk)) {
   341				if (PTR_ERR(scm->core_clk) == -EPROBE_DEFER)
   342					return PTR_ERR(scm->core_clk);
   343	
   344				scm->core_clk = NULL;
   345			}

---
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 ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux