Move MQUEUE_MAGIC from ipc/mqueue.c to include/linux/ipc_namespace.h so it can be shared by code outside of ipc/mqueue.c without duplicating the constant. Signed-off-by: Oxana Kharitonova --- include/linux/ipc_namespace.h | 2 ++ ipc/mqueue.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/ipc_namespace.h b/include/linux/ipc_namespace.h index 12faca29bbb9..8a15ffe38e9a 100644 --- a/include/linux/ipc_namespace.h +++ b/include/linux/ipc_namespace.h @@ -15,6 +15,8 @@ struct user_namespace; +#define MQUEUE_MAGIC 0x19800202 + struct ipc_ids { int in_use; unsigned short seq; diff --git a/ipc/mqueue.c b/ipc/mqueue.c index d1dd36a651b0..0f00e4efcb60 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c @@ -47,7 +47,6 @@ struct mqueue_fs_context { bool newns; /* Set if newly created ipc namespace */ }; -#define MQUEUE_MAGIC 0x19800202 #define DIRENT_SIZE 20 #define FILENT_SIZE 80 -- 2.43.0