Skip to content

Commit

Permalink
[GFS2] proper extern for gfs2/locking/dlm/mount.c:gdlm_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Steven Whitehouse committed Mar 31, 2008
1 parent 8af4c72 commit 60b779c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions fs/gfs2/locking/dlm/lock_dlm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 0 additions & 2 deletions fs/gfs2/locking/dlm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#include "lock_dlm.h"

extern struct lm_lockops gdlm_ops;

static int __init init_lock_dlm(void)
{
int error;
Expand Down
2 changes: 0 additions & 2 deletions fs/gfs2/locking/dlm/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60b779c

Please sign in to comment.