[PATCH 1/3] ocfs2/net: Silence build warnings

This patch silences the build warnings concerning o2net_debugfs_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 271d772d a12630b1

+6 -6
+6 -6
fs/ocfs2/cluster/tcp.h
··· 128 128 void o2net_debug_add_sc(struct o2net_sock_container *sc); 129 129 void o2net_debug_del_sc(struct o2net_sock_container *sc); 130 130 #else 131 - static int o2net_debugfs_init(void) 131 + static inline int o2net_debugfs_init(void) 132 132 { 133 133 return 0; 134 134 } 135 - static void o2net_debugfs_exit(void) 135 + static inline void o2net_debugfs_exit(void) 136 136 { 137 137 } 138 - static void o2net_debug_add_nst(struct o2net_send_tracking *nst) 138 + static inline void o2net_debug_add_nst(struct o2net_send_tracking *nst) 139 139 { 140 140 } 141 - static void o2net_debug_del_nst(struct o2net_send_tracking *nst) 141 + static inline void o2net_debug_del_nst(struct o2net_send_tracking *nst) 142 142 { 143 143 } 144 - static void o2net_debug_add_sc(struct o2net_sock_container *sc) 144 + static inline void o2net_debug_add_sc(struct o2net_sock_container *sc) 145 145 { 146 146 } 147 - static void o2net_debug_del_sc(struct o2net_sock_container *sc) 147 + static inline void o2net_debug_del_sc(struct o2net_sock_container *sc) 148 148 { 149 149 } 150 150 #endif /* CONFIG_DEBUG_FS */