mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/platform/mellanox/mlxbf-bootctl.c:516: undefined reference to `sysfs_format_mac'
@ 2023-09-09 18:13 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-09 18:13 UTC (permalink / raw)
  To: David Thompson
  Cc: oe-kbuild-all, linux-kernel, Hans de Goede, Shravan Kumar Ramani

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

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

only message in thread, other threads:[~2023-09-09 18:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-09 18:13 drivers/platform/mellanox/mlxbf-bootctl.c:516: undefined reference to `sysfs_format_mac' kernel test robot

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

all inboxes | Powered by JetHome®