From: Alexander Aksenov Date: Thu, 7 Feb 2013 13:23:29 +0000 (+0400) Subject: Fix part of sparce warnings in module.c X-Git-Tag: accepted/tizen/mobile/20160407.001200~816 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43f96ab667d2d8337ec6150c4fd7d11c0f214ade;p=platform%2Fkernel%2Fswap-modules.git Fix part of sparce warnings in module.c --- diff --git a/driver/module.c b/driver/module.c index a01c3e4..ee44c3d 100644 --- a/driver/module.c +++ b/driver/module.c @@ -17,7 +17,7 @@ #include "module.h" -char gl_szDefaultDeviceName[128] = DEFAULT_DEVICE_NAME; +static char gl_szDefaultDeviceName[128] = DEFAULT_DEVICE_NAME; char* device_name = NULL; module_param (device_name, charp, 0); MODULE_PARM_DESC (device_name, "device name for '/proc/devices'"); @@ -27,7 +27,7 @@ module_param (device_major, uint, 0); MODULE_PARM_DESC (device_major, "default device major number"); #if (LINUX_VERSION_CODE != KERNEL_VERSION(2, 6, 16)) -void (*__real_put_task_struct) (struct task_struct * tsk); +static void (*__real_put_task_struct) (struct task_struct * tsk); #if (LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11)) #define SWAPDRV_PUT_TASK_STRUCT "put_task_struct" void