'ibdebug' variable was not declared as 'extern', as result includers (libraries and programs) may have its own copy of this variable. As example libibnetdisc and ibnetdiscover.
Signed-off-by: Sasha Khapyorsky <[email protected]> --- libibmad/include/infiniband/mad.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libibmad/include/infiniband/mad.h b/libibmad/include/infiniband/mad.h index 02ef551..0687c06 100644 --- a/libibmad/include/infiniband/mad.h +++ b/libibmad/include/infiniband/mad.h @@ -1031,7 +1031,7 @@ MAD_EXPORT ib_mad_dump_fn mad_dump_perfcounters_xmt_disc, mad_dump_perfcounters_rcv_err, mad_dump_portsamples_control; -MAD_EXPORT int ibdebug; +MAD_EXPORT extern int ibdebug; #if __BYTE_ORDER == __LITTLE_ENDIAN #ifndef ntohll -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
