ld.lld: error: undefined symbol: ptp_clock_register

From: kernel test robot
Date: Thu Nov 25 2021 - 16:02:57 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5f53fa508db098c9d372423a6dac31c8a5679cdf
commit: e5f31552674e88bff3a4e3ca3e5357668b5f2973 ethernet: fix PTP_1588_CLOCK dependencies
date: 3 months ago
config: x86_64-buildonly-randconfig-r005-20211118 (https://download.01.org/0day-ci/archive/20211126/202111260440.QjqOIrAz-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c46becf500df2a7fb4b4fce16178a036c344315a)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e5f31552674e88bff3a4e3ca3e5357668b5f2973
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5f31552674e88bff3a4e3ca3e5357668b5f2973
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> ld.lld: error: undefined symbol: ptp_clock_register
>>> referenced by hv_util.c
>>> hv/hv_util.o:(hv_timesync_init) in archive drivers/built-in.a
--
>> ld.lld: error: undefined symbol: ptp_clock_unregister
>>> referenced by hv_util.c
>>> hv/hv_util.o:(hv_timesync_deinit) in archive drivers/built-in.a

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx