]> 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>
Wed, 5 Oct 2011 00:42:33 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 11 Oct 2011 08:43:32 +0000 (19:43 +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