[openeuler:OLK-6.6 13/13] drivers/ub/ubus/pool.c:447:5: warning: no previous prototype for 'ub_fm_flush_ubc_info'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 03c9c649e6f28e26260d276ce755f785b2435da3 commit: 3ba2ea6f540df963f195e45f1a0cc5110cd67cee [13/13] ub:ubus: Add new UBUS pool device interfaces config: arm64-randconfig-004-20251226 (https://download.01.org/0day-ci/archive/20251226/202512262223.82hdqwfD-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251226/202512262223.82hdqwfD-lkp@i...) 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/202512262223.82hdqwfD-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/ub/ubus/pool.c:447:5: warning: no previous prototype for 'ub_fm_flush_ubc_info' [-Wmissing-prototypes] 447 | int ub_fm_flush_ubc_info(struct ub_bus_controller *ubc) | ^~~~~~~~~~~~~~~~~~~~ In file included from drivers/ub/ubus/instance.h:9, from drivers/ub/ubus/pool.c:16: include/linux/ummu_core.h:303:30: warning: 'ummu_core_tid_ops' defined but not used [-Wunused-variable] 303 | static const struct tid_ops *ummu_core_tid_ops[TID_OPS_MAX]; | ^~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/ub_fm_flush_ubc_info +447 drivers/ub/ubus/pool.c 446
447 int ub_fm_flush_ubc_info(struct ub_bus_controller *ubc) 448 { 449 struct device *dev = &ubc->dev; 450 int ret = -ENOMEM; 451 u32 eid, fm_cna; 452 char *buf; 453 u16 upi; 454 455 buf = kzalloc(SZ_4K, GFP_KERNEL); 456 if (!buf) 457 goto out; 458 459 ret = ub_cfg_read_word(ubc->uent, UB_UPI, &upi); 460 if (ret) { 461 dev_err(dev, "update cluster upi failed, ret=%d\n", ret); 462 goto free_buf; 463 } 464 465 ubc->uent->upi = upi & UB_UPI_MASK; 466 dev_info(dev, "update cluster ubc upi to %#x\n", ubc->uent->upi); 467 468 ret = ub_cfg_read_dword(ubc->uent, UB_EID_0, &eid); 469 if (ret) { 470 dev_err(dev, "update cluster ubc eid failed, ret=%d\n", ret); 471 goto free_buf; 472 } 473 474 if (eid <= ubc_eid_end) { 475 dev_err(dev, "update cluster ubc wrong, eid=%#x\n", eid); 476 ret = -EINVAL; 477 goto free_buf; 478 } 479 480 ubc->uent->eid = eid & UB_COMPACT_EID_MASK; 481 dev_info(dev, "update cluster ubc eid to %#x\n", ubc->uent->eid); 482 483 ret = ub_cfg_read_dword(ubc->uent, UB_FM_CNA, &fm_cna); 484 if (ret) { 485 dev_err(dev, "read fm cna failed, ret=%d\n", ret); 486 goto free_buf; 487 } 488 489 ubc->uent->fm_cna = fm_cna & UB_FM_CNA_MASK; 490 dev_info(dev, "update cluster ubc fm cna to %#x\n", ubc->uent->fm_cna); 491 492 ret = ub_query_ent_na(ubc->uent, buf); 493 if (ret) { 494 dev_err(dev, "update cluster ubc cna failed, ret=%d\n", ret); 495 goto free_buf; 496 } 497 498 ret = ub_query_port_na(ubc->uent, buf); 499 500 free_buf: 501 kfree(buf); 502 out: 503 return ret; 504 } 505
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot