All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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 *'
Date: Tue, 08 Sep 2026 16:09:30 +0800	[thread overview]
Message-ID: <202609081526.zHnaqSx0-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-08  8:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609081526.zHnaqSx0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.