[openib-general] [PATCH] Fix MVAPICH compile with gcc4

Roland Dreier rolandd at cisco.com
Mon Sep 26 14:19:11 PDT 2005


gcc version 4 doesn't like the extern declaration of free_vbuf_head to
followed by a static declaration in vbuf.c.  To fix this, we can just
get rid of the declaration in vbuf.h, since free_vbuf_head is not used
outside of vbuf.c.

Signed-off-by: Roland Dreier <rolandd at cisco.com>

--- mpid/ch_gen2/vbuf.h	(revision 3549)
+++ mpid/ch_gen2/vbuf.h	(working copy)
@@ -188,8 +188,6 @@ void allocate_vbufs(void);
 
 void deallocate_vbufs(void);
 
-extern vbuf *free_vbuf_head;
-
 vbuf *get_vbuf(void);
 void release_vbuf(vbuf * v);
 void vbuf_init_send(vbuf * v, unsigned long len);



More information about the general mailing list