[openib-general] [PATCH TRIVIAL] opensm: make some local functions static
Sasha Khapyorsky
sashak at voltaire.com
Sun Oct 8 11:05:16 PDT 2006
This makes some local functions static in osm_mcast_mgr.c.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
osm/include/opensm/osm_mcast_mgr.h | 44 ------------------------------------
osm/opensm/osm_mcast_mgr.c | 12 +++++-----
2 files changed, 6 insertions(+), 50 deletions(-)
diff --git a/osm/include/opensm/osm_mcast_mgr.h b/osm/include/opensm/osm_mcast_mgr.h
index b460949..a78c641 100644
--- a/osm/include/opensm/osm_mcast_mgr.h
+++ b/osm/include/opensm/osm_mcast_mgr.h
@@ -268,50 +268,6 @@ osm_mcast_mgr_process(
* Multicast Manager, Node Info Response Controller
*********/
-/****f* OpenSM: Multicast Manager/osm_mcast_mgr_process_mgrp
-* NAME
-* osm_mcast_mgr_process_mgrp
-*
-* DESCRIPTION
-* Processes a specific multicast group. This function is called
-* by the SM to process a multicast group. Note that this function
-* returns BEFORE the switch tables have been configured over the wire,
-* and AFTER switch table configuration MADs are all placed in the
-* VL15 FIFOs. In other words, the switch table configuration is
-* imminent but probably not yet complete at the time this call returns.
-*
-* SYNOPSIS
-*/
-osm_signal_t
-osm_mcast_mgr_process_mgrp(
- IN osm_mcast_mgr_t* const p_mgr,
- IN osm_mgrp_t* const p_mgrp,
- IN osm_mcast_req_type_t req_type,
- IN ib_net64_t port_guid );
-/*
-* PARAMETERS
-* p_mgr
-* [in] Pointer to an osm_mcast_mgr_t object.
-*
-* p_mgrp
-* [in] Pointer to the multicast group to process.
-*
-* req_type
-* [in] Type of the multicast request that caused this processing
-* (MC create/join/leave).
-*
-* port_guid
-* [in] Port guid of the port that was added/removed due to this call.
-*
-* RETURN VALUES
-* OSM_SIGNAL_DONE
-* OSM_SIGNAL_DONE_PENDING
-*
-* NOTES
-*
-* SEE ALSO
-*********/
-
/****f* OpenSM: Multicast Manager/osm_mcast_mgr_process_mgrp_cb
* NAME
* osm_mcast_mgr_process_mgrp_cb
diff --git a/osm/opensm/osm_mcast_mgr.c b/osm/opensm/osm_mcast_mgr.c
index bdd0d61..cb0ffb1 100644
--- a/osm/opensm/osm_mcast_mgr.c
+++ b/osm/opensm/osm_mcast_mgr.c
@@ -110,7 +110,7 @@ __osm_mcast_work_obj_delete(
/**********************************************************************
Recursively remove nodes from the tree
**********************************************************************/
-void
+static void
__osm_mcast_mgr_purge_tree_node(
IN osm_mtree_node_t* p_mtn )
{
@@ -148,7 +148,7 @@ __osm_mcast_mgr_purge_tree(
/**********************************************************************
**********************************************************************/
-float
+static float
osm_mcast_mgr_compute_avg_hops(
osm_mcast_mgr_t* const p_mgr,
const osm_mgrp_t* const p_mgrp,
@@ -215,7 +215,7 @@ osm_mcast_mgr_compute_avg_hops(
Calculate the maximal "min hops" from the given switch to any
of the group HCAs
**********************************************************************/
-float
+static float
osm_mcast_mgr_compute_max_hops(
osm_mcast_mgr_t* const p_mgr,
const osm_mgrp_t* const p_mgrp,
@@ -1286,7 +1286,7 @@ #endif
/**********************************************************************
lock must already be held on entry
**********************************************************************/
-ib_api_status_t
+static ib_api_status_t
osm_mcast_mgr_process_tree(
IN osm_mcast_mgr_t* const p_mgr,
IN osm_mgrp_t* const p_mgrp,
@@ -1377,7 +1377,7 @@ osm_mcast_mgr_process_tree(
/**********************************************************************
**********************************************************************/
-void
+static void
osm_mcast_mgr_dump_mcast_routes(
IN const osm_mcast_mgr_t* const p_mgr,
IN const osm_switch_t* const p_sw )
@@ -1490,7 +1490,7 @@ __unlink_mcast_fdb(IN osm_mcast_mgr_t* c
NOTE : The lock should be held externally!
**********************************************************************/
-osm_signal_t
+static osm_signal_t
osm_mcast_mgr_process_mgrp(
IN osm_mcast_mgr_t* const p_mgr,
IN osm_mgrp_t* const p_mgrp,
--
1.4.2.3
More information about the general
mailing list