This fixes instances where a pointer to an enum (possibly sized one
byte) is casted to a pointer to int (which is at least two and in most
cases four bytes in size). As result, out-of-bounds memory accesses
are bound to happen.
This was detected by GCC 11.2.0 with -Wstringop-overflow.
As the STM32MP157Cxx has no CMSIS header repositories, SUCCESS enum
is not defined.
Thus STM32MP157Cxx line must be specifically handled as the
STM32F030x4 line to create missing enums.
Signed-off-by: Gilles DOFFE <gilles.doffe@savoirfairelinux.com>