]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ipc-mqueue-update-maximums-for-the-mqueue-subsystem-checkpatch-fixes
authorAndrew Morton <akpm@google.com>
Tue, 8 Nov 2011 00:20:01 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 14 Nov 2011 02:58:28 +0000 (13:58 +1100)
Cc: Amerigo Wang <amwang@redhat.com>
ERROR: Macros with complex values should be enclosed in parenthesis
#87: FILE: include/linux/ipc_namespace.h:126:
+#define DFLT_MSGSIZEMAX 1024*1024

ERROR: Macros with complex values should be enclosed in parenthesis
#88: FILE: include/linux/ipc_namespace.h:127:
+#define HARD_MSGSIZEMAX      16*1024*1024

total: 2 errors, 0 warnings, 75 lines checked

./patches/ipc-mqueue-update-maximums-for-the-mqueue-subsystem.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: Doug Ledford <dledford@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/ipc_namespace.h

index ceeef6882c098d17f1e63a11a3aad0ed884570a5..e2bac00eb5a353e7603dd9c7caf69e1b0fe17828 100644 (file)
@@ -123,8 +123,8 @@ extern int mq_init_ns(struct ipc_namespace *ns);
 #define HARD_MSGMAX                65536
 #define MIN_MSGSIZEMAX               128
 #define DFLT_MSGSIZE                8192U
-#define DFLT_MSGSIZEMAX                1024*1024
-#define HARD_MSGSIZEMAX             16*1024*1024
+#define DFLT_MSGSIZEMAX                (1024*1024)
+#define HARD_MSGSIZEMAX             (16*1024*1024)
 #else
 static inline int mq_init_ns(struct ipc_namespace *ns) { return 0; }
 #endif