summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/malloc.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-09 11:20:09 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-11-12 13:26:22 +0100
commitc1f3c2b88a8bc902ec019a7fcf916af5674bc29b (patch)
tree80e9e0d0b3137d6ff6676a78b6fdc0ad8a775454 /cpukit/include/rtems/malloc.h
parentx86_64: Remove use of proc_ptr (diff)
downloadrtems-c1f3c2b88a8bc902ec019a7fcf916af5674bc29b.tar.bz2
score: Add and use malloc() family attributes
Update #3583.
Diffstat (limited to 'cpukit/include/rtems/malloc.h')
-rw-r--r--cpukit/include/rtems/malloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/include/rtems/malloc.h b/cpukit/include/rtems/malloc.h
index 7c00f21e77..a6cfeb574f 100644
--- a/cpukit/include/rtems/malloc.h
+++ b/cpukit/include/rtems/malloc.h
@@ -138,7 +138,8 @@ void *rtems_heap_allocate_aligned_with_boundary(
size_t size,
uintptr_t alignment,
uintptr_t boundary
-);
+) RTEMS_MALLOCLIKE RTEMS_ALLOC_SIZE(1) RTEMS_ALLOC_ALIGN(2)
+ RTEMS_WARN_UNUSED_RESULT;
/**
* @brief Extends the memory available for the heap using the memory area