Skip to content

Commit

Permalink
[PATCH 2/3] ocfs2/dlm: Silence build warnings
Browse files Browse the repository at this point in the history
This patch silences the build warnings concerning dlm_debug_init()
and friends when building without CONFIG_DEBUG_FS enabled.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
  • Loading branch information
Sunil Mushran authored and Mark Fasheh committed May 30, 2008
1 parent 271d772 commit 959040c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fs/ocfs2/dlm/dlmdebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,25 @@ void dlm_destroy_debugfs_root(void);

#else

static int dlm_debug_init(struct dlm_ctxt *dlm)
static inline int dlm_debug_init(struct dlm_ctxt *dlm)
{
return 0;
}
static void dlm_debug_shutdown(struct dlm_ctxt *dlm)
static inline void dlm_debug_shutdown(struct dlm_ctxt *dlm)
{
}
static int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm)
static inline int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm)
{
return 0;
}
static void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm)
static inline void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm)
{
}
static int dlm_create_debugfs_root(void)
static inline int dlm_create_debugfs_root(void)
{
return 0;
}
static void dlm_destroy_debugfs_root(void)
static inline void dlm_destroy_debugfs_root(void)
{
}

Expand Down

0 comments on commit 959040c

Please sign in to comment.