From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/mailbox/mailbox-mpfs.c:255 mpfs_mbox_syscon_probe() warn: passing zero to 'PTR_ERR'
Date: Wed, 27 Nov 2024 04:31:41 +0800 [thread overview]
Message-ID: <202411270409.cWyrOSWm-lkp@intel.com> (raw)
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Conor Dooley <conor.dooley@microchip.com>
CC: Jassi Brar <jassisinghbrar@gmail.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 7eef7e306d3c40a0c5b9ff6adc9b273cc894dbd5
commit: a4123ffab9ece0c2d3d5c460724d49c4051fd279 mailbox: mpfs: support new, syscon based, devicetree configuration
date: 2 days ago
:::::: branch date: 18 hours ago
:::::: commit date: 2 days ago
config: hexagon-randconfig-r072-20241125 (https://download.01.org/0day-ci/archive/20241127/202411270409.cWyrOSWm-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202411270409.cWyrOSWm-lkp@intel.com/
smatch warnings:
drivers/mailbox/mailbox-mpfs.c:255 mpfs_mbox_syscon_probe() warn: passing zero to 'PTR_ERR'
vim +/PTR_ERR +255 drivers/mailbox/mailbox-mpfs.c
83d7b1560810e0 Conor Dooley 2021-06-24 242
a4123ffab9ece0 Conor Dooley 2024-10-02 243 static inline int mpfs_mbox_syscon_probe(struct mpfs_mbox *mbox, struct platform_device *pdev)
83d7b1560810e0 Conor Dooley 2021-06-24 244 {
a4123ffab9ece0 Conor Dooley 2024-10-02 245 mbox->control_scb = syscon_regmap_lookup_by_compatible("microchip,mpfs-control-scb");
a4123ffab9ece0 Conor Dooley 2024-10-02 246 if (IS_ERR(mbox->control_scb))
a4123ffab9ece0 Conor Dooley 2024-10-02 247 return PTR_ERR(mbox->control_scb);
83d7b1560810e0 Conor Dooley 2021-06-24 248
a4123ffab9ece0 Conor Dooley 2024-10-02 249 mbox->sysreg_scb = syscon_regmap_lookup_by_compatible("microchip,mpfs-sysreg-scb");
a4123ffab9ece0 Conor Dooley 2024-10-02 250 if (IS_ERR(mbox->sysreg_scb))
a4123ffab9ece0 Conor Dooley 2024-10-02 251 return PTR_ERR(mbox->sysreg_scb);
83d7b1560810e0 Conor Dooley 2021-06-24 252
a4123ffab9ece0 Conor Dooley 2024-10-02 253 mbox->mbox_base = devm_platform_ioremap_resource(pdev, 0);
a4123ffab9ece0 Conor Dooley 2024-10-02 254 if (IS_ERR(mbox->ctrl_base))
a4123ffab9ece0 Conor Dooley 2024-10-02 @255 return PTR_ERR(mbox->mbox_base);
a4123ffab9ece0 Conor Dooley 2024-10-02 256
a4123ffab9ece0 Conor Dooley 2024-10-02 257 return 0;
a4123ffab9ece0 Conor Dooley 2024-10-02 258 }
a4123ffab9ece0 Conor Dooley 2024-10-02 259
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-11-26 20:32 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=202411270409.cWyrOSWm-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@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.