diff --git a/prov/opx/include/fi_opx_tid_cache.h b/prov/opx/include/fi_opx_tid_cache.h index d052eabeaef..54fe835adad 100644 --- a/prov/opx/include/fi_opx_tid_cache.h +++ b/prov/opx/include/fi_opx_tid_cache.h @@ -47,8 +47,8 @@ */ int opx_tid_cache_setup(struct ofi_mr_cache **cache, struct opx_tid_domain *domain); -int opx_tid_cache_add_abort(); -void opx_tid_cache_delete_abort(); +int opx_tid_cache_add_abort(struct ofi_mr_cache *, struct ofi_mr_entry *); +void opx_tid_cache_delete_abort(struct ofi_mr_cache *, struct ofi_mr_entry *); enum opx_tid_cache_entry_status { OPX_TID_CACHE_ENTRY_NOT_FOUND = 0, diff --git a/prov/opx/include/rdma/opx/fi_opx.h b/prov/opx/include/rdma/opx/fi_opx.h index 12018dc900c..2d678ffd4be 100644 --- a/prov/opx/include/rdma/opx/fi_opx.h +++ b/prov/opx/include/rdma/opx/fi_opx.h @@ -94,7 +94,7 @@ // Useful for checking that structures are the correct size and other // compile-time tests. static_assert has existed since C11 so this // should be safe, but we have an else clause just in case. -#if defined(static_assert) +#if __STDC_VERSION__ >= 201112L #define OPX_COMPILE_TIME_ASSERT(cond, msg) static_assert(cond, msg) #else #define OPX_COMPILE_TIME_ASSERT(cond, msg) \ diff --git a/prov/opx/src/fi_opx_tid_cache.c b/prov/opx/src/fi_opx_tid_cache.c index 0861e767ff4..e0359c1693a 100644 --- a/prov/opx/src/fi_opx_tid_cache.c +++ b/prov/opx/src/fi_opx_tid_cache.c @@ -1787,14 +1787,14 @@ void opx_tid_cache_cleanup(struct ofi_mr_cache *cache) assert(cache->uncached_size == 0); } -int opx_tid_cache_add_abort() +int opx_tid_cache_add_abort(struct ofi_mr_cache *, struct ofi_mr_entry *) { fprintf(stderr, "%s unexpected function call\n", __func__); abort(); return 0; } -void opx_tid_cache_delete_abort() +void opx_tid_cache_delete_abort(struct ofi_mr_cache *, struct ofi_mr_entry *) { fprintf(stderr, "%s unexpected function call\n", __func__); abort();