sound/soc/codecs/rt766-sdca.c:198:undefined reference to `hid_destroy_device'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   66498c75b4f8017f62d720d9b59675bdf3abce91
commit: c03f0b9a7d9966b1846f561e4f49ed481c524a0a ASoC: SDCA: Move HID registration to IRQ time
date:   3 weeks ago
config: x86_64-buildonly-randconfig-004-20260825 (https://download.01.org/0day-ci/archive/20260826/[email protected]/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/20260826/[email protected]/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: c03f0b9a7d99 ("ASoC: SDCA: Move HID registration to IRQ time")
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   ld: vmlinux.o: in function `rt766_sdca_destroy_hid_device':
>> sound/soc/codecs/rt766-sdca.c:198:(.text+0x1b37dcf): undefined reference to `hid_destroy_device'
   ld: vmlinux.o: in function `rt766_sdca_btn_detect':
   sound/soc/codecs/rt766-sdca.c:89:(.text+0x1b39eba): undefined reference to `hid_input_report'
   ld: vmlinux.o: in function `sdwhid_parse':
   sound/soc/sdca/sdca_hid.c:38:(.text+0x1ccf68d): undefined reference to `hid_parse_report'
   ld: vmlinux.o: in function `sdca_add_hid_device':
   sound/soc/sdca/sdca_hid.c:97:(.text+0x1ccf6ff): undefined reference to `hid_allocate_device'
   ld: sound/soc/sdca/sdca_hid.c:113:(.text+0x1ccf813): undefined reference to `hid_add_device'
   ld: sound/soc/sdca/sdca_hid.c:116:(.text+0x1ccf844): undefined reference to `hid_destroy_device'
   ld: vmlinux.o: in function `sdca_hid_process_report':
   sound/soc/sdca/sdca_hid.c:159:(.text+0x1ccfa52): 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 +198 sound/soc/codecs/rt766-sdca.c

   193	
   194	static void rt766_sdca_destroy_hid_device(struct sdca_interrupt *interrupt)
   195	{
   196		struct rt766_sdca_priv *rt766 = interrupt->priv;
   197	
 > 198		hid_destroy_device(rt766->hid);
   199	}
   200	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.