[rtems commit] stackchk: Remove dead code

Sebastian Huber sebh at rtems.org
Fri Jun 22 04:30:43 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun 20 11:13:19 2018 +0200

stackchk: Remove dead code

Update #3459.

---

 cpukit/include/rtems/stackchk.h |  4 ++--
 cpukit/libmisc/stackchk/check.c | 24 ------------------------
 2 files changed, 2 insertions(+), 26 deletions(-)

diff --git a/cpukit/include/rtems/stackchk.h b/cpukit/include/rtems/stackchk.h
index 16fc4f9..eb81bb8 100644
--- a/cpukit/include/rtems/stackchk.h
+++ b/cpukit/include/rtems/stackchk.h
@@ -127,8 +127,8 @@ void rtems_stack_checker_switch_extension(
   rtems_stack_checker_switch_extension,        /* task_switch  */ \
   0,                                           /* task_begin   */ \
   0,                                           /* task_exitted */ \
-  0 /* rtems_stack_checker_fatal_extension */, /* fatal        */ \
-  0,                                           /* terminate    */ \
+  0,                                           /* fatal        */ \
+  0                                            /* terminate    */ \
 }
 
 #ifdef __cplusplus
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index d19fef4..4643e76 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -27,15 +27,6 @@
 #include <rtems.h>
 #include <inttypes.h>
 
-/*
- * The stack dump information may be printed by a "fatal" extension.
- * Fatal extensions only get called via rtems_fatal_error_occurred()
- * and not when rtems_shutdown_executive() is called.
- * When that happens, this #define should be deleted and all the code
- * it marks.
- */
-#define DONT_USE_FATAL_EXTENSION
-
 #include <string.h>
 #include <stdlib.h>
 
@@ -426,21 +417,6 @@ static bool Stack_check_Dump_threads_usage(
 }
 
 /*
- *  rtems_stack_checker_fatal_extension
- */
-#ifndef DONT_USE_FATAL_EXTENSION
-  void rtems_stack_checker_fatal_extension(
-    Internal_errors_Source  source,
-    bool                    always_set_to_false,
-    uint32_t                status
-  )
-  {
-    if (status == 0)
-      rtems_stack_checker_report_usage();
-  }
-#endif
-
-/*
  *  rtems_stack_checker_report_usage
  */
 




More information about the vc mailing list