[openib-general] [PATCH] SDP warnings on x86_64

Grant Grundler iod00d at hp.com
Mon Feb 14 12:36:38 PST 2005


On Mon, Feb 14, 2005 at 11:29:44AM -0800, Libor Michalek wrote:
>   Good idea, in three places I got rid of the cast, and then used an inline
> in two other places. Here's the updated patch.

cool - thanks.  Can these two also be changed?

> Index: infiniband/ulp/sdp/sdp_conn.c
> ===================================================================
> --- infiniband/ulp/sdp/sdp_conn.c	(revision 1778)
> +++ infiniband/ulp/sdp/sdp_conn.c	(working copy)
> @@ -1085,7 +1085,8 @@
>  		conn->send_cq = ib_create_cq(conn->ca,
>  					     sdp_cq_event_handler,
>  					     NULL,
> -					     (void *)conn->hashent,
> +					     (void *)
> +					     (unsigned long)conn->hashent,
>  					     conn->send_cq_size);
>  		if (IS_ERR(conn->send_cq)) {
>  
> @@ -1110,7 +1111,8 @@
>  		conn->recv_cq = ib_create_cq(conn->ca,
>  					     sdp_cq_event_handler,
>  					     NULL,
> -					     (void *)conn->hashent,
> +					     (void *)
> +					     (unsigned long)conn->hashent,
>  					     conn->recv_cq_size);
>  
>  		if (IS_ERR(conn->recv_cq)) {

thanks,
grant



More information about the general mailing list