From: Dan Carpenter <dan.carpenter@linaro.org>
To: oe-kbuild@lists.linux.dev,
Valentina Fernandez <valentina.fernandezalanis@microchip.com>
Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org,
Jassi Brar <jassisinghbrar@gmail.com>
Subject: drivers/mailbox/mailbox-mchp-ipc-sbi.c:187 mchp_ipc_cluster_aggr_isr() error: uninitialized symbol 'hartid'.
Date: Wed, 17 Dec 2025 16:20:02 +0300 [thread overview]
Message-ID: <202512171533.CDLdScMY-lkp@intel.com> (raw)
Hi Valentina,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ea1013c1539270e372fc99854bc6e4d94eaeff66
commit: c1382852330ee2e78d884bab2da25b880488fa1c riscv: sbi: vendorid_list: Add Microchip Technology to the vendor list
config: riscv-randconfig-r071-20251216 (https://download.01.org/0day-ci/archive/20251217/202512171533.CDLdScMY-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571)
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 <dan.carpenter@linaro.org>
| Closes: https://lore.kernel.org/r/202512171533.CDLdScMY-lkp@intel.com/
Old smatch warnings:
drivers/mailbox/mailbox-mchp-ipc-sbi.c:422 mchp_ipc_probe() warn: passing zero to 'dev_err_probe'
vim +/hartid +187 drivers/mailbox/mailbox-mchp-ipc-sbi.c
410 static int mchp_ipc_probe(struct platform_device *pdev)
411 {
412 struct device *dev = &pdev->dev;
413 struct mchp_ipc_mbox_info ipc_info;
414 struct mchp_ipc_sbi_mbox *ipc;
415 struct mchp_ipc_sbi_chan *priv;
416 bool irq_avail = false;
417 int ret;
418 u32 chan_id;
419
420 ret = sbi_probe_extension(SBI_EXT_MICROCHIP_TECHNOLOGY);
421 if (ret <= 0)
422 return dev_err_probe(dev, ret, "Microchip SBI extension not detected\n");
^^^
sbi_probe_extension() returns zero on error which is success here.
423
424 ipc = devm_kzalloc(dev, sizeof(*ipc), GFP_KERNEL);
425 if (!ipc)
426 return -ENOMEM;
427
428 platform_set_drvdata(pdev, ipc);
429
430 ipc->buf_base = devm_kmalloc(dev, sizeof(struct mchp_ipc_mbox_info), GFP_KERNEL);
431 if (!ipc->buf_base)
432 return -ENOMEM;
433
434 ipc->buf_base_addr = __pa(ipc->buf_base);
435
436 ret = mchp_ipc_sbi_send(SBI_EXT_IPC_PROBE, ipc->buf_base_addr);
437 if (ret < 0)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-17 13:20 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=202512171533.CDLdScMY-lkp@intel.com \
--to=dan.carpenter@linaro.org \
--cc=jassisinghbrar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
--cc=valentina.fernandezalanis@microchip.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