[openib-general] [PATCH] Make SDP compile with gcc-2.95

Roland Dreier roland at topspin.com
Mon Mar 14 09:28:38 PST 2005


This trivial patch seems to be required to get SDP to compile with gcc
2.95.  It seems to be working around a bug with handling empty
"arg..." parameters to macros (without this change, gcc 2.95 eats
x->state in addition to the comma following it when arg is empty).

 - R.

Index: infiniband/ulp/sdp/sdp_proto.h
===================================================================
--- infiniband/ulp/sdp/sdp_proto.h	(revision 1977)
+++ infiniband/ulp/sdp/sdp_proto.h	(working copy)
@@ -482,7 +482,7 @@ extern int sdp_debug_level;
                 if (x) { \
                         sdp_dbg_out(level, type, \
                                       "<%d> <%04x:%04x> " format, \
-                                       x->hashent, x->istate, x->state, \
+                                       x->hashent, x->istate, x->state , \
                                        ## arg);                  \
                 } \
                 else {  \



More information about the general mailing list