Skip to contentSkip to conversation

infiniband-diags/perfquery.c: Fix compile warning

PATCH Applied Hal Rosenstock 2 participants 2 messages Jul 11, 2012 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infiniband-diags/perfquery.c: Fix compile warning

src/perfquery.c: In function main:
src/perfquery.c:662: warning: integer constant is too large for long type

---

src/perfquery.c +1 -1
index e85b14e..32dd98f 100644
@@ -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;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4FFD8831.4000202-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw
Quoted 5 lines · On Wed, 11 Jul 2012 10:05:37 -0400 Hal Rosenstock…

src/perfquery.c: In function main:
src/perfquery.c:662: warning: integer constant is too large for long type

Thanks, applied.
Ira

Quoted 18 lines

---

src/perfquery.c +1 -2
index e85b14e..32dd98f 100644
@@ -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;
--

To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 9 lines
Ira Weiny
Member of Technical Staff
Lawrence Livermore National Lab
925-423-8008
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html