]> git.baikalelectronics.ru Git - kernel.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>
Wed, 20 Jun 2012 23:11:34 +0000 (16:11 -0700)
commitd68d7ce928bdbd13c5f493a59f2eb26c2ce9992a
treea1b2b0d6d4d36eaad9053f1ffa0be1ae8f2ac3df
parentc2e51860fd3e2d620b71333a371b141adde37109
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