mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-26 23:04:50 +00:00
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 <yann.gautier@st.com> Change-Id: I92b394572528e7179a314bbad4a032fd65053861
This commit is contained in:
parent
56048fe215
commit
9c1aa1253c
2 changed files with 4 additions and 3 deletions
plat/st/common
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 <drivers/partition/efi.h>
|
||||
|
||||
#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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue