From: kernel test robot <lkp@intel.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Jarkko Sakkinen <jarkko@kernel.org>
Subject: arch/um/drivers/hostaudio_kern.c:348: undefined reference to `unregister_sound_mixer'
Date: Sun, 27 Aug 2023 04:52:04 +0800 [thread overview]
Message-ID: <202308270448.0vfBd2Rx-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 28f20a19294da7df158dfca259d0e2b5866baaf9
commit: 0f5d4a0b995faa6537c4de79973817a4f8da206a crypto: certs: fix FIPS selftest dependency
date: 7 months ago
config: um-randconfig-r021-20230826 (https://download.01.org/0day-ci/archive/20230827/202308270448.0vfBd2Rx-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230827/202308270448.0vfBd2Rx-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308270448.0vfBd2Rx-lkp@intel.com/
All errors (new ones prefixed by >>):
/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':
>> arch/um/drivers/hostaudio_kern.c:348: undefined reference to `unregister_sound_mixer'
>> /usr/bin/ld: arch/um/drivers/hostaudio_kern.c:349: undefined reference to `unregister_sound_dsp'
/usr/bin/ld: arch/um/drivers/hostaudio_kern.o: in function `hostaudio_init_module':
>> arch/um/drivers/hostaudio_kern.c:329: undefined reference to `register_sound_dsp'
>> /usr/bin/ld: arch/um/drivers/hostaudio_kern.c:335: undefined reference to `register_sound_mixer'
/usr/bin/ld: arch/um/drivers/hostaudio_kern.c:339: undefined reference to `unregister_sound_dsp'
collect2: error: ld returned 1 exit status
vim +348 arch/um/drivers/hostaudio_kern.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 321
^1da177e4c3f41 Linus Torvalds 2005-04-16 322 static int __init hostaudio_init_module(void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 323 {
b51d23e4e9fea6 Dan Streetman 2015-06-17 324 kernel_param_lock(THIS_MODULE);
^1da177e4c3f41 Linus Torvalds 2005-04-16 325 printk(KERN_INFO "UML Audio Relay (host dsp = %s, host mixer = %s)\n",
^1da177e4c3f41 Linus Torvalds 2005-04-16 326 dsp, mixer);
b51d23e4e9fea6 Dan Streetman 2015-06-17 327 kernel_param_unlock(THIS_MODULE);
^1da177e4c3f41 Linus Torvalds 2005-04-16 328
^1da177e4c3f41 Linus Torvalds 2005-04-16 @329 module_data.dev_audio = register_sound_dsp(&hostaudio_fops, -1);
^1da177e4c3f41 Linus Torvalds 2005-04-16 330 if (module_data.dev_audio < 0) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 331 printk(KERN_ERR "hostaudio: couldn't register DSP device!\n");
^1da177e4c3f41 Linus Torvalds 2005-04-16 332 return -ENODEV;
^1da177e4c3f41 Linus Torvalds 2005-04-16 333 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 334
^1da177e4c3f41 Linus Torvalds 2005-04-16 @335 module_data.dev_mixer = register_sound_mixer(&hostmixer_fops, -1);
^1da177e4c3f41 Linus Torvalds 2005-04-16 336 if (module_data.dev_mixer < 0) {
^1da177e4c3f41 Linus Torvalds 2005-04-16 337 printk(KERN_ERR "hostmixer: couldn't register mixer "
^1da177e4c3f41 Linus Torvalds 2005-04-16 338 "device!\n");
^1da177e4c3f41 Linus Torvalds 2005-04-16 339 unregister_sound_dsp(module_data.dev_audio);
^1da177e4c3f41 Linus Torvalds 2005-04-16 340 return -ENODEV;
^1da177e4c3f41 Linus Torvalds 2005-04-16 341 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 342
^1da177e4c3f41 Linus Torvalds 2005-04-16 343 return 0;
^1da177e4c3f41 Linus Torvalds 2005-04-16 344 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 345
^1da177e4c3f41 Linus Torvalds 2005-04-16 346 static void __exit hostaudio_cleanup_module (void)
^1da177e4c3f41 Linus Torvalds 2005-04-16 347 {
^1da177e4c3f41 Linus Torvalds 2005-04-16 @348 unregister_sound_mixer(module_data.dev_mixer);
^1da177e4c3f41 Linus Torvalds 2005-04-16 @349 unregister_sound_dsp(module_data.dev_audio);
^1da177e4c3f41 Linus Torvalds 2005-04-16 350 }
^1da177e4c3f41 Linus Torvalds 2005-04-16 351
:::::: The code at line 348 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-08-26 20:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202308270448.0vfBd2Rx-lkp@intel.com \
--to=lkp@intel.com \
--cc=arnd@arndb.de \
--cc=jarkko@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox