[RTEMS Project] #2617: rtems_heap_allocate_aligned_with_boundary() body and prototype inconsistent

RTEMS trac trac at rtems.org
Tue Mar 1 00:24:40 UTC 2016


#2617: rtems_heap_allocate_aligned_with_boundary() body and prototype inconsistent
---------------------------+-----------------------------
 Reporter:  joel.sherrill  |      Owner:  sebastian.huber
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  4.12
Component:  cpukit         |    Version:  4.12
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 The first parameter is size_t in the .h and uintptr_t in the body. This
 resulted in a compiler error on the m32c. But it is an inconsistency which
 should be fixed even if no architecture complained.

 The malloc.h header file has this:

 void *rtems_heap_allocate_aligned_with_boundary(
   size_t size,
   uintptr_t alignment,
   uintptr_t boundary
 );


 malloc_deferred.c has this:

 void *rtems_heap_allocate_aligned_with_boundary(
   uintptr_t size,
   uintptr_t alignment,
   uintptr_t boundary
 )

--
Ticket URL: <http://devel.rtems.org/ticket/2617>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list