summaryrefslogtreecommitdiff
path: root/tools/hv/Makefile
blob: 0d1e61b818440e91f62f0ce4248a5445c9cdf201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Makefile for Hyper-V tools

CC = $(CROSS_COMPILE)gcc
WARNINGS = -Wall -Wextra
CFLAGS = $(WARNINGS) -g $(shell getconf LFS_CFLAGS)

CFLAGS += -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include

all: hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
%: %.c
	$(CC) $(CFLAGS) -o $@ $^

clean:
	$(RM) hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon
ue='25'>25space:mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-01-14 00:18:56 +0530
committerMichael S. Tsirkin <mst@redhat.com>2017-01-19 23:46:34 +0200
commit0db1dba5dfaf70fb3baf07973996db2078528cde (patch)
treea3acf9bb930988949f15adc41b5bcbaeb8028fc5 /drivers/usb/serial/navman.c
parent99240622bdde46f159a89e72199779d3c5a08b98 (diff)
virtio/s390: virtio: constify virtio_config_ops structures
Declare virtio_config_ops structure as const as it is only stored in the config field of a virtio_device structure. This field is of type const, so virtio_config_ops structures having this property can be declared const. Done using Coccinelle: @r1 disable optional_qualifier@ identifier i; position p; @@ static struct virtio_config_ops i@p={...}; @ok1@ identifier r1.i; position p; struct virtio_ccw_device x; @@ x.vdev.config=&i@p @bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p @depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct virtio_config_ops i; File size before and after applying the patch remains the same. text data bss dec hex filename 9235 296 32928 42459 a5db drivers/s390/virtio/virtio_ccw.o Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Message-Id: <1484333336-13443-1-git-send-email-bhumirks@gmail.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'drivers/usb/serial/navman.c')