[LITMUS^RT] [PATCH 1/5] litmus: fix compiler warning in sched_plugin.h

Manohar Vanga mvanga at mpi-sws.org
Thu Oct 4 12:31:04 CEST 2012


This patch fixes the compiler warning about struct litmus_locking
being defined in the parameter list when CONFIG_LITMUS_LOCKING is
not set.

Signed-off-by: Manohar Vanga <mvanga at mpi-sws.org>
---
 include/litmus/sched_plugin.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h
index 6e7cabd..1546ab7 100644
--- a/include/litmus/sched_plugin.h
+++ b/include/litmus/sched_plugin.h
@@ -53,10 +53,12 @@ typedef void (*task_block_t)  (struct task_struct *task);
  */
 typedef void (*task_exit_t)    (struct task_struct *);
 
+#ifdef CONFIG_LITMUS_LOCKING
 /* Called when the current task attempts to create a new lock of a given
  * protocol type. */
 typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type,
 				 void* __user config);
+#endif
 
 
 /********************* sys call backends  ********************/
-- 
1.7.2.5





More information about the litmus-dev mailing list