[linux-next:master 7766/10451] drivers/clk/qcom/camcc-sm8650.c:3573:36: error: passing argument 1 of 'qcom_cc_really_probe' from incompatible pointer type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0b58e108042b0ed28a71cd7edf5175999955b233
commit: 09ea421652a832083ea380a72addf383965f3682 [7766/10451] clk: qcom: camcc-sm8650: Add SM8650 camera clock controller driver
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240707/202407072212.WptVaUDt-lkp@xxxxxxxxx/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240707/202407072212.WptVaUDt-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407072212.WptVaUDt-lkp@xxxxxxxxx/

Note: the linux-next/master HEAD 0b58e108042b0ed28a71cd7edf5175999955b233 builds fine.
      It may have been fixed somewhere.

All errors (new ones prefixed by >>):

   drivers/clk/qcom/camcc-sm8650.c: In function 'cam_cc_sm8650_probe':
>> drivers/clk/qcom/camcc-sm8650.c:3573:36: error: passing argument 1 of 'qcom_cc_really_probe' from incompatible pointer type [-Werror=incompatible-pointer-types]
    3573 |         ret = qcom_cc_really_probe(&pdev->dev, &cam_cc_sm8650_desc, regmap);
         |                                    ^~~~~~~~~~
         |                                    |
         |                                    struct device *
   In file included from drivers/clk/qcom/camcc-sm8650.c:19:
   drivers/clk/qcom/common.h:63:57: note: expected 'struct platform_device *' but argument is of type 'struct device *'
      63 | extern int qcom_cc_really_probe(struct platform_device *pdev,
         |                                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
   cc1: some warnings being treated as errors


vim +/qcom_cc_really_probe +3573 drivers/clk/qcom/camcc-sm8650.c

  3535	
  3536	static int cam_cc_sm8650_probe(struct platform_device *pdev)
  3537	{
  3538		struct regmap *regmap;
  3539		int ret;
  3540	
  3541		ret = devm_pm_runtime_enable(&pdev->dev);
  3542		if (ret)
  3543			return ret;
  3544	
  3545		ret = pm_runtime_resume_and_get(&pdev->dev);
  3546		if (ret)
  3547			return ret;
  3548	
  3549		regmap = qcom_cc_map(pdev, &cam_cc_sm8650_desc);
  3550		if (IS_ERR(regmap)) {
  3551			pm_runtime_put(&pdev->dev);
  3552			return PTR_ERR(regmap);
  3553		}
  3554	
  3555		clk_lucid_ole_pll_configure(&cam_cc_pll0, regmap, &cam_cc_pll0_config);
  3556		clk_lucid_ole_pll_configure(&cam_cc_pll1, regmap, &cam_cc_pll1_config);
  3557		clk_rivian_evo_pll_configure(&cam_cc_pll2, regmap, &cam_cc_pll2_config);
  3558		clk_lucid_ole_pll_configure(&cam_cc_pll3, regmap, &cam_cc_pll3_config);
  3559		clk_lucid_ole_pll_configure(&cam_cc_pll4, regmap, &cam_cc_pll4_config);
  3560		clk_lucid_ole_pll_configure(&cam_cc_pll5, regmap, &cam_cc_pll5_config);
  3561		clk_lucid_ole_pll_configure(&cam_cc_pll6, regmap, &cam_cc_pll6_config);
  3562		clk_lucid_ole_pll_configure(&cam_cc_pll7, regmap, &cam_cc_pll7_config);
  3563		clk_lucid_ole_pll_configure(&cam_cc_pll8, regmap, &cam_cc_pll8_config);
  3564		clk_lucid_ole_pll_configure(&cam_cc_pll9, regmap, &cam_cc_pll9_config);
  3565		clk_lucid_ole_pll_configure(&cam_cc_pll10, regmap, &cam_cc_pll10_config);
  3566	
  3567		/* Keep clocks always enabled */
  3568		qcom_branch_set_clk_en(regmap, 0x13318); /* CAM_CC_DRV_AHB_CLK */
  3569		qcom_branch_set_clk_en(regmap, 0x13314); /* CAM_CC_DRV_XO_CLK */
  3570		qcom_branch_set_clk_en(regmap, 0x132ec); /* CAM_CC_GDSC_CLK */
  3571		qcom_branch_set_clk_en(regmap, 0x13308); /* CAM_CC_SLEEP_CLK */
  3572	
> 3573		ret = qcom_cc_really_probe(&pdev->dev, &cam_cc_sm8650_desc, regmap);
  3574	
  3575		pm_runtime_put(&pdev->dev);
  3576	
  3577		return ret;
  3578	}
  3579	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux