From 3306a5862f0708550bb5fdcb765fe54a554164bf Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Thu, 14 Mar 2019 14:26:53 -0700 Subject: [PATCH] arch: x86: Add missing U for unsigned constants Add U for integer constants to avoid an implicit cast. MISRA-C rule 10.1 Signed-off-by: Flavio Ceolin --- arch/x86/include/mmustructs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/mmustructs.h b/arch/x86/include/mmustructs.h index 48ef7bcc9ae..471fa7e6500 100644 --- a/arch/x86/include/mmustructs.h +++ b/arch/x86/include/mmustructs.h @@ -8,9 +8,9 @@ #ifndef ZEPHYR_ARCH_X86_INCLUDE_MMUSTRUCTS_H_ #define ZEPHYR_ARCH_X86_INCLUDE_MMUSTRUCTS_H_ -#define MMU_PAGE_SIZE 4096 -#define MMU_PAGE_MASK 0xfff -#define MMU_PAGE_SHIFT 12 +#define MMU_PAGE_SIZE 4096U +#define MMU_PAGE_MASK 0xfffU +#define MMU_PAGE_SHIFT 12U #define PAGES(x) ((x) << (MMU_PAGE_SHIFT)) #define MMU_ARE_IN_SAME_PAGE(a, b) \ (((u32_t)(a) & ~MMU_PAGE_MASK) == ((u32_t)(b) & ~MMU_PAGE_MASK))