All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8
@ 2009-09-30 23:21 Sean Hefty
       [not found] ` <B5538B5C830E456484477BD3BAFA430B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Sean Hefty @ 2009-09-30 23:21 UTC (permalink / raw)
  To: linux-rdma, 'Sasha Khapyorsky', Hefty, Sean

This fixes a build warning / error on windows.

Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---

 libibmad/src/rpc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libibmad/src/rpc.c b/libibmad/src/rpc.c
index 026575d..1ea9a52 100644
--- a/libibmad/src/rpc.c
+++ b/libibmad/src/rpc.c
@@ -195,7 +195,7 @@ static int redirect_port(ib_portid_t * port, uint8_t * mad)
 
 	port->qp = mad_get_field(mad, 64, IB_CPI_REDIRECT_QP_F);
 	port->qkey = mad_get_field(mad, 64, IB_CPI_REDIRECT_QKEY_F);
-	port->sl = mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F);
+	port->sl = (uint8_t) mad_get_field(mad, 64, IB_CPI_REDIRECT_SL_F);
 
 	/* TODO: Reverse map redirection P_Key to P_Key index */
 



--
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] 4+ messages in thread

* [PATCH 2/2] libibmad/resolve: add include to pick up inet_pton
       [not found] ` <B5538B5C830E456484477BD3BAFA430B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
@ 2009-09-30 23:22   ` Sean Hefty
       [not found]     ` <B3D9536B45F044569239C2EF308D6BBD-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
  2009-10-01 17:59   ` [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8 Sasha Khapyorsky
  1 sibling, 1 reply; 4+ messages in thread
From: Sean Hefty @ 2009-09-30 23:22 UTC (permalink / raw)
  To: Hefty, Sean, linux-rdma, 'Sasha Khapyorsky'

Windows needs to specifically pull in inet_pton from inet.h.

Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---

 libibmad/src/resolve.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libibmad/src/resolve.c b/libibmad/src/resolve.c
index 9438fc1..3e07e8a 100644
--- a/libibmad/src/resolve.c
+++ b/libibmad/src/resolve.c
@@ -39,6 +39,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <arpa/inet.h>
 
 #include <infiniband/umad.h>
 #include <infiniband/mad.h>



--
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] 4+ messages in thread

* Re: [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8
       [not found] ` <B5538B5C830E456484477BD3BAFA430B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
  2009-09-30 23:22   ` [PATCH 2/2] libibmad/resolve: add include to pick up inet_pton Sean Hefty
@ 2009-10-01 17:59   ` Sasha Khapyorsky
  1 sibling, 0 replies; 4+ messages in thread
From: Sasha Khapyorsky @ 2009-10-01 17:59 UTC (permalink / raw)
  To: Sean Hefty; +Cc: linux-rdma

On 16:21 Wed 30 Sep     , Sean Hefty wrote:
> This fixes a build warning / error on windows.
> 
> Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Applied. Thanks.

Sasha
--
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] 4+ messages in thread

* Re: [PATCH 2/2] libibmad/resolve: add include to pick up inet_pton
       [not found]     ` <B3D9536B45F044569239C2EF308D6BBD-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
@ 2009-10-01 18:00       ` Sasha Khapyorsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sasha Khapyorsky @ 2009-10-01 18:00 UTC (permalink / raw)
  To: Sean Hefty; +Cc: linux-rdma

On 16:22 Wed 30 Sep     , Sean Hefty wrote:
> Windows needs to specifically pull in inet_pton from inet.h.
> 
> Signed-off-by: Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>

Applied. Thanks.

Sasha
--
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] 4+ messages in thread

end of thread, other threads:[~2009-10-01 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-30 23:21 [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8 Sean Hefty
     [not found] ` <B5538B5C830E456484477BD3BAFA430B-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-09-30 23:22   ` [PATCH 2/2] libibmad/resolve: add include to pick up inet_pton Sean Hefty
     [not found]     ` <B3D9536B45F044569239C2EF308D6BBD-Zpru7NauK7drdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2009-10-01 18:00       ` Sasha Khapyorsky
2009-10-01 17:59   ` [PATCH 1/2] libibmad/rpc: fix build warning casting from uint32 to uint8 Sasha Khapyorsky

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.