Re: hostaudio_kern.c:undefined reference to `unregister_sound_mixer'

From: Randy Dunlap
Date: Sat Aug 12 2023 - 01:05:44 EST


Hi robot,

On 8/11/23 20:05, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 190bf7b14b0cf3df19c059061be032bd8994a597
> commit: 0bbadafdc49d11a1836e5946f517d18cceaea6c8 um: allow disabling NO_IOMEM
> date: 2 years, 2 months ago
> config: um-randconfig-r025-20230812 (https://download.01.org/0day-ci/archive/20230812/202308121029.peTEFwvG-lkp@xxxxxxxxx/config)
> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
> reproduce: (https://download.01.org/0day-ci/archive/20230812/202308121029.peTEFwvG-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 <lkp@xxxxxxxxx>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202308121029.peTEFwvG-lkp@xxxxxxxxx/
>
> All errors (new ones prefixed by >>):
>
> ld: warning: net/bpfilter/bpfilter_umh_blob.o: missing .note.GNU-stack section implies executable stack
> ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
> /usr/bin/ld: warning: net/bpfilter/bpfilter_umh_blob.o: missing .note.GNU-stack section implies executable stack
> /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
> /usr/bin/ld: warning: .tmp_vmlinux.kallsyms1 has a LOAD segment with RWX permissions
> /usr/bin/ld: arch/um/drivers/hostaudio_kern.o: in function `hostaudio_cleanup_module':
>>> hostaudio_kern.c:(.exit.text+0x1c): undefined reference to `unregister_sound_mixer'
>>> /usr/bin/ld: hostaudio_kern.c:(.exit.text+0x2b): undefined reference to `unregister_sound_dsp'
> /usr/bin/ld: arch/um/drivers/hostaudio_kern.o: in function `hostaudio_init_module':
>>> hostaudio_kern.c:(.init.text+0xb1): undefined reference to `register_sound_dsp'
>>> /usr/bin/ld: hostaudio_kern.c:(.init.text+0x11f): undefined reference to `register_sound_mixer'
>>> /usr/bin/ld: hostaudio_kern.c:(.init.text+0x186): undefined reference to `unregister_sound_dsp'
> collect2: error: ld returned 1 exit status
>
> Kconfig warnings: (for reference only)
> WARNING: unmet direct dependencies detected for LOCKDEP
> Depends on [n]: DEBUG_KERNEL [=y] && LOCK_DEBUGGING_SUPPORT [=y] && (FRAME_POINTER [=n] || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86)
> Selected by [y]:
> - DEBUG_LOCK_ALLOC [=y] && DEBUG_KERNEL [=y] && LOCK_DEBUGGING_SUPPORT [=y]
>

Fix for this was sent on 2023 Aug 01:
https://lore.kernel.org/all/20230802051500.13271-1-rdunlap@xxxxxxxxxxxxx/


--
~Randy