<div dir="ltr">Why are the comments being deleted?<div><br></div><div>I assume this is happening in all of the patches of this type. Please don't do that.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 20, 2020 at 5:16 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It is only used by rtems_partition_create().<br>
---<br>
cpukit/include/rtems/rtems/partimpl.h | 12 ------------<br>
cpukit/rtems/src/partcreate.c | 5 +++++<br>
2 files changed, 5 insertions(+), 12 deletions(-)<br>
<br>
diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h<br>
index ab0bdc76f7..e2325bf8b5 100644<br>
--- a/cpukit/include/rtems/rtems/partimpl.h<br>
+++ b/cpukit/include/rtems/rtems/partimpl.h<br>
@@ -33,18 +33,6 @@ extern "C" {<br>
* @{<br>
*/<br>
<br>
-/**<br>
- * @brief Allocates a partition control block from the<br>
- * inactive chain of free partition control blocks.<br>
- *<br>
- * This function allocates a partition control block from<br>
- * the inactive chain of free partition control blocks.<br>
- */<br>
-RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )<br>
-{<br>
- return (Partition_Control *) _Objects_Allocate( &_Partition_Information );<br>
-}<br>
-<br>
/**<br>
* @brief Calls _Objects_Get() using the ::_Partition_Information.<br>
*<br>
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c<br>
index a6824d5224..7caac4f796 100644<br>
--- a/cpukit/rtems/src/partcreate.c<br>
+++ b/cpukit/rtems/src/partcreate.c<br>
@@ -37,6 +37,11 @@ static bool _Partition_Is_buffer_area_aligned( const void *starting_address )<br>
return ( ( (uintptr_t) starting_address ) % CPU_SIZEOF_POINTER ) == 0;<br>
}<br>
<br>
+static Partition_Control *_Partition_Allocate( void )<br>
+{<br>
+ return (Partition_Control *) _Objects_Allocate( &_Partition_Information );<br>
+}<br>
+<br>
static void _Partition_Initialize(<br>
Partition_Control *the_partition,<br>
void *starting_address,<br>
-- <br>
2.26.2<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>