Messages in this thread | | | Date | Sun, 10 Sep 2023 02:13:02 +0800 | From | kernel test robot <> | Subject | drivers/platform/mellanox/mlxbf-bootctl.c:516: undefined reference to `sysfs_format_mac' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6099776f9f268e61fe5ecd721f994a8cfce5306f commit: 7e38a7422f128e7d7ba24b444e957d585dbb272f mlxbf-bootctl: Support sysfs entries for MFG fields date: 2 weeks ago config: arm64-randconfig-r033-20210930 (https://download.01.org/0day-ci/archive/20230910/202309100251.FBtxnkZX-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 12.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230910/202309100251.FBtxnkZX-lkp@intel.com/reproduce)
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/202309100251.FBtxnkZX-lkp@intel.com/
All errors (new ones prefixed by >>):
aarch64-linux-ld: Unexpected GOT/PLT entries detected! aarch64-linux-ld: Unexpected run-time procedure linkages detected! aarch64-linux-ld: drivers/platform/mellanox/mlxbf-bootctl.o: in function `oob_mac_show': >> drivers/platform/mellanox/mlxbf-bootctl.c:516: undefined reference to `sysfs_format_mac'
vim +516 drivers/platform/mellanox/mlxbf-bootctl.c
500 501 static ssize_t oob_mac_show(struct device *dev, 502 struct device_attribute *attr, char *buf) 503 { 504 struct arm_smccc_res res; 505 u8 *mac_byte_ptr; 506 507 mutex_lock(&mfg_ops_lock); 508 arm_smccc_smc(MLXBF_BOOTCTL_GET_MFG_INFO, MLNX_MFG_TYPE_OOB_MAC, 0, 0, 0, 509 0, 0, 0, &res); 510 mutex_unlock(&mfg_ops_lock); 511 if (res.a0) 512 return -EPERM; 513 514 mac_byte_ptr = (u8 *)&res.a1; 515 > 516 return sysfs_format_mac(buf, mac_byte_ptr, ETH_ALEN); 517 } 518
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
| |