From 3040fa78d7d22c8f76c88dc77cedde09f016eb67 Mon Sep 17 00:00:00 2001 From: Arlin Davis Date: Fri, 5 Feb 2010 11:51:16 -0800 Subject: [PATCH] undefined symbol: dapls_print_cm_list call prototype should be dependent on DAPL_COUNTERS. Signed-off-by: Arlin Davis --- dapl/openib_cma/dapl_ib_util.h | 2 ++ dapl/openib_scm/dapl_ib_util.h | 3 +++ dapl/openib_ucm/dapl_ib_util.h | 3 +++ 3 files changed, 8 insertions(+) diff --git a/dapl/openib_cma/dapl_ib_util.h b/dapl/openib_cma/dapl_ib_util.h index 6b43c91..451a967 100755 --- a/dapl/openib_cma/dapl_ib_util.h +++ b/dapl/openib_cma/dapl_ib_util.h @@ -125,9 +125,11 @@ void dapli_cq_event_cb(struct _ib_hca_transport *tp); dp_ib_cm_handle_t dapls_ib_cm_create(DAPL_EP *ep); void dapls_ib_cm_free(dp_ib_cm_handle_t cm, DAPL_EP *ep); +#ifdef DAPL_COUNTERS STATIC _INLINE_ void dapls_print_cm_list(IN DAPL_IA * ia_ptr) { return; } +#endif #endif /* _DAPL_IB_UTIL_H_ */ diff --git a/dapl/openib_scm/dapl_ib_util.h b/dapl/openib_scm/dapl_ib_util.h index 138a3dd..831084f 100644 --- a/dapl/openib_scm/dapl_ib_util.h +++ b/dapl/openib_scm/dapl_ib_util.h @@ -113,6 +113,9 @@ void dapli_cq_event_cb(struct _ib_hca_transport *tp); DAT_RETURN dapli_socket_disconnect(dp_ib_cm_handle_t cm_ptr); dp_ib_cm_handle_t dapls_ib_cm_create(DAPL_EP *ep); void dapls_ib_cm_free(dp_ib_cm_handle_t cm, DAPL_EP *ep); + +#ifdef DAPL_COUNTERS void dapls_print_cm_list(IN DAPL_IA *ia_ptr); +#endif #endif /* _DAPL_IB_UTIL_H_ */ diff --git a/dapl/openib_ucm/dapl_ib_util.h b/dapl/openib_ucm/dapl_ib_util.h index 6273459..d7844c6 100644 --- a/dapl/openib_ucm/dapl_ib_util.h +++ b/dapl/openib_ucm/dapl_ib_util.h @@ -119,7 +119,10 @@ void ucm_async_event(struct dapl_hca *hca); void dapli_cq_event_cb(struct _ib_hca_transport *tp); dp_ib_cm_handle_t dapls_ib_cm_create(DAPL_EP *ep); void dapls_ib_cm_free(dp_ib_cm_handle_t cm, DAPL_EP *ep); + +#ifdef DAPL_COUNTERS void dapls_print_cm_list(IN DAPL_IA *ia_ptr); +#endif #endif /* _DAPL_IB_UTIL_H_ */ -- 2.41.0