diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h index fe9974d993..599db29c13 100644 --- a/cpukit/include/rtems/rtems/partimpl.h +++ b/cpukit/include/rtems/rtems/partimpl.h @@ -35,19 +35,6 @@ extern "C" { * @{ */ -/** - * @brief Frees the_buffer to the_partition. - * - * This routine frees the_buffer to the_partition. - */ -RTEMS_INLINE_ROUTINE void _Partition_Free_buffer ( - Partition_Control *the_partition, - Chain_Node *the_buffer -) -{ - _Chain_Append_unprotected( &the_partition->Memory, the_buffer ); -} - /** * @brief Checks whether is on a valid buffer boundary for the_partition. * diff --git a/cpukit/rtems/src/partreturnbuffer.c b/cpukit/rtems/src/partreturnbuffer.c index 73d5438225..9afda8f85e 100644 --- a/cpukit/rtems/src/partreturnbuffer.c +++ b/cpukit/rtems/src/partreturnbuffer.c @@ -21,6 +21,15 @@ #endif #include +#include + +static void _Partition_Free_buffer( + Partition_Control *the_partition, + void *the_buffer +) +{ + _Chain_Append_unprotected( &the_partition->Memory, the_buffer ); +} rtems_status_code rtems_partition_return_buffer( rtems_id id,