From: Randy Dunlap Date: Mon, 27 Dec 2010 19:55:08 +0000 (-0800) Subject: ocfs2: fix build for OCFS2_FS_STATS not enabled X-Git-Tag: upstream/snapshot3+hdmi~12078^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e70d84501b630e390b4242fb4ac629b694c11484;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ocfs2: fix build for OCFS2_FS_STATS not enabled When CONFIG_OCFS2_FS_STATS is not enabled: fs/ocfs2/cluster/tcp.c:1254: error: implicit declaration of function 'o2net_update_recv_stats' Signed-off-by: Randy Dunlap Cc: Mark Fasheh Cc: Joel Becker Cc: ocfs2-devel@oss.oracle.com Signed-off-by: Joel Becker --- diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c index bc23095..3b11cb1 100644 --- a/fs/ocfs2/cluster/tcp.c +++ b/fs/ocfs2/cluster/tcp.c @@ -257,6 +257,8 @@ static void o2net_update_recv_stats(struct o2net_sock_container *sc) # define o2net_update_send_stats(a, b) +# define o2net_update_recv_stats(sc) + #endif /* CONFIG_OCFS2_FS_STATS */ static inline int o2net_reconnect_delay(void)