[ofa-general] [PATCH] opensm: make osm_pkey_get_tables static

Sasha Khapyorsky sashak at voltaire.com
Sat Dec 1 08:48:05 PST 2007


Make osm_pkey_get_tables defined and used only in osm_port_info_rcv.c
static. Also rename to get_pkey_table().

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/include/opensm/osm_pkey.h  |   39 -------------------------------------
 opensm/opensm/osm_port_info_rcv.c |   16 +++++++-------
 2 files changed, 8 insertions(+), 47 deletions(-)

diff --git a/opensm/include/opensm/osm_pkey.h b/opensm/include/opensm/osm_pkey.h
index 3c84e4b..0dce001 100644
--- a/opensm/include/opensm/osm_pkey.h
+++ b/opensm/include/opensm/osm_pkey.h
@@ -696,44 +696,5 @@ boolean_t osm_physp_has_pkey(IN osm_log_t * p_log,
 *
 *********/
 
-/****f* OpenSM: osm_pkey_get_tables
-* NAME
-*  osm_pkey_get_tables
-*
-* DESCRIPTION
-*  Sends a request for getting the pkey tables of the given physp.
-*
-* SYNOPSIS
-*/
-void osm_pkey_get_tables(IN osm_log_t * p_log,
-			 IN osm_req_t * p_req,
-			 IN osm_subn_t * const p_subn,
-			 IN struct _osm_node *const p_node,
-			 IN struct _osm_physp *const p_physp);
-
-/*
-* PARAMETERS
-*  p_log
-*     [in] Pointer to osm_log object.
-*
-*  p_req
-*     [in] Pointer to osm_req object.
-*
-*  p_subn
-*     [in] Pointer to osm_subn object.
-*
-*  p_node
-*     [in] Pointer to osm_node object.
-*
-*  p_physp
-*     [in] Pointer to osm_physp_t object.
-*
-* RETURN VALUES
-*  None
-*
-* NOTES
-*
-*********/
-
 END_C_DECLS
 #endif				/* _OSM_PKEY_H_ */
diff --git a/opensm/opensm/osm_port_info_rcv.c b/opensm/opensm/osm_port_info_rcv.c
index dd3642d..9ea8738 100644
--- a/opensm/opensm/osm_port_info_rcv.c
+++ b/opensm/opensm/osm_port_info_rcv.c
@@ -370,11 +370,11 @@ __osm_pi_rcv_process_ca_or_router_port(IN const osm_pi_rcv_t * const p_rcv,
 #define IBM_VENDOR_ID  (0x5076)
 /**********************************************************************
  **********************************************************************/
-void osm_pkey_get_tables(IN osm_log_t * p_log,
-			 IN osm_req_t * p_req,
-			 IN osm_subn_t * const p_subn,
-			 IN osm_node_t * const p_node,
-			 IN osm_physp_t * const p_physp)
+static void get_pkey_table(IN osm_log_t * p_log,
+			   IN osm_req_t * p_req,
+			   IN osm_subn_t * const p_subn,
+			   IN osm_node_t * const p_node,
+			   IN osm_physp_t * const p_physp)
 {
 
 	osm_madw_context_t context;
@@ -384,7 +384,7 @@ void osm_pkey_get_tables(IN osm_log_t * p_log,
 	uint16_t block_num, max_blocks;
 	uint32_t attr_mod_ho;
 
-	OSM_LOG_ENTER(p_log, osm_pkey_get_tables);
+	OSM_LOG_ENTER(p_log, get_pkey_table);
 
 	path = *osm_physp_get_dr_path_ptr(p_physp);
 
@@ -452,8 +452,8 @@ __osm_pi_rcv_get_pkey_slvl_vla_tables(IN const osm_pi_rcv_t * const p_rcv,
 {
 	OSM_LOG_ENTER(p_rcv->p_log, __osm_pi_rcv_get_pkey_slvl_vla_tables);
 
-	osm_pkey_get_tables(p_rcv->p_log, p_rcv->p_req, p_rcv->p_subn,
-			    p_node, p_physp);
+	get_pkey_table(p_rcv->p_log, p_rcv->p_req, p_rcv->p_subn,
+		       p_node, p_physp);
 
 	OSM_LOG_EXIT(p_rcv->p_log);
 }
-- 
1.5.3.4.206.g58ba4




More information about the general mailing list