]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: zsmalloc: Finish conversion to a separate module
authorBen Hutchings <ben@decadent.org.uk>
Wed, 20 Jun 2012 01:31:11 +0000 (02:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:31:37 +0000 (08:31 -0700)
commitc7815406caf7efdd805e893caef4a63e61b7645e
treeae308b8e7ac0fd404426c9484545d80960b160de
parent02f5c5d768faf0417b6801a1bfebc866a6db7878
staging: zsmalloc: Finish conversion to a separate module

commit 069f101fa463351f528773d73b74e9b606b3f66a upstream.

ZSMALLOC is tristate, but the code has no MODULE_LICENSE and since it
depends on GPL-only symbols it cannot be loaded as a module.  This in
turn breaks zram which now depends on it.  I assume it's meant to be
Dual BSD/GPL like the other z-stuff.

There is also no module_exit, which will make it impossible to unload.
Add the appropriate module_init and module_exit declarations suggested
by comments.

Reported-by: Christian Ohm <chr.ohm@gmx.net>
References: http://bugs.debian.org/677273
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/zsmalloc-main.c