Thread (1 message) 1 message, 1 author, 2008-01-03

RE: [kvm-devel] [PATCH 1/3] Make virtio modules GPL

From: Dong, Eddie <hidden>
Date: 2008-01-03 00:43:21

Curuious: should we consider it to be dual licensed from beginning?
thx,eddie
quoted hunk
-----Original Message-----
From: kvm-devel-bounces@lists.sourceforge.net 
[mailto:kvm-devel-bounces@lists.sourceforge.net] On Behalf Of 
Anthony Liguori
Sent: 2008年1月3日 5:02
To: virtualization@lists.linux-foundation.org
Cc: kvm-devel@lists.sourceforge.net
Subject: [kvm-devel] [PATCH 1/3] Make virtio modules GPL

The virtio modules do not advertise themselves as GPL but rely 
on exported
GPL symbols.  This makes them unloadable as modules.

This patch adds the appropriate MODULE_LICENSE().

Signed-off: Anthony Liguori [off-list ref]
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 54a8017..8f6040d 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -8,6 +8,8 @@
#define VIRTIO_MAX_SG	(3+MAX_PHYS_SEGMENTS)

+MODULE_LICENSE("GPL");
+
static unsigned char virtblk_index = 'a';
struct virtio_blk
{
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index ebe4b03..9789e68 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -28,6 +28,8 @@
static int napi_weight = 128;
module_param(napi_weight, int, 0444);

+MODULE_LICENSE("GPL");
+
/* FIXME: MTU in config. */
#define MAX_PACKET_LEN (ETH_HLEN+ETH_DATA_LEN)
diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c
index 646f716..6e27c08 100644
--- a/drivers/virtio/virtio.c
+++ b/drivers/virtio/virtio.c
@@ -2,6 +2,8 @@
#include <linux/spinlock.h>
#include <linux/virtio_config.h>

+MODULE_LICENSE("GPL");
+
static ssize_t device_show(struct device *_d,
			   struct device_attribute *attr, char *buf)
{
diff --git a/drivers/virtio/virtio_ring.c 
b/drivers/virtio/virtio_ring.c
index 951e4c7..15ee2fa 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -20,6 +20,8 @@
#include <linux/virtio_ring.h>
#include <linux/device.h>

+MODULE_LICENSE("GPL");
+
#ifdef DEBUG
/* For development, we want to crash whenever the ring is screwed. */
#define BAD_RING(vq, fmt...)			\

---------------------------------------------------------------
----------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help