From patchwork Sat Oct 3 00:33:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 51487 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n930WCjA020950 for ; Sat, 3 Oct 2009 00:32:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751731AbZJCAcG (ORCPT ); Fri, 2 Oct 2009 20:32:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752905AbZJCAcG (ORCPT ); Fri, 2 Oct 2009 20:32:06 -0400 Received: from mail-ew0-f211.google.com ([209.85.219.211]:34650 "EHLO mail-ew0-f211.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751731AbZJCAcF (ORCPT ); Fri, 2 Oct 2009 20:32:05 -0400 Received: by ewy7 with SMTP id 7so1516696ewy.17 for ; Fri, 02 Oct 2009 17:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=py1SIuaozab43QhrIHV1g3oVcrI9n3oZQKOeiQMKj1k=; b=XoVjgr+ZmrP7exrV0o1lNZ2GsBm9rCsMwaXIitJB5Ov3NNn5O1UCtaunluD8KNcBVn w77gVk/ocFlCkqbfKlgN3lDn0I/H0kR6zZk8nZEJu3DS9SC7ohg8qElJrQE18kE5+0bn 3ZAg0TlrzTZtj56trxn1lP4nLCoY08/S9Ke54= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=EKxfwR68dPj2PUB+LB0vjVEVb0GsEO/UQ1IZ+sf8fLCm9ujMow/rwofXTCQ5VkZNzY oNJQH0z34DYQPyuUYBK1bn0M83aysnw5XC8PNyJu5yPuuU3phL1Gp4uFMZdpXtKRk8Yi 8bS137SRROMWrNgQbLf9YQgQyf1BnwtsGRYxo= Received: by 10.210.15.14 with SMTP id 14mr250148ebo.49.1254529927595; Fri, 02 Oct 2009 17:32:07 -0700 (PDT) Received: from me.localdomain (85.64.35.106.dynamic.barak-online.net [85.64.35.106]) by mx.google.com with ESMTPS id 10sm899880eyd.6.2009.10.02.17.32.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 02 Oct 2009 17:32:06 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id BD8CA429E0; Sat, 3 Oct 2009 02:33:57 +0200 (IST) Date: Sat, 3 Oct 2009 02:33:57 +0200 From: Sasha Khapyorsky To: Hal Rosenstock Cc: linux-rdma , Dale Purdy , "Stan C. Smith" Subject: Re: [PATCH] opensm: fix some obvious -Wsign-compare warnings Message-ID: <20091003003357.GD17846@me> References: <20091001192536.GY17846@me> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/include/opensm/osm_switch.h b/opensm/include/opensm/osm_switch.h index e281842..37c1c4f 100644 --- a/opensm/include/opensm/osm_switch.h +++ b/opensm/include/opensm/osm_switch.h @@ -103,7 +103,7 @@ typedef struct osm_switch { uint8_t *lft; uint8_t *new_lft; osm_mcast_tbl_t mcast_tbl; - uint32_t mft_block_num; + int32_t mft_block_num; uint32_t mft_position; unsigned endport_links; unsigned need_update; diff --git a/opensm/opensm/osm_mcast_mgr.c b/opensm/opensm/osm_mcast_mgr.c index aaab91a..6f51404 100644 --- a/opensm/opensm/osm_mcast_mgr.c +++ b/opensm/opensm/osm_mcast_mgr.c @@ -1004,7 +1004,7 @@ static int mcast_mgr_set_mftables(osm_sm_t * sm) osm_switch_t *p_sw; osm_mcast_tbl_t *p_tbl; int block_notdone, ret = 0; - uint16_t block_num, max_block = -1; + int16_t block_num, max_block = -1; p_sw = (osm_switch_t *) cl_qmap_head(p_sw_tbl); while (p_sw != (osm_switch_t *) cl_qmap_end(p_sw_tbl)) {