[openib-general] [PATCH] opensm: make more statics
Sasha Khapyorsky
sashak at voltaire.com
Wed May 17 09:44:33 PDT 2006
This makes local functions to be static in osm_link_mgr.c.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
osm/opensm/osm_link_mgr.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/osm/opensm/osm_link_mgr.c b/osm/opensm/osm_link_mgr.c
index 5d9ab7d..2b0d2de 100644
--- a/osm/opensm/osm_link_mgr.c
+++ b/osm/opensm/osm_link_mgr.c
@@ -111,8 +111,8 @@ osm_link_mgr_init(
/**********************************************************************
**********************************************************************/
-void
-osm_link_mgr_set_physp_pi(
+static void
+__osm_link_mgr_set_physp_pi(
IN osm_link_mgr_t* const p_mgr,
IN osm_physp_t* const p_physp,
IN uint8_t const port_state )
@@ -129,7 +129,7 @@ osm_link_mgr_set_physp_pi(
boolean_t send_set = FALSE;
osm_physp_t *p_remote_physp;
- OSM_LOG_ENTER( p_mgr->p_log, osm_link_mgr_set_physp_pi );
+ OSM_LOG_ENTER( p_mgr->p_log, __osm_link_mgr_set_physp_pi );
CL_ASSERT( p_physp );
CL_ASSERT( osm_physp_is_valid( p_physp ) );
@@ -151,7 +151,7 @@ osm_link_mgr_set_physp_pi(
if (! p_switch )
{
osm_log( p_mgr->p_log, OSM_LOG_ERROR,
- "osm_link_mgr_set_physp_pi: ERR 4201: "
+ "__osm_link_mgr_set_physp_pi: ERR 4201: "
"Cannot find switch by guid: 0x%" PRIx64 "\n",
cl_ntoh64( p_node->node_info.node_guid ) );
goto Exit;
@@ -165,7 +165,7 @@ osm_link_mgr_set_physp_pi(
if( osm_log_is_active( p_mgr->p_log, OSM_LOG_DEBUG ) )
{
osm_log( p_mgr->p_log, OSM_LOG_DEBUG,
- "osm_link_mgr_set_physp_pi: "
+ "__osm_link_mgr_set_physp_pi: "
"Skipping port 0, GUID = 0x%016" PRIx64 "\n",
cl_ntoh64( osm_physp_get_port_guid( p_physp ) ) );
}
@@ -366,7 +366,7 @@ osm_link_mgr_set_physp_pi(
/**********************************************************************
**********************************************************************/
-osm_signal_t
+static osm_signal_t
__osm_link_mgr_process_port(
IN osm_link_mgr_t* const p_mgr,
IN osm_port_t* const p_port,
@@ -419,7 +419,7 @@ __osm_link_mgr_process_port(
(current_state < link_state) )
{
p_mgr->send_set_reqs = FALSE;
- osm_link_mgr_set_physp_pi(
+ __osm_link_mgr_set_physp_pi(
p_mgr,
p_physp,
link_state );
More information about the general
mailing list