opensm: Change osm_routing_engine struct to not use C++ reserved word
PATCH 1/1 opensm: Change osm_routing_engine struct to not use C++ reserved word
Change delete to destroy in osm_routing_engine struct
---
include/opensm/osm_opensm.h +1 -1
@@ -136,7 +136,7 @@ struct osm_routing_engine { IN const osm_port_t *dst_port);ib_api_status_t (*mcast_build_stree)(void *context, IN OUT osm_mgrp_box_t *mgb); -void (*delete) (void *context); +void (*destroy) (void *context);struct osm_routing_engine *next; };/*
opensm/osm_opensm.c +2 -2
@@ -243,8 +243,8 @@ static void destroy_routing_engines(osm_opensm_t *osm)while (next) { r = next; next = r->next; -if (r->delete) - r->delete (r->context); +if (r->destroy) + r->destroy (r->context);free (r); } }
opensm/osm_torus.c +1 -1
@@ -9307,6 +9307,6 @@ int osm_ucast_torus2QoS_setup(struct osm_routing_engine *r, r->update_sl2vl = torus_update_osm_sl2vl; r->path_sl = torus_path_sl; r->mcast_build_stree = torus_mcast_stree; - r->delete = torus_context_delete; + r->destroy = torus_context_delete;return 0 ; }
opensm/osm_ucast_dnup.c +1 -1
@@ -489,7 +489,7 @@ int osm_ucast_dnup_setup(struct osm_routing_engine *r, osm_opensm_t *osm) dnup->p_osm = osm; r->context = dnup; - r->delete = dnup_delete; + r->destroy = dnup_delete; r->build_lid_matrices = dnup_lid_matrices;OSM_LOG_EXIT (&osm->log);
opensm/osm_ucast_ftree.c +1 -1
@@ -4134,7 +4134,7 @@ int osm_ucast_ftree_setup(struct osm_routing_engine *r, osm_opensm_t * p_osm) r->context = (void *)p_ftree; r->build_lid_matrices = construct_fabric; r->ucast_build_fwd_tables = do_routing; - r->delete = delete; + r->destroy = delete;return 0 ; }
opensm/osm_ucast_lash.c +1 -1
@@ -1314,7 +1314,7 @@ int osm_ucast_lash_setup(struct osm_routing_engine *r, osm_opensm_t *p_osm) r->context = p_lash; r->ucast_build_fwd_tables = lash_process; r->path_sl = get_lash_sl; - r->delete = lash_delete; + r->destroy = lash_delete;return 0 ; }
opensm/osm_ucast_updn.c +1 -1
@@ -661,7 +661,7 @@ int osm_ucast_updn_setup(struct osm_routing_engine *r, osm_opensm_t *osm) updn->p_osm = osm; r->context = updn; - r->delete = updn_delete; + r->destroy = updn_delete; r->build_lid_matrices = updn_lid_matrices;return 0 ;
--
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
Hi Hal,
Quoted 5 lines · Hal Rosenstock
Change delete to destroy in
osm_routing_enginestruct---
Applied, thanks.
--
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