[PATCH 3/5] rtems: Deprecate region_information_block
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Nov 8 07:05:49 UTC 2018
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 710e878666..d551fce213 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 ee5d79051f..8e0063bc88 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 43e988376a..f5e6309211 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 );
--
2.16.4
More information about the devel
mailing list