[rtems commit] rtems: Deprecate region_information_block
Sebastian Huber
sebh at rtems.org
Fri Nov 9 06:26:03 UTC 2018
Module: rtems
Branch: master
Commit: d53862a30b2d52370d648b6a1a3dc0a3f33bc88d
Changeset: http://git.rtems.org/rtems/commit/?id=d53862a30b2d52370d648b6a1a3dc0a3f33bc88d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Nov 8 07:56:54 2018 +0100
rtems: Deprecate region_information_block
The region_information_block typedef as no corresponding API. It has no
proper namespace prefix. A user can do nothing with it.
Close #3591.
---
cpukit/include/rtems/rtems/types.h | 2 +-
cpukit/libmisc/cpuuse/cpuusagetop.c | 2 +-
cpukit/libmisc/shell/main_mallocinfo.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cpukit/include/rtems/rtems/types.h b/cpukit/include/rtems/rtems/types.h
index 710e878..d551fce 100644
--- a/cpukit/include/rtems/rtems/types.h
+++ b/cpukit/include/rtems/rtems/types.h
@@ -115,7 +115,7 @@ typedef CPU_Interrupt_frame rtems_interrupt_frame;
* @brief Information structure returned by the Heap Handler via the Region
* Manager.
*/
-typedef Heap_Information_block region_information_block;
+typedef Heap_Information_block region_information_block RTEMS_DEPRECATED;
/**
* @brief Used to manage and manipulate intervals specified by
diff --git a/cpukit/libmisc/cpuuse/cpuusagetop.c b/cpukit/libmisc/cpuuse/cpuusagetop.c
index ee5d790..8e0063b 100644
--- a/cpukit/libmisc/cpuuse/cpuusagetop.c
+++ b/cpukit/libmisc/cpuuse/cpuusagetop.c
@@ -395,7 +395,7 @@ rtems_cpuusage_top_thread (rtems_task_argument arg)
}
else
{
- region_information_block libc_heap;
+ Heap_Information_block libc_heap;
malloc_info(&libc_heap);
rtems_printf(data->printer, "\nMem: Wksp: ");
print_memsize(data, wksp.Free.total, "free");
diff --git a/cpukit/libmisc/shell/main_mallocinfo.c b/cpukit/libmisc/shell/main_mallocinfo.c
index 43e9883..f5e6309 100644
--- a/cpukit/libmisc/shell/main_mallocinfo.c
+++ b/cpukit/libmisc/shell/main_mallocinfo.c
@@ -31,7 +31,7 @@ static int rtems_shell_main_malloc_info(
if ( argc == 2 && strcmp( argv[ 1 ], "walk" ) == 0 ) {
malloc_walk( 0, true );
} else {
- region_information_block info;
+ Heap_Information_block info;
rtems_shell_print_unified_work_area_message();
malloc_info( &info );
More information about the vc
mailing list