* drivers/mailbox/mailbox-mpfs.c:255 mpfs_mbox_syscon_probe() warn: passing zero to 'PTR_ERR'
@ 2024-11-26 20:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-26 20:31 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-26 20:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26 20:31 drivers/mailbox/mailbox-mpfs.c:255 mpfs_mbox_syscon_probe() warn: passing zero to 'PTR_ERR' 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.