[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 <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>

authored by Sunil Mushran and committed by Mark Fasheh 959040c3 271d772d

+11 -11
+11 -11
fs/ocfs2/dlm/dlmdebug.h
··· 60 61 #else 62 63 - static int dlm_debug_init(struct dlm_ctxt *dlm) 64 { 65 return 0; 66 } 67 - static void dlm_debug_shutdown(struct dlm_ctxt *dlm) 68 { 69 } 70 - static int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm) 71 - { 72 - return 0; 73 - } 74 - static void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm) 75 - { 76 - } 77 - static int dlm_create_debugfs_root(void) 78 { 79 return 0; 80 } 81 - static void dlm_destroy_debugfs_root(void) 82 { 83 } 84
··· 60 61 #else 62 63 + static inline int dlm_debug_init(struct dlm_ctxt *dlm) 64 { 65 return 0; 66 } 67 + static inline void dlm_debug_shutdown(struct dlm_ctxt *dlm) 68 { 69 } 70 + static inline int dlm_create_debugfs_subroot(struct dlm_ctxt *dlm) 71 { 72 return 0; 73 } 74 + static inline void dlm_destroy_debugfs_subroot(struct dlm_ctxt *dlm) 75 + { 76 + } 77 + static inline int dlm_create_debugfs_root(void) 78 + { 79 + return 0; 80 + } 81 + static inline void dlm_destroy_debugfs_root(void) 82 { 83 } 84