The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* drivers/mailbox/mailbox-mchp-ipc-sbi.c:187 mchp_ipc_cluster_aggr_isr() error: uninitialized symbol 'hartid'.
@ 2025-12-17 13:20 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2025-12-17 13:20 UTC (permalink / raw)
  To: oe-kbuild, Valentina Fernandez
  Cc: lkp, oe-kbuild-all, linux-kernel, Jassi Brar

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-17 13:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-17 13:20 drivers/mailbox/mailbox-mchp-ipc-sbi.c:187 mchp_ipc_cluster_aggr_isr() error: uninitialized symbol 'hartid' Dan Carpenter

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