linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 7766/10451] drivers/clk/qcom/camcc-sm8650.c:3573:29: error: incompatible pointer types passing 'struct device *' to parameter of type 'struct platform_device *'
@ 2024-07-07 15:20 kernel test robot
  2024-07-18  6:48 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2024-07-07 15:20 UTC (permalink / raw)
  To: Jagadeesh Kona
  Cc: llvm, oe-kbuild-all, Linux Memory Management List,
	Bjorn Andersson, Bryan O'Donoghue, Dmitry Baryshkov,
	Vladimir Zapolskiy

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: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240707/202407072331.baglL4Sd-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240707/202407072331.baglL4Sd-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407072331.baglL4Sd-lkp@intel.com/

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:3573:29: error: incompatible pointer types passing 'struct device *' to parameter of type 'struct platform_device *' [-Werror,-Wincompatible-pointer-types]
    3573 |         ret = qcom_cc_really_probe(&pdev->dev, &cam_cc_sm8650_desc, regmap);
         |                                    ^~~~~~~~~~
   drivers/clk/qcom/common.h:63:57: note: passing argument to parameter 'pdev' here
      63 | extern int qcom_cc_really_probe(struct platform_device *pdev,
         |                                                         ^
   1 error generated.


vim +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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-07-19  7:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-07 15:20 [linux-next:master 7766/10451] drivers/clk/qcom/camcc-sm8650.c:3573:29: error: incompatible pointer types passing 'struct device *' to parameter of type 'struct platform_device *' kernel test robot
2024-07-18  6:48 ` Krzysztof Kozlowski
2024-07-18  9:48   ` Jagadeesh Kona
2024-07-18 10:06     ` Krzysztof Kozlowski
2024-07-19  7:06       ` Jagadeesh Kona

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox