RTEMS | arm/lpc32xx: Fix prototype mismatch and LPC32XX_SCRATCH_AREA_SIZE use (!567)

Joel Sherrill (@joel) gitlab at rtems.org
Mon Jul 7 22:29:07 UTC 2025



Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/567

Project:Branches: joel/rtems:lpc32xx-warning-fixes to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill



## Summary

arm/lpc32xx: Fix prototype mismatch and LPC32XX_SCRATCH_AREA_SIZE use

lpc32xx_mlc_write_blocks() had a different prototype in the header
from the implementation. Changed to match the prototype and Doxygen.

LPC32XX_SCRATCH_AREA_SIZE was tested with "ifdef" not "if" which
resulted in it being used as an array size when undefined or
set to 0.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/567
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250707/4f9509da/attachment.htm>


More information about the bugs mailing list