diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2013-07-24 15:06:07 -0700 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-07-30 16:11:22 -0700 |
commit | 8fb488d740582314534c278b5d1e3a1888b850b9 (patch) | |
tree | 5738d63f359794d2accab7a9ae8255e4e9b1a77b /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b (diff) |
RDMA/cma: Fix gcc warning
Building cma.o triggers this gcc warning:
drivers/infiniband/core/cma.c: In function ‘rdma_resolve_addr’:
drivers/infiniband/core/cma.c:465:23: warning: ‘port’ may be used uninitialized in this function [-Wmaybe-uninitialized]
drivers/infiniband/core/cma.c:426:5: note: ‘port’ was declared here
This is a false positive, as "port" will always be initialized if we're
at "found". But if we assign to "id_priv->id.port_num" directly, we can
drop "port". That will, obviously, silence gcc.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions