board: stm32mp1: Fix warnings when compiling with W=1