summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorStefan Hajnoczi2015-12-17 09:53:43 +0100
committerMichael S. Tsirkin2016-01-12 19:47:06 +0100
commitf7ad26ff952b3ca2702d7da03aad0ab1f6c01d7c (patch)
tree37022c77c1ac3d3bcc0e6f74f9ea2588ac30701b /scripts/checkpatch.pl
parentvirtio_balloon: fix race between migration and ballooning (diff)
downloadkernel-qcow2-linux-f7ad26ff952b3ca2702d7da03aad0ab1f6c01d7c.tar.gz
kernel-qcow2-linux-f7ad26ff952b3ca2702d7da03aad0ab1f6c01d7c.tar.xz
kernel-qcow2-linux-f7ad26ff952b3ca2702d7da03aad0ab1f6c01d7c.zip
virtio: make find_vqs() checkpatch.pl-friendly
checkpatch.pl wants arrays of strings declared as follows: static const char * const names[] = { "vq-1", "vq-2", "vq-3" }; Currently the find_vqs() function takes a const char *names[] argument so passing checkpatch.pl's const char * const names[] results in a compiler error due to losing the second const. This patch adjusts the find_vqs() prototype and updates all virtio transports. This makes it possible for virtio_balloon.c, virtio_input.c, virtgpu_kms.c, and virtio_rpmsg_bus.c to use the checkpatch.pl-friendly type. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions