sound/virtio/virtio_ctl_msg.c:70: warning: expecting prototype for virtsnd_ctl_msg_request(). Prototype was for virtsnd_ctl_msg_response() instead

From: kernel test robot
Date: Fri Jun 18 2021 - 01:36:06 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fd0aa1a4567d0f09e1bfe367a950b004f99ac290
commit: 9d45e514da88ff74fc24ffb34e7d6eb92576440b ALSA: virtio: handling control messages
date: 3 months ago
config: nios2-randconfig-r005-20210618 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9d45e514da88ff74fc24ffb34e7d6eb92576440b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 9d45e514da88ff74fc24ffb34e7d6eb92576440b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

>> sound/virtio/virtio_ctl_msg.c:70: warning: expecting prototype for virtsnd_ctl_msg_request(). Prototype was for virtsnd_ctl_msg_response() instead
--
nios2-linux-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common':
>> ks8851_common.c:(.text+0x1734): undefined reference to `__this_module'
>> nios2-linux-ld: ks8851_common.c:(.text+0x1738): undefined reference to `__this_module'


vim +70 sound/virtio/virtio_ctl_msg.c

62
63 /**
64 * virtsnd_ctl_msg_request() - Get a pointer to the response header.
65 * @msg: Control message.
66 *
67 * Context: Any context.
68 */
69 void *virtsnd_ctl_msg_response(struct virtio_snd_msg *msg)
> 70 {
71 return sg_virt(&msg->sg_response);
72 }
73

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip