Commit 0986768e authored by Isaac J. Manjarres's avatar Isaac J. Manjarres Committed by Will McVicker
Browse files

ANDROID: mm/slab: Use EXPORT_SYMBOL for android_kmalloc_64_create



Commit 8a7073c1 ("ANDROID: mm/slab: Create 64-byte slab caches if the
hardware supports it") introduced the android_kmalloc_64_create variable
and exported it to modules through the EXPORT_SYMBOL_GPL() macro.

Since android_kmalloc_64_create is referred to by kmalloc(), which is
inlined to all callers, including modules, it makes it so that all
modules that invoke kmalloc() have to be GPL licensed. This diverges
from upstream Linux's intent of letting kmalloc() be invoked by non-GPL
licensed modules, which is not correct. Thus, use the EXPORT_SYMBOL()
macro for exporting android_kmalloc_64_create variable, instead of
EXPORT_SYMBOL_GPL().

Fixes: 8a7073c1 ("ANDROID: mm/slab: Create 64-byte slab caches if the hardware supports it")
Bug: 259498503
Bug: 263349133

Change-Id: I96d20ec9cc17853a02e9343edb2829d0a5185f0e
Signed-off-by: default avatarIsaac J. Manjarres <isaacmanjarres@google.com>
(cherry picked from commit 50358d67)
parent 3a9f6a1f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment