From: Harald Welte <laforge@gnumonks.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] List LGPL (v2 / v2.1) as GPL compatible in license_is_gpl_compatible()
Date: Fri, 1 Jun 2012 00:24:07 +0200 [thread overview]
Message-ID: <20120531222407.GB5256@prithivi.gnumonks.org> (raw)
It may be a highly unusual choice to license Linux kernel drivers under
LGPL, but at least as long as LGPLv2 or LGPLv2.1 is used, this is fully
GPL compatible and shouldn't taint the kernel.
Signed-off-by: Harald Welte <laforge@gnumonks.org>
---
include/linux/license.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
NOTE: I've actually seen this happen in practise, where an embedded
system ships with a LPGL licensed driver which in turn taints the
kernel. I suppose this was not really the intention...
diff --git a/include/linux/license.h b/include/linux/license.h
index decdbf4..9c0df0e 100644
--- a/include/linux/license.h
+++ b/include/linux/license.h
@@ -8,7 +8,10 @@ static inline int license_is_gpl_compatible(const char *license)
|| strcmp(license, "GPL and additional rights") == 0
|| strcmp(license, "Dual BSD/GPL") == 0
|| strcmp(license, "Dual MIT/GPL") == 0
- || strcmp(license, "Dual MPL/GPL") == 0);
+ || strcmp(license, "Dual MPL/GPL") == 0
+ || strcmp(license, "LGPL") == 0
+ || strcmp(license, "LGPL v2") == 0
+ || strcmp(license, "LGPL v2.1") == 0);
}
#endif
--
1.7.10
next reply other threads:[~2012-05-31 22:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-31 22:24 Harald Welte [this message]
2012-06-01 8:00 ` Alan Cox
2012-07-01 17:18 ` Harald Welte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120531222407.GB5256@prithivi.gnumonks.org \
--to=laforge@gnumonks.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®