[rtems commit] libmisc: Simplify <rtems/stackchk.h>

Sebastian Huber sebh at rtems.org
Fri Jun 26 09:23:24 UTC 2015


Module:    rtems
Branch:    master
Commit:    5f31bbe1054fb070bd426eca3168ab4ba051b28f
Changeset: http://git.rtems.org/rtems/commit/?id=5f31bbe1054fb070bd426eca3168ab4ba051b28f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 25 14:22:31 2015 +0200

libmisc: Simplify <rtems/stackchk.h>

Drop the <rtems/score/percpu.h> include since this file exposes a lot of
implementation details.

---

 cpukit/libmisc/stackchk/check.c     | 1 +
 cpukit/libmisc/stackchk/stackchk.h  | 2 +-
 testsuites/libtests/stackchk/blow.c | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index 27fe1aa..dd64968 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -41,6 +41,7 @@
 
 #include <rtems/bspIo.h>
 #include <rtems/stackchk.h>
+#include <rtems/score/percpu.h>
 #include "internal.h"
 
 /*
diff --git a/cpukit/libmisc/stackchk/stackchk.h b/cpukit/libmisc/stackchk/stackchk.h
index 823c8df..b824057 100644
--- a/cpukit/libmisc/stackchk/stackchk.h
+++ b/cpukit/libmisc/stackchk/stackchk.h
@@ -24,7 +24,7 @@
 
 #include <stdbool.h> /* bool */
 
-#include <rtems/score/percpu.h> /* Thread_Control */
+#include <rtems/score/thread.h> /* Thread_Control */
 #include <rtems/bspIo.h>
 
 /**
diff --git a/testsuites/libtests/stackchk/blow.c b/testsuites/libtests/stackchk/blow.c
index 6a378eb..e424568 100644
--- a/testsuites/libtests/stackchk/blow.c
+++ b/testsuites/libtests/stackchk/blow.c
@@ -17,6 +17,7 @@
 
 #include <rtems.h>
 #include <rtems/stackchk.h>
+#include <rtems/score/percpu.h>
 
 /* forward declarations to avoid warnings */
 void b(void);



More information about the vc mailing list