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>
Wed, 20 Jun 2012 23:11:34 +0000 (16:11 -0700)
commit069f101fa463351f528773d73b74e9b606b3f66a
treea1b2b0d6d4d36eaad9053f1ffa0be1ae8f2ac3df
parent2f0f8e6a219022e4926afeb9d80a52f156c51918
staging: zsmalloc: Finish conversion to a separate module

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
Cc: stable@vger.kernel.org # v3.4
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