diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h index ab0bdc76f7..e2325bf8b5 100644 --- a/cpukit/include/rtems/rtems/partimpl.h +++ b/cpukit/include/rtems/rtems/partimpl.h @@ -33,18 +33,6 @@ extern "C" { * @{ */ -/** - * @brief Allocates a partition control block from the - * inactive chain of free partition control blocks. - * - * This function allocates a partition control block from - * the inactive chain of free partition control blocks. - */ -RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void ) -{ - return (Partition_Control *) _Objects_Allocate( &_Partition_Information ); -} - /** * @brief Calls _Objects_Get() using the ::_Partition_Information. * diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c index 1ac08d6bc0..7eea6b3bcf 100644 --- a/cpukit/rtems/src/partcreate.c +++ b/cpukit/rtems/src/partcreate.c @@ -27,6 +27,11 @@ #include #include +static Partition_Control *_Partition_Allocate( void ) +{ + return (Partition_Control *) _Objects_Allocate( &_Partition_Information ); +} + static void _Partition_Initialize( Partition_Control *the_partition, void *starting_address,