diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2013-07-07 22:01:10 -0400 |
|---|---|---|
| committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-07-08 21:17:53 -0400 |
| commit | 80390df8b263f1f6b7acb1df35a758736e3ec961 (patch) | |
| tree | cb845dcd5f680bc3e9cec15476817cfe8cbdc45f /tools | |
| parent | c5610a5d7188b90fe0f927d2513bf684fb0bc427 (diff) | |
tools/virtio: move module license stub to module.h
This fixes build for the vringh test:
[linux]$ make -C tools/virtio/
make: Entering directory `/home/mst/scm/linux/tools/virtio'
cc -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign
-fno-strict-overflow -fno-strict-aliasing -fno-common -MMD
-U_FORTIFY_SOURCE -c -o vringh.o ../../drivers/vhost/vringh.c
../../drivers/vhost/vringh.c:1010:16: error: expected declaration
specifiers or ‘...’ before string constant
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/virtio/linux/module.h | 5 | ||||
| -rw-r--r-- | tools/virtio/linux/virtio.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/virtio/linux/module.h b/tools/virtio/linux/module.h index 3039a7e972b6..28ce95a05997 100644 --- a/tools/virtio/linux/module.h +++ b/tools/virtio/linux/module.h | |||
| @@ -1 +1,6 @@ | |||
| 1 | #include <linux/export.h> | 1 | #include <linux/export.h> |
| 2 | |||
| 3 | #define MODULE_LICENSE(__MODULE_LICENSE_value) \ | ||
| 4 | static __attribute__((unused)) const char *__MODULE_LICENSE_name = \ | ||
| 5 | __MODULE_LICENSE_value | ||
| 6 | |||
diff --git a/tools/virtio/linux/virtio.h b/tools/virtio/linux/virtio.h index cd801838156f..844783040703 100644 --- a/tools/virtio/linux/virtio.h +++ b/tools/virtio/linux/virtio.h | |||
| @@ -45,9 +45,6 @@ struct virtqueue { | |||
| 45 | void *priv; | 45 | void *priv; |
| 46 | }; | 46 | }; |
| 47 | 47 | ||
| 48 | #define MODULE_LICENSE(__MODULE_LICENSE_value) \ | ||
| 49 | const char *__MODULE_LICENSE_name = __MODULE_LICENSE_value | ||
| 50 | |||
| 51 | /* Interfaces exported by virtio_ring. */ | 48 | /* Interfaces exported by virtio_ring. */ |
| 52 | int virtqueue_add_sgs(struct virtqueue *vq, | 49 | int virtqueue_add_sgs(struct virtqueue *vq, |
| 53 | struct scatterlist *sgs[], | 50 | struct scatterlist *sgs[], |
