summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2014-01-22 03:48:37 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-22 04:19:42 +0400
commit16eac4be46fdd19e4e0bcd06e77e947266d2cf35 (patch)
treef6ade51c810f7065e728dda2ee110ac1ccf702ec /fs
parent1ba2212bb3e9527a4b3d18692f5ffe204f29bb47 (diff)
downloadlinux-16eac4be46fdd19e4e0bcd06e77e947266d2cf35.tar.xz
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/ocfs2/stack_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index 673ab40eb81b..13a8537d8e8b 100644
--- a/fs/ocfs2/stack_user.c
+++ b/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);
}
-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,