提交 271d772d 编写于 作者: S Sunil Mushran 提交者: Mark Fasheh

[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: NSunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: NMark Fasheh <mfasheh@suse.com>
上级 a12630b1
...@@ -128,23 +128,23 @@ void o2net_debug_del_nst(struct o2net_send_tracking *nst); ...@@ -128,23 +128,23 @@ void o2net_debug_del_nst(struct o2net_send_tracking *nst);
void o2net_debug_add_sc(struct o2net_sock_container *sc); void o2net_debug_add_sc(struct o2net_sock_container *sc);
void o2net_debug_del_sc(struct o2net_sock_container *sc); void o2net_debug_del_sc(struct o2net_sock_container *sc);
#else #else
static int o2net_debugfs_init(void) static inline int o2net_debugfs_init(void)
{ {
return 0; return 0;
} }
static void o2net_debugfs_exit(void) static inline void o2net_debugfs_exit(void)
{ {
} }
static void o2net_debug_add_nst(struct o2net_send_tracking *nst) static inline void o2net_debug_add_nst(struct o2net_send_tracking *nst)
{ {
} }
static void o2net_debug_del_nst(struct o2net_send_tracking *nst) static inline void o2net_debug_del_nst(struct o2net_send_tracking *nst)
{ {
} }
static void o2net_debug_add_sc(struct o2net_sock_container *sc) static inline void o2net_debug_add_sc(struct o2net_sock_container *sc)
{ {
} }
static void o2net_debug_del_sc(struct o2net_sock_container *sc) static inline void o2net_debug_del_sc(struct o2net_sock_container *sc)
{ {
} }
#endif /* CONFIG_DEBUG_FS */ #endif /* CONFIG_DEBUG_FS */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册