[Pvfs2-developers] fix a warning in openib.c

Kyle Schochenmaier kschoche at scl.ameslab.gov
Fri Sep 1 10:56:46 EDT 2006


Pete -

I ran into some compiler warnings on the openib code that I hadnt 
previously seen before after checking out the CVS head.

src/io/bmi/bmi_ib/openib.c: In function openib_post_sr_ack:
src/io/bmi/bmi_ib/openib.c:545: warning: missing initializer
src/io/bmi/bmi_ib/openib.c:545: warning: (near initialization for sr.wr)
---
I'm not sure how to fix this one immediately because we do not use the 
sr.wr union
when posting ack messages.
---
src/io/bmi/bmi_ib/openib.c:836: warning: enumeration value 
âIBV_EVENT_CLIENT_REREGISTERâ not handled in switch
--- I 've attached a patch to fix this warning, but didnt go through and 
check the vapi-IB equivalent, we  may want to look into that at some 
point, though not sure if its necessary.


~ Kyle

-- 
Kyle Schochenmaier
kschoche at scl.ameslab.gov
Research Assistant, Dr. Brett Bode
AmesLab - US Dept.Energy
Scalable Computing Laboratory 

-------------- next part --------------
--- pvfs2-CVS/src/io/bmi/bmi_ib/openib.c	2006-09-01 09:34:52.000000000 -0500
+++ pvfs2-new/src/io/bmi/bmi_ib/openib.c	2006-09-01 09:36:47.000000000 -0500
@@ -851,6 +851,7 @@
 	CASE(IBV_EVENT_SRQ_ERR);
 	CASE(IBV_EVENT_SRQ_LIMIT_REACHED);
 	CASE(IBV_EVENT_QP_LAST_WQE_REACHED);
+	CASE(IBV_EVENT_CLIENT_REREGISTER);
     }
     return s;
 }


More information about the Pvfs2-developers mailing list