]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[GFS2] proper extern for gfs2/locking/dlm/mount.c:gdlm_ops
authorAdrian Bunk <bunk@kernel.org>
Sun, 17 Feb 2008 08:20:34 +0000 (10:20 +0200)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:41:09 +0000 (10:41 +0100)
This patch adds a proper extern declaration for gdlm_ops in
fs/gfs2/locking/dlm/lock_dlm.h

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/locking/dlm/lock_dlm.h
fs/gfs2/locking/dlm/main.c
fs/gfs2/locking/dlm/sysfs.c

index 9e8265d28377bda09e9a3ca478a96c090b6ab70e..58fcf8c5bf39ec15439c8fe2a2ad003ffe90d275 100644 (file)
@@ -183,5 +183,10 @@ int gdlm_plock_get(void *, struct lm_lockname *, struct file *,
                struct file_lock *);
 int gdlm_punlock(void *, struct lm_lockname *, struct file *,
                struct file_lock *);
+
+/* mount.c */
+
+extern const struct lm_lockops gdlm_ops;
+
 #endif
 
index a0e7eda643ed415dd337eef0f2813cb1a46c5562..36a225850bd8a19adbea438e7e3d6349943cb5ba 100644 (file)
@@ -11,8 +11,6 @@
 
 #include "lock_dlm.h"
 
-extern struct lm_lockops gdlm_ops;
-
 static int __init init_lock_dlm(void)
 {
        int error;
index a87b098397617cdc82a4fc1ebe0eb9edb121a7c0..8479da47049cbe163c8d642c1cbc8fe30532ee39 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "lock_dlm.h"
 
-extern struct lm_lockops gdlm_ops;
-
 static ssize_t proto_name_show(struct gdlm_ls *ls, char *buf)
 {
        return sprintf(buf, "%s\n", gdlm_ops.lm_proto_name);