[rtems commit] rtems: Move _Partition_Free_buffer()

Sebastian Huber sebh at rtems.org
Mon Nov 23 09:45:31 UTC 2020


Module:    rtems
Branch:    master
Commit:    76263d8fc99b7e79f10cc9503067b3c5f570c513
Changeset: http://git.rtems.org/rtems/commit/?id=76263d8fc99b7e79f10cc9503067b3c5f570c513

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Oct 14 10:14:10 2020 +0200

rtems: Move _Partition_Free_buffer()

It is only used by rtems_partition_return_buffer().

---

 cpukit/include/rtems/rtems/partimpl.h | 13 -------------
 cpukit/rtems/src/partreturnbuffer.c   |  9 +++++++++
 2 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index fe9974d..599db29 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 73d5438..9afda8f 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,



More information about the vc mailing list