Skip to content

Commit 271d772

Browse files
Sunil MushranMark Fasheh
authored andcommitted
[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 <[email protected]> Signed-off-by: Mark Fasheh <[email protected]>
1 parent a12630b commit 271d772

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fs/ocfs2/cluster/tcp.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,23 @@ void o2net_debug_del_nst(struct o2net_send_tracking *nst);
128128
void o2net_debug_add_sc(struct o2net_sock_container *sc);
129129
void o2net_debug_del_sc(struct o2net_sock_container *sc);
130130
#else
131-
static int o2net_debugfs_init(void)
131+
static inline int o2net_debugfs_init(void)
132132
{
133133
return 0;
134134
}
135-
static void o2net_debugfs_exit(void)
135+
static inline void o2net_debugfs_exit(void)
136136
{
137137
}
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)
139139
{
140140
}
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)
142142
{
143143
}
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)
145145
{
146146
}
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)
148148
{
149149
}
150150
#endif /* CONFIG_DEBUG_FS */

0 commit comments

Comments
 (0)