[openib-general] [PATCH] SDP: priority is now unsigned int
Tom Duffy
tduffy at sun.com
Mon Jul 25 14:25:45 PDT 2005
sk_alloc() takes an "unsigned int __nocast priority" instead of an int.
This was changed in 2.6.13-rc3.
Signed-off-by: Tom Duffy <tduffy at sun.com>
Index: linux-2.6.13-rc3-openib/drivers/infiniband/ulp/sdp/sdp_proto.h
===================================================================
--- linux-2.6.13-rc3-openib/drivers/infiniband/ulp/sdp/sdp_proto.h (revision 2909)
+++ linux-2.6.13-rc3-openib/drivers/infiniband/ulp/sdp/sdp_proto.h (working copy)
@@ -260,7 +260,7 @@ int sdp_proc_dump_device(char *buffer,
struct sdp_sock *sdp_conn_table_lookup(s32 entry);
-struct sdp_sock *sdp_conn_alloc(int priority);
+struct sdp_sock *sdp_conn_alloc(unsigned int priority);
int sdp_conn_alloc_ib(struct sdp_sock *conn,
struct ib_device *device,
Index: linux-2.6.13-rc3-openib/drivers/infiniband/ulp/sdp/sdp_conn.c
===================================================================
--- linux-2.6.13-rc3-openib/drivers/infiniband/ulp/sdp/sdp_conn.c (revision 2909)
+++ linux-2.6.13-rc3-openib/drivers/infiniband/ulp/sdp/sdp_conn.c (working copy)
@@ -1132,7 +1130,7 @@ extern struct proto sdp_sk_proto;
/*
* sdp_conn_alloc - allocate a new socket, and init.
*/
-struct sdp_sock *sdp_conn_alloc(int priority)
+struct sdp_sock *sdp_conn_alloc(unsigned int priority)
{
struct sdp_sock *conn;
struct sock *sk;
@@ -1140,7 +1138,7 @@ struct sdp_sock *sdp_conn_alloc(int prio
sk = sk_alloc(dev_root_s.proto, priority, &sdp_sk_proto, 1);
if (!sk) {
- sdp_dbg_warn(NULL, "socket alloc error for protocol. <%d:%d>",
+ sdp_dbg_warn(NULL, "socket alloc error for protocol. <%d:%u>",
dev_root_s.proto, priority);
return NULL;
}
More information about the general
mailing list