Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=215d06780d13fd7de629b02b61b7b7bf88ce5039 Commit: 215d06780d13fd7de629b02b61b7b7bf88ce5039 Parent: 60c9b2746f589b0b809582b0471cf30ad3ae439f Author: Geert Uytterhoeven <[EMAIL PROTECTED]> AuthorDate: Tue May 8 11:37:26 2007 +0200 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Tue May 8 12:03:19 2007 -0700
Fix sunrpc warning noise Commit c5a4dd8b7c15927a8fbff83171b57cad675a79b9 introduced the following compiler warnings: net/sunrpc/sched.c:766: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t' net/sunrpc/sched.c:785: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'size_t' - Use %zu to format size_t - Kill 2 useless casts Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- net/sunrpc/sched.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 4a53e94..9901451 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c @@ -763,9 +763,9 @@ void *rpc_malloc(struct rpc_task *task, size_t size) else buf = kmalloc(size, gfp); *buf = size; - dprintk("RPC: %5u allocated buffer of size %u at %p\n", + dprintk("RPC: %5u allocated buffer of size %zu at %p\n", task->tk_pid, size, buf); - return (void *) ++buf; + return ++buf; } /** @@ -775,14 +775,14 @@ void *rpc_malloc(struct rpc_task *task, size_t size) */ void rpc_free(void *buffer) { - size_t size, *buf = (size_t *) buffer; + size_t size, *buf = buffer; if (!buffer) return; size = *buf; buf--; - dprintk("RPC: freeing buffer of size %u at %p\n", + dprintk("RPC: freeing buffer of size %zu at %p\n", size, buf); if (size <= RPC_BUFFER_MAXSIZE) mempool_free(buf, rpc_buffer_mempool); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html