sound/soc/sdca/sdca_hid.c:133:undefined reference to `hid_destroy_device'

From: kernel test robot

Date: Thu Aug 27 2026 - 22:09:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 73e3f0710014fe6d4ed98cfc02292f6121db7558
commit: df1fd5d8ab403c264b364abe187ce94b2fa7b96f ASoC: SDCA: Add missing destroy for HID device
date: 3 weeks ago
config: x86_64-buildonly-randconfig-004-20260825 (https://download.01.org/0day-ci/archive/20260828/202608281034.4X4V9tcq-lkp@xxxxxxxxx/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260828/202608281034.4X4V9tcq-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
| Fixes: df1fd5d8ab40 ("ASoC: SDCA: Add missing destroy for HID device")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608281034.4X4V9tcq-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

ld: vmlinux.o: in function `rt766_sdca_destroy_hid_device':
sound/soc/codecs/rt766-sdca.c:198:(.text+0x1b37dbf): undefined reference to `hid_destroy_device'
ld: vmlinux.o: in function `rt766_sdca_btn_detect':
sound/soc/codecs/rt766-sdca.c:89:(.text+0x1b39eaa): undefined reference to `hid_input_report'
ld: vmlinux.o: in function `sdca_destroy_hid_device':
>> sound/soc/sdca/sdca_hid.c:133:(.text+0x1ccf77c): undefined reference to `hid_destroy_device'
ld: vmlinux.o: in function `sdwhid_parse':
sound/soc/sdca/sdca_hid.c:38:(.text+0x1ccf7fd): undefined reference to `hid_parse_report'
ld: vmlinux.o: in function `sdca_add_hid_device':
sound/soc/sdca/sdca_hid.c:96:(.text+0x1ccf864): undefined reference to `hid_allocate_device'
ld: sound/soc/sdca/sdca_hid.c:112:(.text+0x1ccf974): undefined reference to `hid_add_device'
ld: sound/soc/sdca/sdca_hid.c:115:(.text+0x1ccf9a2): undefined reference to `hid_destroy_device'
ld: vmlinux.o: in function `sdca_hid_process_report':
sound/soc/sdca/sdca_hid.c:170:(.text+0x1ccfba2): undefined reference to `hid_input_report'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_SDCA_HID
Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=y] && SND_SOC_SDCA [=y] && (HID [=n]=y [=y] || HID [=n]=SND_SOC_SDCA [=y])
Selected by [y]:
- SND_SOC_RT766_SDCA_SDW [=y] && SOUND [=y] && SND [=y] && SND_SOC [=y] && SOUNDWIRE [=y] && SND_SOC_SDCA [=y]


vim +133 sound/soc/sdca/sdca_hid.c

124
125 /**
126 * sdca_destroy_hid_device - destroy the HID device
127 * @interrupt: Pointer to the SDCA interrupt information structure.
128 */
129 void sdca_destroy_hid_device(struct sdca_interrupt *interrupt)
130 {
131 struct hid_device *hid = interrupt->priv;
132
> 133 hid_destroy_device(hid);
134 }
135 EXPORT_SYMBOL_NS(sdca_destroy_hid_device, "SND_SOC_SDCA");
136

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