drivers/greybus/gb-beagleplay.c:173: undefined reference to `crc_ccitt'

From: kernel test robot
Date: Fri Nov 10 2023 - 13:33:22 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a12deb44f9734dc25970c266249b272e44d3d1b5
commit: ec558bbfea671ac020a6dc6be8bf8f0ee556cce0 greybus: Add BeaglePlay Linux Driver
date: 2 weeks ago
config: x86_64-randconfig-011-20231110 (https://download.01.org/0day-ci/archive/20231110/202311100836.JBsBIf8t-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231110/202311100836.JBsBIf8t-lkp@xxxxxxxxx/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 <yujie.liu@xxxxxxxxx>
| Closes: https://lore.kernel.org/r/202311100836.JBsBIf8t-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

ld: vmlinux.o: in function `hdlc_append_tx_u8':
>> drivers/greybus/gb-beagleplay.c:173: undefined reference to `crc_ccitt'
>> ld: drivers/greybus/gb-beagleplay.c:173: undefined reference to `crc_ccitt'
>> ld: drivers/greybus/gb-beagleplay.c:173: undefined reference to `crc_ccitt'
ld: vmlinux.o: in function `hdlc_rx_frame':
drivers/greybus/gb-beagleplay.c:234: undefined reference to `crc_ccitt'


vim +173 drivers/greybus/gb-beagleplay.c

ec558bbfea671a Ayush Singh 2023-10-17 170
ec558bbfea671a Ayush Singh 2023-10-17 171 static void hdlc_append_tx_u8(struct gb_beagleplay *bg, u8 value)
ec558bbfea671a Ayush Singh 2023-10-17 172 {
ec558bbfea671a Ayush Singh 2023-10-17 @173 bg->tx_crc = crc_ccitt(bg->tx_crc, &value, 1);
ec558bbfea671a Ayush Singh 2023-10-17 174 hdlc_append_escaped(bg, value);
ec558bbfea671a Ayush Singh 2023-10-17 175 }
ec558bbfea671a Ayush Singh 2023-10-17 176

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki