[RPC]: fix sparse gfp nocast warnings
authorRandy Dunlap <rdunlap@xenotime.net>
Wed, 5 Oct 2005 05:44:45 +0000 (22:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Oct 2005 05:44:45 +0000 (22:44 -0700)
Fix nocast sparse warnings:
net/rxrpc/call.c:2013:25: warning: implicit cast to nocast type
net/rxrpc/connection.c:538:46: warning: implicit cast to nocast type
net/sunrpc/sched.c:730:36: warning: implicit cast to nocast type
net/sunrpc/sched.c:734:56: warning: implicit cast to nocast type

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/rxrpc/call.h
include/rxrpc/message.h
net/rxrpc/call.c
net/rxrpc/connection.c
net/sunrpc/sched.c

index f48f27e9e0ab26397ab396d49df3d25918a175d2..8118731e7d96108c0badbf195df5184e233f8865 100644 (file)
@@ -203,7 +203,7 @@ extern int rxrpc_call_write_data(struct rxrpc_call *call,
                                 size_t sioc,
                                 struct kvec *siov,
                                 uint8_t rxhdr_flags,
-                                int alloc_flags,
+                                unsigned int __nocast alloc_flags,
                                 int dup_data,
                                 size_t *size_sent);
 
index 3a59df6870b27256287b62c168667d8938aec7dd..983d9f9eee1a8bbdcccf01405cb40f03abbd6e99 100644 (file)
@@ -63,7 +63,7 @@ extern int rxrpc_conn_newmsg(struct rxrpc_connection *conn,
                             uint8_t type,
                             int count,
                             struct kvec *diov,
-                            int alloc_flags,
+                            unsigned int __nocast alloc_flags,
                             struct rxrpc_message **_msg);
 
 extern int rxrpc_conn_sendmsg(struct rxrpc_connection *conn, struct rxrpc_message *msg);
index 5cfd4cadee424fedbaa750d3649072a09335c98b..86f77705263389b4347ca79cc032f435973005cd 100644 (file)
@@ -1923,7 +1923,7 @@ int rxrpc_call_write_data(struct rxrpc_call *call,
                          size_t sioc,
                          struct kvec *siov,
                          u8 rxhdr_flags,
-                         int alloc_flags,
+                         unsigned int __nocast alloc_flags,
                          int dup_data,
                          size_t *size_sent)
 {
index 61463c74f8cc8998ad727fe1adf9fa3ae4af9d37..be4b2be58956a775c16a669c0a4af5c07f8aafaa 100644 (file)
@@ -522,7 +522,7 @@ int rxrpc_conn_newmsg(struct rxrpc_connection *conn,
                      uint8_t type,
                      int dcount,
                      struct kvec diov[],
-                     int alloc_flags,
+                     unsigned int __nocast alloc_flags,
                      struct rxrpc_message **_msg)
 {
        struct rxrpc_message *msg;
index f3104035e35d446828a0d29b92e947dfb7dfdcc5..ade730eaf401a9c888e497d718bf94a3dc59e22d 100644 (file)
@@ -719,7 +719,7 @@ static void rpc_async_schedule(void *arg)
 void *
 rpc_malloc(struct rpc_task *task, size_t size)
 {
-       int     gfp;
+       unsigned int __nocast   gfp;
 
        if (task->tk_flags & RPC_TASK_SWAPPER)
                gfp = GFP_ATOMIC;