From: Yann Gautier Date: Fri, 18 Nov 2022 12:43:48 +0000 (+0100) Subject: fix(st): add U suffix for unsigned numbers X-Git-Tag: baikal/aarch64/sdk5.10~1^2~313^2~5 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=9c1aa1253c9c77487b73d46a89941e81e80864eb;p=arm-tf.git fix(st): add U suffix for unsigned numbers This corrects MISRA c2012-7.2 violation: A "u" or "U" suffix shall be applied to all integer constants that are represented in an unsigned type. Signed-off-by: Yann Gautier Change-Id: I92b394572528e7179a314bbad4a032fd65053861 --- diff --git a/plat/st/common/bl2_io_storage.c b/plat/st/common/bl2_io_storage.c index b271ed6d3..1bbaff670 100644 --- a/plat/st/common/bl2_io_storage.c +++ b/plat/st/common/bl2_io_storage.c @@ -607,7 +607,7 @@ int plat_get_image_source(unsigned int image_id, uintptr_t *dev_handle, * - we already boot FWU_MAX_TRIAL_REBOOT times in trial mode. * we select the previous_active_index. */ -#define INVALID_BOOT_IDX 0xFFFFFFFF +#define INVALID_BOOT_IDX 0xFFFFFFFFU uint32_t plat_fwu_get_boot_idx(void) { diff --git a/plat/st/common/include/stm32mp_efi.h b/plat/st/common/include/stm32mp_efi.h index 490560ff3..af9165f1d 100644 --- a/plat/st/common/include/stm32mp_efi.h +++ b/plat/st/common/include/stm32mp_efi.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: BSD-3-Clause */ /* * Copyright (c) 2021, Linaro Limited + * Copyright (c) 2022, STMicroelectronics - All Rights Reserved */ #ifndef STM32MP_EFI_H @@ -9,7 +10,7 @@ #include #define STM32MP_FIP_GUID \ - EFI_GUID(0x19d5df83, 0x11b0, 0x457b, \ - 0xbe, 0x2c, 0x75, 0x59, 0xc1, 0x31, 0x42, 0xa5) + EFI_GUID(0x19d5df83U, 0x11b0U, 0x457bU, \ + 0xbeU, 0x2cU, 0x75U, 0x59U, 0xc1U, 0x31U, 0x42U, 0xa5U) #endif /* STM32MP_EFI_H */