On 2010-09-03, at 05:03, Florian Weimer wrote:

> * Miao Xie:
> 
>> EXPORT_SYMBOL(memcpy);
> 
> I think you need to change that to EXPORT_SYMBOL_GPL, because the code
> is now licensed under the GPL, and not the GPL plus kernel exceptions
> (whatever they are, but they undoubtly exist), unlike the original
> implementation.

Ouch.  That would basically make it impossible to implement a non-GPL module.  
Also, this should only apply to the "lib" version of the memcpy() routine, not 
the arch-specific ones that are written in assembly (maybe that already is 
true, I'm not sure).

Lustre is GPL, so it isn't fatal for us, but it definitely seems draconian, and 
almost a reason not to include this patch into the kernel.  Also, given that 
the original code is LGPL (which allows linking to non-GPL code) this seems 
counter to the intent of the original authors.

I suspect there isn't anything so brilliant in the glibc memcpy() that it 
couldn't be re-implemented without copying the code.  "implement memcpy with 
aligned machine-word-sized chunks" would be enough for anyone to reimplement it 
without ever having come close to the glibc code.

Cheers, Andreas





--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to