diff mbox

opensm: Rename ib_switch_info_set_state_change function in ib_types.h

Message ID 1391603111-21633-1-git-send-email-alexne@mellanox.com (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Alex Netes Feb. 5, 2014, 12:25 p.m. UTC
Function name collides with a function defined ibutils package.
New name: ib_switch_info_state_change_set

Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 include/iba/ib_types.h |    6 +++---
 opensm/osm_state_mgr.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Hal Rosenstock Feb. 5, 2014, 2:43 p.m. UTC | #1
On 2/5/2014 7:25 AM, Alex Netes wrote:
> Function name collides with a function defined ibutils package.
> New name: ib_switch_info_state_change_set
> 
> Signed-off-by: Alex Netes <alexne@mellanox.com>

Thanks. Applied.

-- Hal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/iba/ib_types.h b/include/iba/ib_types.h
index 249ee16..a0bb31c 100644
--- a/include/iba/ib_types.h
+++ b/include/iba/ib_types.h
@@ -6507,9 +6507,9 @@  ib_switch_info_clear_state_change(IN ib_switch_info_t * const p_si)
 * SEE ALSO
 *********/
 
-/****f* IBA Base: Types/ib_switch_info_set_state_change
+/****f* IBA Base: Types/ib_switch_info_state_change_set
 * NAME
-*	ib_switch_info_set_state_change
+*	ib_switch_info_state_change_set
 *
 * DESCRIPTION
 *	Clears the switch's state change bit.
@@ -6517,7 +6517,7 @@  ib_switch_info_clear_state_change(IN ib_switch_info_t * const p_si)
 * SYNOPSIS
 */
 static inline void OSM_API
-ib_switch_info_set_state_change(IN ib_switch_info_t * const p_si)
+ib_switch_info_state_change_set(IN ib_switch_info_t * const p_si)
 {
 	p_si->life_state = (uint8_t) ((p_si->life_state & ~IB_SWITCH_PSC) | IB_SWITCH_PSC);
 }
diff --git a/opensm/osm_state_mgr.c b/opensm/osm_state_mgr.c
index 5080b22..f9b20e2 100644
--- a/opensm/osm_state_mgr.c
+++ b/opensm/osm_state_mgr.c
@@ -559,7 +559,7 @@  static void state_mgr_reset_state_change_bit(IN cl_map_item_t * obj,
 
 	si = p_sw->switch_info;
 
-	ib_switch_info_set_state_change(&si);
+	ib_switch_info_state_change_set(&si);
 
 	OSM_LOG(sm->p_log, OSM_LOG_DEBUG,
 		"Resetting PortStateChange on switch GUID 0x%016" PRIx64 "\n",