| Submitter | Anton Altaparmakov |
|---|---|
| Date | 2010-03-25 08:03:12 |
| Message ID | <Pine.LNX.4.64.1003252017360.17596@hermes-2.csi.cam.ac.uk> |
| Download | mbox | patch |
| Permalink | /patch/1084/ |
| State | Accepted |
| Delegated to: | Ralf Baechle |
| Headers | show |
Comments
On Thu, Mar 25, 2010 at 08:48:12PM +0000, Anton Altaparmakov wrote: > The commit 351336929ccf222ae38ff0cb7a8dd5fd5c6236a0 which can be seen > here: Which was in 2.6.26 ... > I therefore propose that the EXPORT_SYMBOL_GPL(_page_cachable_default) is > changed to EXPORT_SYMBOL(_page_cachable_default) to re-instate the > ability for non-GPL modules to call __vmalloc(), vmap(), vm_map_ram(), > and such like. > > Here is a patch that does this. If you approve, please apply it. I approve - but applying would be easier if this patch had not been linewrapped ... Applied to master and -stable. Thanks! Ralf
Hi Ralf, On 26 Mar 2010, at 14:52, Ralf Baechle wrote: > On Thu, Mar 25, 2010 at 08:48:12PM +0000, Anton Altaparmakov wrote: >> The commit 351336929ccf222ae38ff0cb7a8dd5fd5c6236a0 which can be seen >> here: > > Which was in 2.6.26 ... Yes. (-: Embedded companies tend to use very old kernels. Usually 2.6.10-2.6.18 range. This is the fist time someone using MIPS architecture came up with a 2.6.27 kernel and linking failed hence my patch. I only personally test compilation across all kernels (2.6.10-latest) on x86 so I miss things like that happening... >> I therefore propose that the EXPORT_SYMBOL_GPL(_page_cachable_default) is >> changed to EXPORT_SYMBOL(_page_cachable_default) to re-instate the >> ability for non-GPL modules to call __vmalloc(), vmap(), vm_map_ram(), >> and such like. >> >> Here is a patch that does this. If you approve, please apply it. > > I approve - but applying would be easier if this patch had not been > linewrapped ... Sorry about that!!! I sent the patch using Pine and thought I was safe on that front but I probably did something wrong. )))-: > Applied to master and -stable. Thanks! Great, thanks! Best regards, Anton > Ralf
Patch
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index be8627b..12af739 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c @@ -133,7 +133,7 @@ void __update_cache(struct vm_area_struct *vma, unsigned lon } unsigned long _page_cachable_default; -EXPORT_SYMBOL_GPL(_page_cachable_default); +EXPORT_SYMBOL(_page_cachable_default); static inline void setup_protection_map(void)