aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManohar Vanga <mvanga@mpi-sws.org>2012-10-03 16:17:51 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-11-27 13:50:16 -0500
commit635073dd057be83073a36cf0287a08a716d37784 (patch)
tree8f1bed929d70c89d6dfbf5be353ef030e6b1c62f
parentf0785d83a7ecdbe7f634fca6e1fd01beb9383e40 (diff)
litmus: fix compiler warning in sched_plugin.h
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@mpi-sws.org>
-rw-r--r--include/litmus/sched_plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/litmus/sched_plugin.h b/include/litmus/sched_plugin.h
index 6e7cabdddae..1546ab7f1d6 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);
53 */ 53 */
54typedef void (*task_exit_t) (struct task_struct *); 54typedef void (*task_exit_t) (struct task_struct *);
55 55
56#ifdef CONFIG_LITMUS_LOCKING
56/* Called when the current task attempts to create a new lock of a given 57/* Called when the current task attempts to create a new lock of a given
57 * protocol type. */ 58 * protocol type. */
58typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type, 59typedef long (*allocate_lock_t) (struct litmus_lock **lock, int type,
59 void* __user config); 60 void* __user config);
61#endif
60 62
61 63
62/********************* sys call backends ********************/ 64/********************* sys call backends ********************/