tree:
https://github.com/thesofproject/linux pr/1841
head: 8ea9f0eee2d9b49de07a5490e7f6355b1446ce28
commit: 6c1fef0b404e8fb0b5f4ad8da84a03fb542a5f34 [26/28] ASoC: SOF: Introduce descriptors
for SOF client
config: x86_64-sof-customedconfig-sof-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-5) 7.5.0
reproduce:
git checkout 6c1fef0b404e8fb0b5f4ad8da84a03fb542a5f34
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from sound/soc/sof/sof-client.h:14:0,
from sound/soc/sof/sof-client.c:9:
sound/soc/sof/sof-client.h: In function 'sof_client_drv_register':
> sound/soc/sof/sof-client.h:47:30: warning: passing argument 1 of
'__virtbus_drv_register' discards 'const' qualifier from pointer target
type [-Wdiscarded-qualifiers]
return
virtbus_drv_register(&drv->virtbus_drv);
^
include/linux/virtual_bus.h:55:25: note: in definition of macro
'virtbus_drv_register'
__virtbus_drv_register(vdrv, THIS_MODULE)
^~~~
include/linux/virtual_bus.h:51:5: note: expected 'struct virtbus_driver *' but
argument is of type 'const struct virtbus_driver *'
int __virtbus_drv_register(struct virtbus_driver *vdrv, struct module *owner);
^~~~~~~~~~~~~~~~~~~~~~
In file included from sound/soc/sof/sof-client.c:9:0:
sound/soc/sof/sof-client.h: In function 'sof_client_drv_unregister':
> sound/soc/sof/sof-client.h:53:25: warning: passing argument 1 of
'virtbus_drv_unregister' discards 'const' qualifier from pointer target
type [-Wdiscarded-qualifiers]
virtbus_drv_unregister(&drv->virtbus_drv);
^
In file included from sound/soc/sof/sof-client.h:14:0,
from sound/soc/sof/sof-client.c:9:
include/linux/virtual_bus.h:52:6: note: expected 'struct virtbus_driver *' but
argument is of type 'const struct virtbus_driver *'
void virtbus_drv_unregister(struct virtbus_driver *vdrv);
^~~~~~~~~~~~~~~~~~~~~~
vim +47 sound/soc/sof/sof-client.h
40
41 #define virtbus_dev_to_sof_client_dev(virtbus_dev) \
42 container_of(virtbus_dev, struct sof_client_dev, vdev)
43
44 static inline int sof_client_drv_register(const struct sof_client_drv *drv)
45 {
46 /* register virtbus driver */
47 return virtbus_drv_register(&drv->virtbus_drv);
48 }
49
50 static inline void sof_client_drv_unregister(const struct sof_client_drv *drv)
51 {
52 /* unregister virtbus driver */
53 virtbus_drv_unregister(&drv->virtbus_drv);
54 }
55
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org