tree:
https://github.com/thesofproject/linux pr/1841
head: 8ea9f0eee2d9b49de07a5490e7f6355b1446ce28
commit: 8ea9f0eee2d9b49de07a5490e7f6355b1446ce28 [28/28] ASoC: SOF: register client device
for test IPC 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 8ea9f0eee2d9b49de07a5490e7f6355b1446ce28
# 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/intel/../sof-client.h:14:0,
from sound/soc/sof/intel/../sof-priv.h:21,
from sound/soc/sof/intel/../sof-audio.h:20,
from sound/soc/sof/intel/hda.c:28:
sound/soc/sof/intel/../sof-client.h: In function 'sof_client_drv_register':
> sound/soc/sof/intel/../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/intel/../sof-priv.h:21:0,
from sound/soc/sof/intel/../sof-audio.h:20,
from sound/soc/sof/intel/hda.c:28:
sound/soc/sof/intel/../sof-client.h: In function 'sof_client_drv_unregister':
> sound/soc/sof/intel/../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/intel/../sof-client.h:14:0,
from sound/soc/sof/intel/../sof-priv.h:21,
from sound/soc/sof/intel/../sof-audio.h:20,
from sound/soc/sof/intel/hda.c:28:
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);
^~~~~~~~~~~~~~~~~~~~~~
--
In file included from sound/soc/sof/xtensa/../sof-client.h:14:0,
from sound/soc/sof/xtensa/../sof-priv.h:21,
from sound/soc/sof/xtensa/core.c:14:
sound/soc/sof/xtensa/../sof-client.h: In function 'sof_client_drv_register':
> sound/soc/sof/xtensa/../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/xtensa/../sof-priv.h:21:0,
from sound/soc/sof/xtensa/core.c:14:
sound/soc/sof/xtensa/../sof-client.h: In function 'sof_client_drv_unregister':
> sound/soc/sof/xtensa/../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/xtensa/../sof-client.h:14:0,
from sound/soc/sof/xtensa/../sof-priv.h:21,
from sound/soc/sof/xtensa/core.c:14:
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/intel/../sof-client.h
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 40
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 41 #define
virtbus_dev_to_sof_client_dev(virtbus_dev) \
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 42 container_of(virtbus_dev, struct
sof_client_dev, vdev)
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 43
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 44 static inline int
sof_client_drv_register(const struct sof_client_drv *drv)
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 45 {
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 46 /* register virtbus driver */
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 @47 return
virtbus_drv_register(&drv->virtbus_drv);
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 48 }
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 49
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 50 static inline void
sof_client_drv_unregister(const struct sof_client_drv *drv)
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 51 {
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 52 /* unregister virtbus driver */
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 @53
virtbus_drv_unregister(&drv->virtbus_drv);
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 54 }
6c1fef0b404e8f Ranjani Sridharan 2020-03-23 55
:::::: The code at line 47 was first introduced by commit
:::::: 6c1fef0b404e8fb0b5f4ad8da84a03fb542a5f34 ASoC: SOF: Introduce descriptors for SOF
client
:::::: TO: Ranjani Sridharan <ranjani.sridharan(a)linux.intel.com>
:::::: CC: Ranjani Sridharan <ranjani.sridharan(a)linux.intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org