From c057f91eb56fd2394788cfa7156bb4f6ffe4202c Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Tue, 21 Jan 2025 20:04:54 -0500 Subject: [PATCH] arch: x86: add missing semicolon for z_x86_kpti_is_access_ok() The function prototype / extern declaration for z_x86_kpti_is_access_ok() in x86_mmu.h was missing a semicolon. Add it to avoid being surprised by compile errors in certain circumstances. Signed-off-by: Chris Friedt --- arch/x86/include/x86_mmu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/x86_mmu.h b/arch/x86/include/x86_mmu.h index ed6bb59b37c..1a733485e37 100644 --- a/arch/x86/include/x86_mmu.h +++ b/arch/x86/include/x86_mmu.h @@ -139,7 +139,7 @@ extern uint8_t z_shared_kernel_page_start; /* Called from page fault handler. ptables here is the ptage tables for the * faulting user thread and not the current set of page tables */ -extern bool z_x86_kpti_is_access_ok(void *virt, pentry_t *ptables) +extern bool z_x86_kpti_is_access_ok(void *virt, pentry_t *ptables); #endif /* CONFIG_DEMAND_PAGING */ #endif /* CONFIG_X86_KPTI */ #endif /* CONFIG_USERSPACE */