From patchwork Wed Jul 11 14:05:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1182831 X-Patchwork-Delegate: ira.weiny@intel.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id AB338DF25A for ; Wed, 11 Jul 2012 14:05:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757839Ab2GKOFo (ORCPT ); Wed, 11 Jul 2012 10:05:44 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:33750 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755214Ab2GKOFn (ORCPT ); Wed, 11 Jul 2012 10:05:43 -0400 Received: by bkwj10 with SMTP id j10so1112263bkw.19 for ; Wed, 11 Jul 2012 07:05:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=Z7FgQqDqtwuh+mZJQ1yBlxzQslXR4i0EV0ttUFDpLxk=; b=jonczbpfUJmLEh/soho+9ifBNZu+dg+kzzqrfaYR0EfbWWJ1Ys1KGd7gEpp5Gwp+On IweVQKk/bbZk7aDps+CfWy65iBoh849szwIdAVMOGNG+dVWDNPCrqvQ2rrqZHswgxGHd DLSKJh4PX49wcbLdFxx9qd7fBWoOjurqIR3xNPsTv6kR7B+PPQcIVX0n3oOYJQLvvzti yCFw1/zCXygIPL7xiq7DzucUVrh9/TdBBtLgxBnox/SDV9VOEbRtwf2864OhuWTMuhWm foA+EHoVDS08IndnV86WmYI2b+hxTJx1IlpIWRJuu/U02D7d++Gj+rxRk6oh/KmpeJMh XJmA== Received: by 10.204.157.22 with SMTP id z22mr23351535bkw.4.1342015542392; Wed, 11 Jul 2012 07:05:42 -0700 (PDT) Received: from [192.168.1.102] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id o4sm1255014bkv.15.2012.07.11.07.05.39 (version=SSLv3 cipher=OTHER); Wed, 11 Jul 2012 07:05:40 -0700 (PDT) Message-ID: <4FFD8831.4000202@dev.mellanox.co.il> Date: Wed, 11 Jul 2012 10:05:37 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Ira Weiny CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH] infiniband-diags/perfquery.c: Fix compile warning X-Gm-Message-State: ALoCoQlJCfDb5IXqePHfXcThRcEy4e6Ax71W0djqcwN+ONYLG1iFuVKy54n2Zjve9JGwXthqE5W0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org src/perfquery.c: In function main: src/perfquery.c:662: warning: integer constant is too large for long type Signed-off-by: Hal Rosenstock --- -- 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 --git a/src/perfquery.c b/src/perfquery.c index e85b14e..32dd98f 100644 --- a/src/perfquery.c +++ b/src/perfquery.c @@ -659,7 +659,7 @@ int main(int argc, char **argv) int mgmt_classes[2] = { IB_SA_CLASS, IB_PERFORMANCE_CLASS }; ib_portid_t portid = { 0 }; int mask = 0xffff; - uint64_t ext_mask = 0xffffffffffffffff; + uint64_t ext_mask = 0xffffffffffffffffULL; uint16_t cap_mask; int all_ports_loop = 0; int node_type, num_ports = 0;