[vhost:vhost 6/19] drivers/net/virtio_net.c:2089:19: error: assignment of read-only location '*(ctx + (sizetype)rxq2vq(i))'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git vhost
head:   674c124665ca2ff1bcf81b1b92a207f71a326742
commit: e43eed6b8068f1c570551fe33bed12ef840c956b [6/19] virtio_net: allow specifying context for rx
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout e43eed6b8068f1c570551fe33bed12ef840c956b
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the vhost/vhost HEAD 674c124665ca2ff1bcf81b1b92a207f71a326742 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/net/virtio_net.c: In function 'virtnet_find_vqs':
>> drivers/net/virtio_net.c:2089:19: error: assignment of read-only location '*(ctx + (sizetype)rxq2vq(i))'
       ctx[rxq2vq(i)] = true;
                      ^

vim +2089 drivers/net/virtio_net.c

  2083			callbacks[txq2vq(i)] = skb_xmit_done;
  2084			sprintf(vi->rq[i].name, "input.%d", i);
  2085			sprintf(vi->sq[i].name, "output.%d", i);
  2086			names[rxq2vq(i)] = vi->rq[i].name;
  2087			names[txq2vq(i)] = vi->sq[i].name;
  2088			if (ctx)
> 2089				ctx[rxq2vq(i)] = true;
  2090		}
  2091	
  2092		ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks,

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux