]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: zsmalloc: Fix link error on ARM
authorJoerg Roedel <joro@8bytes.org>
Wed, 27 Mar 2013 00:43:14 +0000 (01:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:33:02 +0000 (20:33 -0700)
commit1a65e9c931dc249883ce1a698d023d877ef05a34
tree2f2c440dd0e7939ed90d9f9a337ec7de13801adf
parentdacbe009b0838acce43fa0dc4e02fcbbfddaf300
staging: zsmalloc: Fix link error on ARM

commit d95abbbb291bf5bce078148f53603ce9c0aa1d44 upstream.

Testing the arm chromebook config against the upstream
kernel produces a linker error for the zsmalloc module from
staging. The symbol flush_tlb_kernel_range is not available
there. Fix this by removing the reimplementation of
unmap_kernel_range in the zsmalloc module and using the
function directly. The unmap_kernel_range function is not
usable by modules, so also disallow building the driver as a
module for now.

Signed-off-by: Joerg Roedel <joro@8bytes.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zsmalloc/Kconfig
drivers/staging/zsmalloc/zsmalloc-main.c