2021-06-18 07:54:53

by kernel test robot

[permalink] [raw]
Subject: sound/virtio/virtio_ctl_msg.c:70: warning: expecting prototype for virtsnd_ctl_msg_request(). Prototype was for virtsnd_ctl_msg_response() instead

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 <[email protected]>

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/[email protected]


Attachments:
(No filename) (2.02 kB)
.config.gz (34.12 kB)
Download all attachments

2021-06-18 22:57:27

by Takashi Iwai

[permalink] [raw]
Subject: Re: sound/virtio/virtio_ctl_msg.c:70: warning: expecting prototype for virtsnd_ctl_msg_request(). Prototype was for virtsnd_ctl_msg_response() instead

On Fri, 18 Jun 2021 07:35:28 +0200,
kernel test robot wrote:
>
> 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 <[email protected]>
>
> 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

This has been already corrected on for-next branch for 5.14.


Takashi