Skip to content

Commit

Permalink
ocfs2: fix sparse non static symbol warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Wei Yongjun authored and torvalds committed Jan 22, 2014
1 parent 1ba2212 commit 16eac4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/stack_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ static void user_recover_done(void *arg, struct dlm_slot *slots,
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_slot = user_recover_slot,
.recover_done = user_recover_done,
Expand Down

0 comments on commit 16eac4b

Please sign in to comment.