summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 10:29:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 11:34:25 +0200
commit22c95c86ba73275dfcf078ea7d6f781752798be6 (patch)
tree8916ffdb432ca84b5ead51bebe2b3f44e86e89f2
parentd9eedc4bcbe653fb175f44910a77adcff452458d (diff)
rtems: Move _Partition_Is_buffer_size_aligned()
It is only used by rtems_partition_create(). Fix integer type.
-rw-r--r--cpukit/include/rtems/rtems/partimpl.h7
-rw-r--r--cpukit/rtems/src/partcreate.c5
2 files changed, 5 insertions, 7 deletions
diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index 48204d9de3..a72a29355d 100644
--- a/cpukit/include/rtems/rtems/partimpl.h
+++ b/cpukit/include/rtems/rtems/partimpl.h
@@ -34,13 +34,6 @@ extern "C" {
* @{
*/
-RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned(
- uint32_t buffer_size
-)
-{
- return (buffer_size % CPU_SIZEOF_POINTER) == 0;
-}
-
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_area_aligned(
const void *starting_address
)
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c
index 93102e9c07..0d870e04f6 100644
--- a/cpukit/rtems/src/partcreate.c
+++ b/cpukit/rtems/src/partcreate.c
@@ -26,6 +26,11 @@
#include <rtems/score/sysstate.h>
#include <rtems/sysinit.h>
+static bool _Partition_Is_buffer_size_aligned( size_t buffer_size )
+{
+ return ( buffer_size % CPU_SIZEOF_POINTER ) == 0;
+}
+
rtems_status_code rtems_partition_create(
rtems_name name,
void *starting_address,