From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: [PATCH -next] ocfs2: fix build for OCFS2_FS_STATS not enabled Date: Mon, 27 Dec 2010 11:55:08 -0800 Message-ID: <20101227115508.8136331b.randy.dunlap@oracle.com> References: <20101227170451.a9a9f873.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from rcsinet10.oracle.com ([148.87.113.121]:61946 "EHLO rcsinet10.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754071Ab0L0T4Q (ORCPT ); Mon, 27 Dec 2010 14:56:16 -0500 In-Reply-To: <20101227170451.a9a9f873.sfr@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-ID: To: Stephen Rothwell , Mark Fasheh , Joel Becker Cc: linux-next@vger.kernel.org, LKML , ocfs2-devel@oss.oracle.com From: Randy Dunlap 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 --- fs/ocfs2/cluster/tcp.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-next-20101227.orig/fs/ocfs2/cluster/tcp.c +++ linux-next-20101227/fs/ocfs2/cluster/tcp.c @@ -257,6 +257,8 @@ static void o2net_update_recv_stats(stru # 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)