From 6d413ef1f834a4ae53372cec28aac3bfe8514179 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 14 Oct 2020 10:12:56 +0200 Subject: rtems: Move _Partition_Allocate_buffer() It is only used by rtems_partition_get_buffer(). --- cpukit/rtems/src/partgetbuffer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpukit/rtems/src/partgetbuffer.c') diff --git a/cpukit/rtems/src/partgetbuffer.c b/cpukit/rtems/src/partgetbuffer.c index c92664ef61..2061ff151e 100644 --- a/cpukit/rtems/src/partgetbuffer.c +++ b/cpukit/rtems/src/partgetbuffer.c @@ -21,6 +21,12 @@ #endif #include +#include + +static void *_Partition_Allocate_buffer( Partition_Control *the_partition ) +{ + return _Chain_Get_unprotected( &the_partition->Memory ); +} rtems_status_code rtems_partition_get_buffer( rtems_id id, -- cgit v1.2.3