ipc: Move IPCMNI from include/ipc.h into ipc/util.h
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Mar 2018 02:45:50 +0000 (21:45 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 24 Mar 2018 16:25:36 +0000 (11:25 -0500)
The definition IPCMNI is only used in ipc/util.h and ipc/util.c.  So
there is no reason to keep it in a header file that the whole kernel
can see.  Move it into util.h to simplify future maintenance.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/ipc.h
ipc/util.h

index 821b2f2609926636a6b88c5e25cb23ecc8f92806..6cc2df7f7ac949e72a59821ae9d25ce529371213 100644 (file)
@@ -8,8 +8,6 @@
 #include <uapi/linux/ipc.h>
 #include <linux/refcount.h>
 
-#define IPCMNI 32768  /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
-
 /* used by in-kernel data structures */
 struct kern_ipc_perm {
        spinlock_t      lock;
index 89b8ec176fc4c41aae00360f08a833532903577a..959c10eb9cc112d4cac87efc5713d1a467797ef8 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/err.h>
 #include <linux/ipc_namespace.h>
 
+#define IPCMNI 32768  /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
 #define SEQ_MULTIPLIER (IPCMNI)
 
 int sem_init(void);