Module: xenomai-2.5
Branch: master
Commit: 6969eabfc512317c2d8aee5ae48ffc70bcd14a0b
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=6969eabfc512317c2d8aee5ae48ffc70bcd14a0b

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Jan 24 23:42:06 2010 +0100

skins: fix compilation warnings

---

 include/asm-generic/Makefile.am              |    2 +-
 include/asm-generic/bits/bind.h              |    2 --
 include/asm-generic/{stacksize.h => stack.h} |    4 ++++
 src/rtdk/rt_print.c                          |    2 +-
 src/skins/common/bind.c                      |    2 +-
 src/skins/native/task.c                      |    2 +-
 src/skins/posix/thread.c                     |    4 ++--
 src/skins/psos+/task.c                       |    2 +-
 src/skins/uitron/task.c                      |    2 +-
 src/skins/vrtx/task.c                        |    2 +-
 src/skins/vxworks/taskLib.c                  |    2 +-
 src/testsuite/switchtest/switchtest.c        |    2 +-
 12 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/include/asm-generic/Makefile.am b/include/asm-generic/Makefile.am
index d93dff0..d1f17b7 100644
--- a/include/asm-generic/Makefile.am
+++ b/include/asm-generic/Makefile.am
@@ -5,7 +5,7 @@ includesub_HEADERS = \
        features.h \
        hal.h \
        pci_ids.h \
-       stacksize.h \
+       stack.h \
        syscall.h \
        system.h \
        wrappers.h
diff --git a/include/asm-generic/bits/bind.h b/include/asm-generic/bits/bind.h
index f43e096..7267e0d 100644
--- a/include/asm-generic/bits/bind.h
+++ b/include/asm-generic/bits/bind.h
@@ -37,6 +37,4 @@ xeno_bind_skin(unsigned skin_magic, const char *skin,
        return muxid;
 }
 
-void xeno_fault_stack(void);
-
 #endif /* _XENO_ASM_GENERIC_BITS_BIND_H */
diff --git a/include/asm-generic/stacksize.h b/include/asm-generic/stack.h
similarity index 90%
rename from include/asm-generic/stacksize.h
rename to include/asm-generic/stack.h
index f82f390..d171839 100644
--- a/include/asm-generic/stacksize.h
+++ b/include/asm-generic/stack.h
@@ -2,6 +2,8 @@
 #define STACKSIZE_H
 
 #include <stdint.h>
+
+#include <unistd.h>
 #include <pthread.h>
 
 #ifdef __cplusplus
@@ -23,6 +25,8 @@ static inline unsigned xeno_stacksize(unsigned size)
        return size;
 }
 
+void xeno_fault_stack(void);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
diff --git a/src/rtdk/rt_print.c b/src/rtdk/rt_print.c
index fc170d0..ac96e84 100644
--- a/src/rtdk/rt_print.c
+++ b/src/rtdk/rt_print.c
@@ -29,7 +29,7 @@
 
 #include <rtdk.h>
 #include <asm/xenomai/system.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 
 #define RT_PRINT_BUFFER_ENV            "RT_PRINT_BUFFER"
 #define RT_PRINT_DEFAULT_BUFFER                16*1024
diff --git a/src/skins/common/bind.c b/src/skins/common/bind.c
index 0717ac1..830eefe 100644
--- a/src/skins/common/bind.c
+++ b/src/skins/common/bind.c
@@ -7,7 +7,7 @@
 #include <asm/xenomai/syscall.h>
 #include <asm-generic/xenomai/bits/bind.h>
 #include <asm-generic/xenomai/bits/current.h>
-#include <asm-generic/xenomai/stacksize.h>
+#include <asm-generic/xenomai/stack.h>
 #include "sem_heap.h"
 
 static pthread_t xeno_main_tid;
diff --git a/src/skins/native/task.c b/src/skins/native/task.c
index e0b3bbd..ba04a27 100644
--- a/src/skins/native/task.c
+++ b/src/skins/native/task.c
@@ -28,7 +28,7 @@
 #include <native/task.h>
 #include <asm-generic/bits/sigshadow.h>
 #include <asm-generic/bits/current.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 #include "wrappers.h"
 
 #ifdef HAVE___THREAD
diff --git a/src/skins/posix/thread.c b/src/skins/posix/thread.c
index dcc9373..d565d52 100644
--- a/src/skins/posix/thread.c
+++ b/src/skins/posix/thread.c
@@ -28,7 +28,7 @@
 #include <posix/syscall.h>
 #include <asm-generic/bits/current.h>
 #include <asm-generic/bits/sigshadow.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 
 extern int __pse51_muxid;
 
@@ -251,7 +251,7 @@ int __wrap_pthread_create(pthread_t *tid,
        pthread_attr_t iattr;
        int inherit, err;
        pthread_t ltid;
-       unsigned stksz;
+       size_t stksz;
 
        if (!attr)
                attr = &default_attr;
diff --git a/src/skins/psos+/task.c b/src/skins/psos+/task.c
index 4325a97..7fcdd54 100644
--- a/src/skins/psos+/task.c
+++ b/src/skins/psos+/task.c
@@ -28,7 +28,7 @@
 #include <psos+/psos.h>
 #include <asm-generic/bits/sigshadow.h>
 #include <asm-generic/bits/current.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 
 extern int __psos_muxid;
 
diff --git a/src/skins/uitron/task.c b/src/skins/uitron/task.c
index ed91a09..8e184dc 100644
--- a/src/skins/uitron/task.c
+++ b/src/skins/uitron/task.c
@@ -27,7 +27,7 @@
 #include <asm/xenomai/system.h>
 #include <asm-generic/bits/sigshadow.h>
 #include <asm-generic/bits/current.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 #include <asm-generic/bits/bind.h>
 #include <nucleus/sched.h>
 #include <uitron/uitron.h>
diff --git a/src/skins/vrtx/task.c b/src/skins/vrtx/task.c
index 8b9e051..dc6ff39 100644
--- a/src/skins/vrtx/task.c
+++ b/src/skins/vrtx/task.c
@@ -31,7 +31,7 @@
 #include <vrtx/vrtx.h>
 #include <asm-generic/bits/sigshadow.h>
 #include <asm-generic/bits/current.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 #include "wrappers.h"
 
 #ifdef HAVE___THREAD
diff --git a/src/skins/vxworks/taskLib.c b/src/skins/vxworks/taskLib.c
index 6b118e7..2c65a0d 100644
--- a/src/skins/vxworks/taskLib.c
+++ b/src/skins/vxworks/taskLib.c
@@ -30,7 +30,7 @@
 #include <vxworks/vxworks.h>
 #include <asm-generic/bits/sigshadow.h>
 #include <asm-generic/bits/current.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 #include "wrappers.h"
 
 #ifdef HAVE___THREAD
diff --git a/src/testsuite/switchtest/switchtest.c 
b/src/testsuite/switchtest/switchtest.c
index b1cb728..de41b86 100644
--- a/src/testsuite/switchtest/switchtest.c
+++ b/src/testsuite/switchtest/switchtest.c
@@ -17,7 +17,7 @@
 
 #include <xeno_config.h>
 #include <asm/xenomai/fptest.h>
-#include <asm-generic/stacksize.h>
+#include <asm-generic/stack.h>
 #include <nucleus/trace.h>
 #include <rtdm/rttesting.h>
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to