[PATCH -next] ocfs2: fix sparse non static symbol warning
From: Wei Yongjun
Date: Thu Nov 21 2013 - 21:43:31 EST
From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxx>
---
fs/ocfs2/stack_user.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ocfs2/stack_user.c b/fs/ocfs2/stack_user.c
index eca3f93..9b18f4e 100644
--- a/fs/ocfs2/stack_user.c
+++ b/fs/ocfs2/stack_user.c
@@ -927,7 +927,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,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/