Skip to content

Commit 959040c

Browse files
Sunil MushranMark Fasheh
authored andcommitted
[PATCH 2/3] ocfs2/dlm: Silence build warnings
This patch silences the build warnings concerning dlm_debug_init() and friends when building without CONFIG_DEBUG_FS enabled. Signed-off-by: Sunil Mushran <[email protected]> Signed-off-by: Mark Fasheh <[email protected]>
1 parent 271d772 commit 959040c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fs/ocfs2/dlm/dlmdebug.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,25 @@ void dlm_destroy_debugfs_root(void);
6060

6161
#else
6262

63-
static int dlm_debug_init(struct dlm_ctxt *dlm)
63+
static inline int dlm_debug_init(struct dlm_ctxt *dlm)
6464
{
6565
return 0;
6666
}
67-
static void dlm_debug_shutdown(struct dlm_ctxt *dlm)
67+
static inline void dlm_debug_shutdown(struct dlm_ctxt *dlm)
6868
{
6969
}
70-
static int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm)
70+
static inline int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm)
7171
{
7272
return 0;
7373
}
74-
static void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm)
74+
static inline void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm)
7575
{
7676
}
77-
static int dlm_create_debugfs_root(void)
77+
static inline int dlm_create_debugfs_root(void)
7878
{
7979
return 0;
8080
}
81-
static void dlm_destroy_debugfs_root(void)
81+
static inline void dlm_destroy_debugfs_root(void)
8282
{
8383
}
8484

0 commit comments

Comments
 (0)