lkml.org 
[lkml]   [2010]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -next] ocfs2: fix build for OCFS2_FS_STATS not enabled
From: Randy Dunlap <randy.dunlap@oracle.com>

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 <randy.dunlap@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <joel.becker@oracle.com>
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)

\
 
 \ /
  Last update: 2010-12-27 20:59    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site