Staging: lustre: Remove extern in .c file
PATCH v4 1/1 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.
Issue addressed by checkpatch.pl.
---
v4: remove extern declaration from .h
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c +0 -2
@@ -141,8 +141,6 @@*/ #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) {return (val + (round_up ? (1 << shift) -1 :0 )) >> shift;
Signature · 1 line
1.9.1
Greg KH
maintainerQuoted 16 lines · Haneen Mohammed
This patch removes extern from .c file; for The variable is not used anywhere else in the file.
Issue addressed by checkpatch.pl.Signed-off-by Haneen Mohammed <[email protected]>---
v4: remove extern declaration from .hdrivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 2 -- 1 file changed, 2 deletions(-)drivers/staging/lustre/lustre/ldlm/ldlm_pool.c +0
-0
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c line 146
Quoted 8 lines
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c +0
-2@@ -141,8 +141,6 @@*/ #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) {return (val + (round_up ? (1 << shift) -1 :0 )) >> shift;
Please also mark it static in the one file it is in in the same patch.
thanks,
greg k-h
PATCH v5 1/1 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".
---
v5: mark struct as static
v4: remove extern instead of adding its declaration to .h
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 2 -- drivers/staging/lustre/lustre/ldlm/ldlm_resource.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-)
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c +0 -2
@@ -141,8 +141,6 @@*/ #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) {return (val + (round_up ? (1 << shift) -1 :0 )) >> shift;
drivers/staging/lustre/lustre/ldlm/ldlm_resource.c +1 -1
@@ -62,7 +62,7 @@ LIST_HEAD(ldlm_cli_active_namespace_list);LIST_HEAD (ldlm_cli_inactive_namespace_list);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 ;extern unsigned int ldlm_cancel_unused_locks_before_replay;
Signature · 1 line
1.9.1