* [PATCH 4/5] include/linux/sem.h: make sysv_sem empty if SYSVIPC is disabled
@ 2011-10-15 13:21 Manfred Spraul
0 siblings, 0 replies; only message in thread
From: Manfred Spraul @ 2011-10-15 13:21 UTC (permalink / raw)
To: LKML, Andrew Morton
Cc: Thomas Gleixner, Mike Galbraith, Peter Zijlstra, Manfred Spraul
For the sysvsem undo, each task struct contains a sysv_sem structure
with a pointer to the undo information.
This pointer is only necessary if sysvipc is enabled - thus
the pointer can be made conditional on CONFIG_SYSVIPC.
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
---
include/linux/sem.h | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/include/linux/sem.h b/include/linux/sem.h
index 4648426..10d6b22 100644
--- a/include/linux/sem.h
+++ b/include/linux/sem.h
@@ -96,16 +96,21 @@ struct sem_array {
int complex_count; /* pending complex operations */
};
+#ifdef CONFIG_SYSVIPC
+
struct sysv_sem {
struct sem_undo_list *undo_list;
};
-#ifdef CONFIG_SYSVIPC
-
extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
extern void exit_sem(struct task_struct *tsk);
#else
+
+struct sysv_sem {
+ /* empty */
+};
+
static inline int copy_semundo(unsigned long clone_flags, struct task_struct *tsk)
{
return 0;
--
1.7.6.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-15 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-15 13:21 [PATCH 4/5] include/linux/sem.h: make sysv_sem empty if SYSVIPC is disabled Manfred Spraul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®