summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 10:14:10 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 11:34:25 +0200
commit6ac370308af5f0814d996859a34eeac3f7f53926 (patch)
tree79b7117cbb9fa6e25d56e05ea99bac9303e10952
parent75f7e628ca82e3dee211f3fe599b784d401f8e5c (diff)
rtems: Move _Partition_Free_buffer()
It is only used by rtems_partition_return_buffer().
-rw-r--r--cpukit/include/rtems/rtems/partimpl.h13
-rw-r--r--cpukit/rtems/src/partreturnbuffer.c9
2 files changed, 9 insertions, 13 deletions
diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index 1852b9438c..98362b83d9 100644
--- a/cpukit/include/rtems/rtems/partimpl.h
+++ b/cpukit/include/rtems/rtems/partimpl.h
@@ -36,19 +36,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.
*
* This function returns TRUE if the_buffer is on a valid buffer
diff --git a/cpukit/rtems/src/partreturnbuffer.c b/cpukit/rtems/src/partreturnbuffer.c
index cf22521be1..ea3a0c476d 100644
--- a/cpukit/rtems/src/partreturnbuffer.c
+++ b/cpukit/rtems/src/partreturnbuffer.c
@@ -21,6 +21,15 @@
#endif
#include <rtems/rtems/partimpl.h>
+#include <rtems/score/chainimpl.h>
+
+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,