diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-07-12 15:39:13 -0700 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-07-12 16:05:44 -0700 |
commit | a29c78e9bc6d0e75935dae13d9bf0687d8880849 (patch) | |
tree | f400ac943bbc8239075efed67be6924fdd40f35a | |
parent | bfd4ca310a556b6913091953cd95033743f0ce6b (diff) |
Upstream commit 1c44a3a37bc973641065d4c15741ac54ee986a6b
In terms of project naming the backports project has evolved
as follows:
compat-wireless --> compat-drivers --> backports
All along the design and intent behind the initial project
has been to provide a framework for delivery of *upstream*
drivers using a backported infrastructure. I've made it
clear that in no way shape or form did I ever want any
proprietary driver to make use of the framework. As the
project has grown I'm not alone with this sentiment so
lets document that and also fix a few symbols that have
slipped along the way.
[mcgrof: backport to linux-3.10.y branch]
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
-rw-r--r-- | README | 13 | ||||
-rw-r--r-- | backport/compat/compat-2.6.25.c | 8 | ||||
-rw-r--r-- | backport/compat/compat-2.6.26.c | 2 | ||||
-rw-r--r-- | backport/compat/compat-3.6.c | 2 |
4 files changed, 19 insertions, 6 deletions
@@ -29,3 +29,16 @@ This work is a subset of the Linux kernel as such we keep the kernel's Copyright practice. Some files have their own copyright and in those cases the license is mentioned in the file. All additional work made to building this package is licensed under the GPLv2. + +# Backporting preference for EXPORT_SYMBOL_GPL() and proprietary drivers + +This framework was designed by intent since its inception *only* for upstream +Linux kernel drivers to avoid excuses about the difficulty to support upstream +Linux kernel development while also supporting users on older kernels. To +ensure the intent is respected currently all symbols that we do work on to +backport are exported via EXPORT_SYMBOL_GPL() as we do work to backport them +for the supported kernels. By using EXPORT_SYMBOL_GPL() we make it *clear* that +if you use the backported symbols your software *is* considered derivative +works of the Linux kernel. + +Comprendes, Mendes? diff --git a/backport/compat/compat-2.6.25.c b/backport/compat/compat-2.6.25.c index 20cc3dbd..dfd489b6 100644 --- a/backport/compat/compat-2.6.25.c +++ b/backport/compat/compat-2.6.25.c @@ -79,7 +79,7 @@ void __sg_free_table(struct sg_table *table, unsigned int max_ents, table->sgl = NULL; } -EXPORT_SYMBOL(__sg_free_table); +EXPORT_SYMBOL_GPL(__sg_free_table); /** * sg_free_table - Free a previously allocated sg table @@ -90,7 +90,7 @@ void sg_free_table(struct sg_table *table) { __sg_free_table(table, SG_MAX_SINGLE_ALLOC, sg_kfree); } -EXPORT_SYMBOL(sg_free_table); +EXPORT_SYMBOL_GPL(sg_free_table); /** * __sg_alloc_table - Allocate and initialize an sg table with given allocator @@ -175,7 +175,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents, return 0; } -EXPORT_SYMBOL(__sg_alloc_table); +EXPORT_SYMBOL_GPL(__sg_alloc_table); /** * sg_alloc_table - Allocate and initialize an sg table @@ -199,7 +199,7 @@ int sg_alloc_table(struct sg_table *table, unsigned int nents, gfp_t gfp_mask) return ret; } -EXPORT_SYMBOL(sg_alloc_table); +EXPORT_SYMBOL_GPL(sg_alloc_table); /* diff --git a/backport/compat/compat-2.6.26.c b/backport/compat/compat-2.6.26.c index 9063a6aa..823e9a59 100644 --- a/backport/compat/compat-2.6.26.c +++ b/backport/compat/compat-2.6.26.c @@ -18,7 +18,7 @@ #include <net/compat.h> const char hex_asc[] = "0123456789abcdef"; -EXPORT_SYMBOL(hex_asc); +EXPORT_SYMBOL_GPL(hex_asc); /* 2.6.24 does not have the struct kobject with a name */ #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)) diff --git a/backport/compat/compat-3.6.c b/backport/compat/compat-3.6.c index 05954d45..53991eea 100644 --- a/backport/compat/compat-3.6.c +++ b/backport/compat/compat-3.6.c @@ -45,7 +45,7 @@ int __i2c_transfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num) return ret; } -EXPORT_SYMBOL(__i2c_transfer); +EXPORT_SYMBOL_GPL(__i2c_transfer); #endif /** |