[openib-general] [PATCH] mthca: make IB_SEND_FENCE work
Sean Hefty
mshefty at ichips.intel.com
Mon Aug 14 13:30:29 PDT 2006
Michael S. Tsirkin wrote:
> Yes, I see lots of such bogus warnings in kernel code too.
> And it seems obvious that since compiler isn't smart enough to
> figure out the initialization isn't needed, it will generate
> unecessary code if we *do* add initilization just to shut it up.
Can we relocate the setting for op0 and f0 outside of the for-loop (maybe before
we enter the loop)? I'm really not familiar with this code, but on first
glance, it looks like these are set based on the send_flag of the first posted wr.
This could eliminate the warning, and remove an if statement from executing on
each iteration.
- Sean
More information about the general
mailing list