From ab5aeb1be1e7f501388cf4c8915f98efaaef754a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 10 May 2021 09:21:03 +0200 Subject: score: Rename _Stack_Free_nothing() Rename _Stack_Free_nothing() in _Objects_Free_nothing() to make it reusable for the message queue buffers. Update #4007. --- cpukit/include/rtems/score/objectimpl.h | 7 +++++++ cpukit/include/rtems/score/stackimpl.h | 7 ------- cpukit/include/rtems/score/threadimpl.h | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'cpukit/include') diff --git a/cpukit/include/rtems/score/objectimpl.h b/cpukit/include/rtems/score/objectimpl.h index 54d6f0841b..0c9c85e062 100644 --- a/cpukit/include/rtems/score/objectimpl.h +++ b/cpukit/include/rtems/score/objectimpl.h @@ -954,6 +954,13 @@ RTEMS_INLINE_ROUTINE Objects_Control *_Objects_Allocate_with_extend( return the_object; } +/** + * @brief This function does nothing. + * + * @param ptr is not used. + */ +void _Objects_Free_nothing( void *ptr ); + /** @} */ #ifdef __cplusplus diff --git a/cpukit/include/rtems/score/stackimpl.h b/cpukit/include/rtems/score/stackimpl.h index c261f8bd4f..330fd32be7 100644 --- a/cpukit/include/rtems/score/stackimpl.h +++ b/cpukit/include/rtems/score/stackimpl.h @@ -194,13 +194,6 @@ void *_Stack_Allocate( size_t stack_size ); */ void _Stack_Free( void *stack_area ); -/** - * @brief This function does nothing. - * - * @param stack_area is not used. - */ -void _Stack_Free_nothing( void *stack_area ); - /** @} */ #ifdef __cplusplus diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index c861e8b119..ba7c159962 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -144,7 +144,7 @@ typedef struct { /** * @brief This member contains the handler to free the stack. * - * It shall not be NULL. Use _Stack_Free_nothing() if nothing is to free. + * It shall not be NULL. Use _Objects_Free_nothing() if nothing is to free. */ void ( *stack_free )( void * ); -- cgit v1.2.3