Skip to content

Commit f83a396

Browse files
committed
ipc: Move IPCMNI from include/ipc.h into ipc/util.h
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]>
1 parent 34b56df commit f83a396

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/linux/ipc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include <uapi/linux/ipc.h>
99
#include <linux/refcount.h>
1010

11-
#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
12-
1311
/* used by in-kernel data structures */
1412
struct kern_ipc_perm {
1513
spinlock_t lock;

ipc/util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/err.h>
1616
#include <linux/ipc_namespace.h>
1717

18+
#define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
1819
#define SEQ_MULTIPLIER (IPCMNI)
1920

2021
int sem_init(void);

0 commit comments

Comments
 (0)