From: kernel test robot <lkp@intel.com>
To: "Stefan Dösinger " <stefandoesinger@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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 *'
Date: Tue, 23 Jun 2026 09:53:16 +0800 [thread overview]
Message-ID: <202606230924.t2fbL1ve-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-23 1:54 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=202606230924.t2fbL1ve-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=stefandoesinger@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox