Skip to content

Commit

Permalink
ipc: Move IPCMNI from include/ipc.h into ipc/util.h
Browse files Browse the repository at this point in the history
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" <[email protected]>
  • Loading branch information
ebiederm committed Mar 24, 2018
1 parent 34b56df commit f83a396
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions include/linux/ipc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions ipc/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f83a396

Please sign in to comment.