summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-11 06:49:22 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-11 06:49:22 +0000
commit436ef337de329a0fba7f597a011169597cec08e5 (patch)
treeafe4e8b40e11c14df7f0b7a6ecd6d1ab3084ffa3
parentd71462b4eb38efbcda6d429a0a61749d7a89e195 (diff)
2011-12-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmtests_empty_function.h: New. * support/src/tmtests_empty_function.c, support/src/tmtests_support.c: Include "tmtests_empty_function.h". Remove local decls (Missing prototypes).
-rw-r--r--testsuites/support/include/tmtests_empty_function.h25
-rw-r--r--testsuites/support/src/tmtests_empty_function.c2
-rw-r--r--testsuites/support/src/tmtests_support.c6
3 files changed, 27 insertions, 6 deletions
diff --git a/testsuites/support/include/tmtests_empty_function.h b/testsuites/support/include/tmtests_empty_function.h
new file mode 100644
index 0000000000..766b266bfd
--- /dev/null
+++ b/testsuites/support/include/tmtests_empty_function.h
@@ -0,0 +1,25 @@
+/*
+ * Prototypes for RTEMS tmtests_empty_function.c.
+ *
+ * COPYRIGHT (c) 2011, Ralf Corsépius, Ulm/Germany.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
+ */
+
+#ifndef _TMTESTS_EMPTY_FUNCTION_H
+#define _TMTESTS_EMPTY_FUNCTION_H
+
+#include <rtems/rtems/status.h>
+
+extern rtems_status_code benchmark_timer_empty_function( void );
+
+extern void benchmark_timer_empty_operation(
+ int iteration,
+ void *argument
+);
+
+#endif /* _TMTESTS_EMPTY_FUNCTION_H */
diff --git a/testsuites/support/src/tmtests_empty_function.c b/testsuites/support/src/tmtests_empty_function.c
index 9b4ad95b5a..6b3ba3c6b6 100644
--- a/testsuites/support/src/tmtests_empty_function.c
+++ b/testsuites/support/src/tmtests_empty_function.c
@@ -18,7 +18,7 @@
#include <rtems.h>
-rtems_status_code benchmark_timer_empty_function( void );
+#include "tmtests_empty_function.h"
rtems_status_code benchmark_timer_empty_function( void )
{
diff --git a/testsuites/support/src/tmtests_support.c b/testsuites/support/src/tmtests_support.c
index c3208427ec..4521b81d57 100644
--- a/testsuites/support/src/tmtests_support.c
+++ b/testsuites/support/src/tmtests_support.c
@@ -19,11 +19,7 @@
#include <rtems/timerdrv.h>
#include "test_support.h"
#include "timesys.h"
-
-extern void benchmark_timer_empty_operation(
- int iteration,
- void *argument
-);
+#include "tmtests_empty_function.h"
void rtems_time_test_measure_operation(
const char *description,