* [PATCH 1/2] opensm: Fix signed vs unsigned int comparison
@ 2012-10-29 23:44 Albert Chu
[not found] ` <1351554299.25353.20.camel-akkeaxHeDKRliZ7u+bvwcg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Albert Chu @ 2012-10-29 23:44 UTC (permalink / raw)
To: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Signed-off-by: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
---
opensm/osm_congestion_control.c | 2 +-
opensm/osm_perfmgr.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensm/osm_congestion_control.c b/opensm/osm_congestion_control.c
index 7f1c8fa..b5d9cdb 100644
--- a/opensm/osm_congestion_control.c
+++ b/opensm/osm_congestion_control.c
@@ -526,7 +526,7 @@ static void cc_poller_send(osm_congestion_control_t *p_cc,
if (status == IB_SUCCESS) {
cl_atomic_inc(&p_cc->outstanding_mads_on_wire);
if (p_cc->outstanding_mads_on_wire >
- p_opt->cc_max_outstanding_mads)
+ (int32_t)p_opt->cc_max_outstanding_mads)
cl_event_wait_on(&p_cc->sig_mads_on_wire_continue,
EVENT_NO_TIMEOUT,
TRUE);
diff --git a/opensm/osm_perfmgr.c b/opensm/osm_perfmgr.c
index ee2392c..98b4c07 100644
--- a/opensm/osm_perfmgr.c
+++ b/opensm/osm_perfmgr.c
@@ -420,7 +420,7 @@ static ib_api_status_t perfmgr_send_pc_mad(osm_perfmgr_t * perfmgr,
/* pause thread if there are too many outstanding requests */
cl_atomic_inc(&(perfmgr->outstanding_queries));
if (perfmgr->outstanding_queries >
- perfmgr->max_outstanding_queries) {
+ (int32_t)perfmgr->max_outstanding_queries) {
perfmgr->sweep_state = PERFMGR_SWEEP_SUSPENDED;
cl_event_wait_on(&perfmgr->sig_query, EVENT_NO_TIMEOUT,
TRUE);
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] opensm: Fix signed vs unsigned int comparison
[not found] ` <1351554299.25353.20.camel-akkeaxHeDKRliZ7u+bvwcg@public.gmane.org>
@ 2013-01-20 10:14 ` Alex Netes
0 siblings, 0 replies; 2+ messages in thread
From: Alex Netes @ 2013-01-20 10:14 UTC (permalink / raw)
To: Albert Chu; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Hi Albert,
On 16:44 Mon 29 Oct , Albert Chu wrote:
> Signed-off-by: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
> ---
Applied both patches. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-20 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 23:44 [PATCH 1/2] opensm: Fix signed vs unsigned int comparison Albert Chu
[not found] ` <1351554299.25353.20.camel-akkeaxHeDKRliZ7u+bvwcg@public.gmane.org>
2013-01-20 10:14 ` Alex Netes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).