Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2367a774 authored by Amit Pundir's avatar Amit Pundir Committed by Patrick Daly
Browse files

ANDROID: lowmemorykiller: use module_param_cb instead of __module_param_call



Use module_param_cb helper routine instead of
__module_param_call otherwise we run into following
build error:

  CC      drivers/staging/android/lowmemorykiller.o
drivers/staging/android/lowmemorykiller.c:293:28: error: macro "__module_param_call" requires 7 arguments, but only 6 given
       S_IRUGO | S_IWUSR, -1);
                            ^
drivers/staging/android/lowmemorykiller.c:290:1: warning: data definition has no type or storage class [enabled by default]
 __module_param_call(MODULE_PARAM_PREFIX, adj,
 ^
drivers/staging/android/lowmemorykiller.c:290:1: error: type defaults to ‘int’ in declaration of ‘__module_param_call’ [-Werror=implicit-int]
drivers/staging/android/lowmemorykiller.c:273:32: warning: ‘lowmem_adj_array_ops’ defined but not used [-Wunused-variable]
 static struct kernel_param_ops lowmem_adj_array_ops = {
                                ^
cc1: some warnings being treated as errors
make[3]: *** [drivers/staging/android/lowmemorykiller.o] Error 1

Change-Id: Ib2249f1f8c28d5678f127d0c8d3028555bf6f4e7
Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
Git-Commit: 092be1d02aca34d5347b90375956ddca076df605
Git-Repo: https://android.googlesource.com/kernel/common


Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 47f26a14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment