mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Thompson <davthompson@nvidia.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Hans de Goede <hdegoede@redhat.com>,
	Shravan Kumar Ramani <shravankr@nvidia.com>
Subject: drivers/platform/mellanox/mlxbf-bootctl.c:516: undefined reference to `sysfs_format_mac'
Date: Sun, 10 Sep 2023 02:13:02 +0800	[thread overview]
Message-ID: <202309100251.FBtxnkZX-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-09-09 18:13 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=202309100251.FBtxnkZX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=davthompson@nvidia.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=shravankr@nvidia.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

all inboxes | Powered by JetHome®