* [PATCH] infiniband-diags/perfquery.c: Fix compile warning
@ 2012-07-11 14:05 Hal Rosenstock
[not found] ` <4FFD8831.4000202-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2012-07-11 14:05 UTC (permalink / raw)
To: Ira Weiny; +Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
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;
--
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
* Re: [PATCH] infiniband-diags/perfquery.c: Fix compile warning
[not found] ` <4FFD8831.4000202-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2012-07-11 17:10 ` Ira Weiny
0 siblings, 0 replies; 2+ messages in thread
From: Ira Weiny @ 2012-07-11 17:10 UTC (permalink / raw)
To: Hal Rosenstock
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
On Wed, 11 Jul 2012 10:05:37 -0400
Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org> wrote:
>
> src/perfquery.c: In function main:
> src/perfquery.c:662: warning: integer constant is too large for long type
>
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Thanks, applied.
Ira
> ---
> 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;
> --
> 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
--
Ira Weiny
Member of Technical Staff
Lawrence Livermore National Lab
925-423-8008
weiny2-i2BcT+NCU+M@public.gmane.org
--
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:[~2012-07-11 17:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-11 14:05 [PATCH] infiniband-diags/perfquery.c: Fix compile warning Hal Rosenstock
[not found] ` <4FFD8831.4000202-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-07-11 17:10 ` Ira Weiny
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.