Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3bd080e4 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files
parent a4691dea
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -63,8 +63,6 @@ struct ipc_namespace {
};
};


extern struct ipc_namespace init_ipc_ns;
extern struct ipc_namespace init_ipc_ns;
extern atomic_t nr_ipc_ns;

extern spinlock_t mq_lock;
extern spinlock_t mq_lock;


#ifdef CONFIG_SYSVIPC
#ifdef CONFIG_SYSVIPC
+0 −2
Original line number Original line Diff line number Diff line
@@ -37,8 +37,6 @@ struct ipc_namespace init_ipc_ns = {
#endif
#endif
};
};


atomic_t nr_ipc_ns = ATOMIC_INIT(1);

struct msg_msgseg {
struct msg_msgseg {
	struct msg_msgseg *next;
	struct msg_msgseg *next;
	/* the next part of the message follows immediately */
	/* the next part of the message follows immediately */
+0 −2
Original line number Original line Diff line number Diff line
@@ -43,7 +43,6 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
		kfree(ns);
		kfree(ns);
		return ERR_PTR(err);
		return ERR_PTR(err);
	}
	}
	atomic_inc(&nr_ipc_ns);


	sem_init_ns(ns);
	sem_init_ns(ns);
	msg_init_ns(ns);
	msg_init_ns(ns);
@@ -96,7 +95,6 @@ static void free_ipc_ns(struct ipc_namespace *ns)
	sem_exit_ns(ns);
	sem_exit_ns(ns);
	msg_exit_ns(ns);
	msg_exit_ns(ns);
	shm_exit_ns(ns);
	shm_exit_ns(ns);
	atomic_dec(&nr_ipc_ns);


	put_user_ns(ns->user_ns);
	put_user_ns(ns->user_ns);
	ns_free_inum(&ns->ns);
	ns_free_inum(&ns->ns);