From ceab2fc3442dbda1c4beaff3c4fe708a04c02303 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 28 Feb 2022 11:39:56 +0100 Subject: [PATCH] fix(stm32mp1): fix enum prints With gcc-11, the -Wformat-signedness warning complains about enum values that should be printed as unsigned values. But the current version of compiler used in CI states that this parameter is signed. Just cast the value then. Signed-off-by: Yann Gautier Change-Id: Ic0655e5ba9c44fe6abcd9958d7a9972f5de3b7ef --- plat/st/stm32mp1/stm32mp1_shared_resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/st/stm32mp1/stm32mp1_shared_resources.c b/plat/st/stm32mp1/stm32mp1_shared_resources.c index 2a518e19d..a0ca697ca 100644 --- a/plat/st/stm32mp1/stm32mp1_shared_resources.c +++ b/plat/st/stm32mp1/stm32mp1_shared_resources.c @@ -164,7 +164,7 @@ static void register_periph(enum stm32mp_shres id, unsigned int state) (id <= STM32MP1_SHRES_GPIOZ(7)) && ((unsigned int)(id - STM32MP1_SHRES_GPIOZ(0)) >= get_gpioz_nbpin())) { ERROR("Invalid GPIO pin %d, %u pin(s) available\n", - id - STM32MP1_SHRES_GPIOZ(0), get_gpioz_nbpin()); + (int)(id - STM32MP1_SHRES_GPIOZ(0)), get_gpioz_nbpin()); panic(); }