Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [stefandoesinger-zx297520:mfd 123/124] drivers/reset/reset-zte-zx297520v3.c:204:46: warning: cast to smaller integer type 'unsigned int' from 'struct device_node *'
@ 2026-06-23  1:53 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-23  1:53 UTC (permalink / raw)
  To: Stefan Dösinger ; +Cc: llvm, oe-kbuild-all

tree:   https://gitlab.com/stefandoesinger/zx297520-kernel mfd
head:   c94d760b3ed42a18ecbae9e63d7010c770a8c042
commit: 64dd9c56a2aaf035cb2702b7d20cf6bf7901466b [123/124] mfd 2
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20260623/202606230924.t2fbL1ve-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260623/202606230924.t2fbL1ve-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/202606230924.t2fbL1ve-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/reset/reset-zte-zx297520v3.c:204:46: warning: cast to smaller integer type 'unsigned int' from 'struct device_node *' [-Wpointer-to-int-cast]
     204 |         dev_err(&pdev->dev, "my of node: 0x%08x\n", (unsigned int)pdev->dev.of_node);
         |                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
     154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                                        ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/reset/reset-zte-zx297520v3.c:205:50: warning: cast to smaller integer type 'unsigned int' from 'struct device_node *' [-Wpointer-to-int-cast]
     205 |         dev_err(&pdev->dev, "parent of node: 0x%08x\n", (unsigned int)pdev->dev.parent->of_node);
         |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
     154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                                        ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/reset/reset-zte-zx297520v3.c:219:46: warning: cast to smaller integer type 'unsigned int' from 'struct device_node *' [-Wpointer-to-int-cast]
     219 |         dev_err(&pdev->dev, "my of node: 0x%08x\n", (unsigned int)pdev->dev.of_node);
         |                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
     154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                                        ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   drivers/reset/reset-zte-zx297520v3.c:220:50: warning: cast to smaller integer type 'unsigned int' from 'struct device_node *' [-Wpointer-to-int-cast]
     220 |         dev_err(&pdev->dev, "parent of node: 0x%08x\n", (unsigned int)pdev->dev.parent->of_node);
         |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
     154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
         |                                                                        ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
     110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
         |                                     ^~~~~~~~~~~
   4 warnings generated.


vim +204 drivers/reset/reset-zte-zx297520v3.c

   201	
   202	static int reset_zx297520v3_top_probe(struct platform_device *pdev)
   203	{
 > 204		dev_err(&pdev->dev, "my of node: 0x%08x\n", (unsigned int)pdev->dev.of_node);
   205		dev_err(&pdev->dev, "parent of node: 0x%08x\n", (unsigned int)pdev->dev.parent->of_node);
   206		return reset_zx297520v3_common_probe(&pdev->dev, pdev->dev.parent->of_node,
   207						     &zx297520v3_top_info);
   208	}
   209	

--
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-06-23  1:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23  1:53 [stefandoesinger-zx297520:mfd 123/124] drivers/reset/reset-zte-zx297520v3.c:204:46: warning: cast to smaller integer type 'unsigned int' from 'struct device_node *' kernel test robot

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