All of lore.kernel.org
 help / color / mirror / Atom feed
* [pinchartl:rcar/x5h/vsp 1/1] drivers/media/platform/renesas/rcar-fcp.c:263:14: warning: cast to smaller integer type 'enum rcar_fcp_type' from 'const void *'
@ 2026-09-08  8:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-08  8:09 UTC (permalink / raw)
  To: Laurent Pinchart; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pinchartl/linux.git rcar/x5h/vsp
head:   a92cff87bfdad91d6a30df052c342a23849c1f40
commit: a92cff87bfdad91d6a30df052c342a23849c1f40 [1/1] v4l: rcar-fcp: Check device revision at probe time
config: riscv-allyesconfig (https://download.01.org/0day-ci/archive/20260908/202609081526.zHnaqSx0-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 2362eeb5f75560740146975e9eabe84c6bd25a0d)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260908/202609081526.zHnaqSx0-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/202609081526.zHnaqSx0-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/media/platform/renesas/rcar-fcp.c:263:14: warning: cast to smaller integer type 'enum rcar_fcp_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
     263 |         fcp->type = (enum rcar_fcp_type)device_get_match_data(&pdev->dev);
         |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 warning generated.


vim +263 drivers/media/platform/renesas/rcar-fcp.c

   252	
   253	static int rcar_fcp_probe(struct platform_device *pdev)
   254	{
   255		struct rcar_fcp_device *fcp;
   256		int ret;
   257	
   258		fcp = devm_kzalloc(&pdev->dev, sizeof(*fcp), GFP_KERNEL);
   259		if (fcp == NULL)
   260			return -ENOMEM;
   261	
   262		fcp->dev = &pdev->dev;
 > 263		fcp->type = (enum rcar_fcp_type)device_get_match_data(&pdev->dev);
   264	
   265		fcp->base = devm_platform_ioremap_resource(pdev, 0);
   266		if (IS_ERR(fcp->base))
   267			return PTR_ERR(fcp->base);
   268	
   269		dma_set_max_seg_size(fcp->dev, UINT_MAX);
   270	
   271		pm_runtime_enable(&pdev->dev);
   272		ret = pm_runtime_get_sync(&pdev->dev);
   273		if (ret < 0)
   274			goto error_pm_disable;
   275	
   276		ret = rcar_fcp_setup(fcp);
   277		if (ret < 0)
   278			goto error_pm_put;
   279	
   280		pm_runtime_put(&pdev->dev);
   281	
   282		mutex_lock(&fcp_lock);
   283		list_add_tail(&fcp->list, &fcp_devices);
   284		mutex_unlock(&fcp_lock);
   285	
   286		platform_set_drvdata(pdev, fcp);
   287	
   288		return 0;
   289	
   290	error_pm_put:
   291		pm_runtime_put(&pdev->dev);
   292	error_pm_disable:
   293		pm_runtime_disable(&pdev->dev);
   294		return ret;
   295	}
   296	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-08  8:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08  8:09 [pinchartl:rcar/x5h/vsp 1/1] drivers/media/platform/renesas/rcar-fcp.c:263:14: warning: cast to smaller integer type 'enum rcar_fcp_type' from 'const void *' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.