linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 9711/11791] sound/virtio/virtio_jack.c:138:9: sparse: sparse: no generic selection for 'restricted __le32 virtio_cread_v'
@ 2021-02-22  0:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-22  0:30 UTC (permalink / raw)
  To: Anton Yakovlev
  Cc: kbuild-all, Linux Memory Management List, Michael S. Tsirkin

[-- Attachment #1: Type: text/plain, Size: 5554 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ff90dfd2579b2c7bc1f0baa0cb99c918c6c1ec64
commit: 4cf27dfcc72da53eb1fb6ea7fb405b33b28a7136 [9711/11791] ALSA: virtio: introduce jack support
config: microblaze-randconfig-s031-20210219 (attached as .config)
compiler: microblaze-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-229-g60c1f270-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=4cf27dfcc72da53eb1fb6ea7fb405b33b28a7136
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 4cf27dfcc72da53eb1fb6ea7fb405b33b28a7136
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=microblaze 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <rong.a.chen@intel.com>


"sparse warnings: (new ones prefixed by >>)"
>> sound/virtio/virtio_jack.c:138:9: sparse: sparse: no generic selection for 'restricted __le32 virtio_cread_v'
>> sound/virtio/virtio_jack.c:138:9: sparse: sparse: incompatible types in comparison expression (different base types):
>> sound/virtio/virtio_jack.c:138:9: sparse:    bad type *
>> sound/virtio/virtio_jack.c:138:9: sparse:    unsigned int *
>> sound/virtio/virtio_jack.c:138:9: sparse: sparse: no generic selection for 'restricted __le32 [addressable] virtio_cread_v'

vim +138 sound/virtio/virtio_jack.c

4cf27dfcc72da5 Anton Yakovlev 2021-02-09  121  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  122  /**
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  123   * virtsnd_jack_parse_cfg() - Parse the jack configuration.
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  124   * @snd: VirtIO sound device.
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  125   *
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  126   * This function is called during initial device initialization.
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  127   *
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  128   * Context: Any context that permits to sleep.
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  129   * Return: 0 on success, -errno on failure.
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  130   */
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  131  int virtsnd_jack_parse_cfg(struct virtio_snd *snd)
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  132  {
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  133  	struct virtio_device *vdev = snd->vdev;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  134  	struct virtio_snd_jack_info *info;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  135  	unsigned int i;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  136  	int rc;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  137  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09 @138  	virtio_cread(snd->vdev, struct virtio_snd_config, jacks, &snd->njacks);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  139  	if (!snd->njacks)
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  140  		return 0;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  141  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  142  	snd->jacks = devm_kcalloc(&vdev->dev, snd->njacks, sizeof(*snd->jacks),
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  143  				  GFP_KERNEL);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  144  	if (!snd->jacks)
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  145  		return -ENOMEM;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  146  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  147  	info = kcalloc(snd->njacks, sizeof(*info), GFP_KERNEL);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  148  	if (!info)
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  149  		return -ENOMEM;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  150  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  151  	rc = virtsnd_ctl_query_info(snd, VIRTIO_SND_R_JACK_INFO, 0, snd->njacks,
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  152  				    sizeof(*info), info);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  153  	if (rc)
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  154  		goto on_exit;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  155  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  156  	for (i = 0; i < snd->njacks; ++i) {
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  157  		struct virtio_jack *vjack = &snd->jacks[i];
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  158  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  159  		vjack->nid = le32_to_cpu(info[i].hdr.hda_fn_nid);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  160  		vjack->features = le32_to_cpu(info[i].features);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  161  		vjack->defconf = le32_to_cpu(info[i].hda_reg_defconf);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  162  		vjack->caps = le32_to_cpu(info[i].hda_reg_caps);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  163  		vjack->connected = info[i].connected;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  164  	}
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  165  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  166  on_exit:
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  167  	kfree(info);
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  168  
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  169  	return rc;
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  170  }
4cf27dfcc72da5 Anton Yakovlev 2021-02-09  171  

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30463 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
kbuild mailing list -- kbuild@lists.01.org
To unsubscribe send an email to kbuild-leave@lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-22  0:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22  0:30 [linux-next:master 9711/11791] sound/virtio/virtio_jack.c:138:9: sparse: sparse: no generic selection for 'restricted __le32 virtio_cread_v' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).