Skip to content

Commit

Permalink
[RPC]: fix sparse gfp nocast warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and David S. Miller committed Oct 5, 2005
1 parent 00fa023 commit dd13a28
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/rxrpc/call.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion include/rxrpc/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion net/rxrpc/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion net/sunrpc/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dd13a28

Please sign in to comment.