Browse Source

ocfs2: fix sparse non static symbol warning

Fixes the following sparse warning:

  fs/ocfs2/stack_user.c:930:32: warning:
   symbol 'ocfs2_ls_ops' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Wei Yongjun 11 years ago
parent
commit
16eac4be46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/ocfs2/stack_user.c

+ 1 - 1
fs/ocfs2/stack_user.c

@@ -979,7 +979,7 @@ static void user_recover_done(void *arg, struct dlm_slot *slots,
 	wake_up(&lc->oc_wait);
 	wake_up(&lc->oc_wait);
 }
 }
 
 
-const struct dlm_lockspace_ops ocfs2_ls_ops = {
+static const struct dlm_lockspace_ops ocfs2_ls_ops = {
 	.recover_prep = user_recover_prep,
 	.recover_prep = user_recover_prep,
 	.recover_slot = user_recover_slot,
 	.recover_slot = user_recover_slot,
 	.recover_done = user_recover_done,
 	.recover_done = user_recover_done,