From: Andrew Morton Date: Fri, 9 Nov 2012 03:05:06 +0000 (+1100) Subject: ipc-message-queue-receive-cleanup-checkpatch-fixes X-Git-Tag: next-20121112~5^2~41 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cd04d0187552ae1b5850d01e9f737203428436af;p=karo-tx-linux.git ipc-message-queue-receive-cleanup-checkpatch-fixes WARNING: line over 80 characters #33: FILE: include/linux/msg.h:39: + long (*msg_fill)(void __user *, struct msg_msg *, size_t )); ERROR: space prohibited before that close parenthesis ')' #33: FILE: include/linux/msg.h:39: + long (*msg_fill)(void __user *, struct msg_msg *, size_t )); WARNING: line over 80 characters #94: FILE: ipc/compat.c:368: + return do_msgrcv(first, uptr, second, msgtyp, third, compat_do_msg_fill); ERROR: space prohibited before that close parenthesis ')' #142: FILE: ipc/msg.c:774: + long (*msg_handler)(void __user *, struct msg_msg *, size_t )) total: 2 errors, 2 warnings, 165 lines checked ./patches/ipc-message-queue-receive-cleanup.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Stanislav Kinsbursky Signed-off-by: Andrew Morton --- diff --git a/include/linux/msg.h b/include/linux/msg.h index f38edba4de6d..fc5743a554e6 100644 --- a/include/linux/msg.h +++ b/include/linux/msg.h @@ -36,6 +36,6 @@ extern long do_msgsnd(int msqid, long mtype, void __user *mtext, size_t msgsz, int msgflg); extern long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg, - long (*msg_fill)(void __user *, struct msg_msg *, size_t )); + long (*msg_fill)(void __user *, struct msg_msg *, size_t)); #endif /* _LINUX_MSG_H */ diff --git a/ipc/msg.c b/ipc/msg.c index 532ebc3e3cfe..cefc24f46e3e 100644 --- a/ipc/msg.c +++ b/ipc/msg.c @@ -771,7 +771,7 @@ static long do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, int msgflg, - long (*msg_handler)(void __user *, struct msg_msg *, size_t )) + long (*msg_handler)(void __user *, struct msg_msg *, size_t)) { struct msg_queue *msq; struct msg_msg *msg;