Commit 381ca677 authored by Haneen Mohammed's avatar Haneen Mohammed Committed by Greg Kroah-Hartman

Staging: lustre: remove extern in .c file

This patch removes extern from .c file; for the variable is not used
anywhere else in the file.
In addition, it mark it static in the one file it is in
"ldlm_resource.c".
Signed-off-by: default avatarHaneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5fb0acb4
...@@ -141,8 +141,6 @@ ...@@ -141,8 +141,6 @@
*/ */
#define LDLM_POOL_SLV_SHIFT (10) #define LDLM_POOL_SLV_SHIFT (10)
extern struct proc_dir_entry *ldlm_ns_proc_dir;
static inline __u64 dru(__u64 val, __u32 shift, int round_up) static inline __u64 dru(__u64 val, __u32 shift, int round_up)
{ {
return (val + (round_up ? (1 << shift) - 1 : 0)) >> shift; return (val + (round_up ? (1 << shift) - 1 : 0)) >> shift;
......
...@@ -62,7 +62,7 @@ LIST_HEAD(ldlm_cli_active_namespace_list); ...@@ -62,7 +62,7 @@ LIST_HEAD(ldlm_cli_active_namespace_list);
LIST_HEAD(ldlm_cli_inactive_namespace_list); LIST_HEAD(ldlm_cli_inactive_namespace_list);
struct proc_dir_entry *ldlm_type_proc_dir = NULL; struct proc_dir_entry *ldlm_type_proc_dir = NULL;
struct proc_dir_entry *ldlm_ns_proc_dir = NULL; static struct proc_dir_entry *ldlm_ns_proc_dir = NULL;
struct proc_dir_entry *ldlm_svc_proc_dir = NULL; struct proc_dir_entry *ldlm_svc_proc_dir = NULL;
extern unsigned int ldlm_cancel_unused_locks_before_replay; extern unsigned int ldlm_cancel_unused_locks_before_replay;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment