Module: xenomai-forge
Branch: next
Commit: 40938c0d3e99a8027d080ef3ea7110f75f363f63
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=40938c0d3e99a8027d080ef3ea7110f75f363f63

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jul 17 17:40:15 2014 +0200

cobalt/kernel: fix build with CONFIG_PROC_FS disabled

---

 include/cobalt/kernel/sched.h |    1 +
 kernel/cobalt/clock.c         |    4 ++++
 kernel/cobalt/posix/timerfd.c |    1 +
 kernel/cobalt/rtdm/fd.c       |    1 +
 4 files changed, 7 insertions(+)

diff --git a/include/cobalt/kernel/sched.h b/include/cobalt/kernel/sched.h
index c04c553..4350ecd 100644
--- a/include/cobalt/kernel/sched.h
+++ b/include/cobalt/kernel/sched.h
@@ -20,6 +20,7 @@
 #define _COBALT_KERNEL_SCHED_H
 
 #include <linux/percpu.h>
+#include <cobalt/kernel/lock.h>
 #include <cobalt/kernel/thread.h>
 #include <cobalt/kernel/schedqueue.h>
 #include <cobalt/kernel/sched-tp.h>
diff --git a/kernel/cobalt/clock.c b/kernel/cobalt/clock.c
index 847ca9f..8807b31 100644
--- a/kernel/cobalt/clock.c
+++ b/kernel/cobalt/clock.c
@@ -467,6 +467,10 @@ void cleanup_timerlist_root(void)
 
 #else  /* !CONFIG_XENO_OPT_STATS */
 
+static inline void init_timerlist_root(void) { }
+
+static inline void cleanup_timerlist_root(void) { }
+
 static inline void init_timerlist_proc(struct xnclock *clock) { }
 
 static inline void cleanup_timerlist_proc(struct xnclock *clock) { }
diff --git a/kernel/cobalt/posix/timerfd.c b/kernel/cobalt/posix/timerfd.c
index f76c8d1..33a10ed 100644
--- a/kernel/cobalt/posix/timerfd.c
+++ b/kernel/cobalt/posix/timerfd.c
@@ -17,6 +17,7 @@
  */
 
 #include <linux/timerfd.h>
+#include <linux/err.h>
 #include <cobalt/kernel/timer.h>
 #include <cobalt/kernel/select.h>
 #include <rtdm/fd.h>
diff --git a/kernel/cobalt/rtdm/fd.c b/kernel/cobalt/rtdm/fd.c
index 4ac2d60..abbc9a2 100644
--- a/kernel/cobalt/rtdm/fd.c
+++ b/kernel/cobalt/rtdm/fd.c
@@ -22,6 +22,7 @@
 #include <linux/slab.h>
 #include <linux/mm.h>
 #include <linux/kthread.h>
+#include <linux/semaphore.h>
 #include <cobalt/kernel/registry.h>
 #include <cobalt/kernel/lock.h>
 #include <cobalt/kernel/ppd.h>


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to