[rtems commit] sptests/spregion_err01: Reduce memory demands

Sebastian Huber sebh at rtems.org
Tue Feb 11 07:05:00 UTC 2020


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb 11 06:44:16 2020 +0100

sptests/spregion_err01: Reduce memory demands

Make functions and data static.

---

 testsuites/sptests/spregion_err01/init.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/testsuites/sptests/spregion_err01/init.c b/testsuites/sptests/spregion_err01/init.c
index 6dd8db6..20f297c 100644
--- a/testsuites/sptests/spregion_err01/init.c
+++ b/testsuites/sptests/spregion_err01/init.c
@@ -16,18 +16,15 @@
 
 const char rtems_test_name[] = "SPREGION_ERR 1";
 
-rtems_name Region_name[ 2 ];    /* array of region names */
-rtems_id   Region_id[ 2 ];      /* array of region ids */
+static rtems_name Region_name[ 2 ];    /* array of region names */
+static rtems_id   Region_id[ 2 ];      /* array of region ids */
 
-uint32_t   Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
+static uint8_t Region_good_area[4096] CPU_STRUCTURE_ALIGNMENT;
 #define Region_bad_area    (void *) 0x00000005
 #define REGION_START_OFFSET 1024
 #define REGION_LENGTH       512
 
-/* to avoid warnings */
-void region_error_tests(void);
-
-void region_error_tests(void)
+static void region_error_tests(void)
 {
   void                   *segment_address_1;
   void                   *segment_address_2;



More information about the vc mailing list