From d8ba01f69fd5467be0f85e7b1965ba00572ed2d7 Mon Sep 17 00:00:00 2001 From: fffs_qian <14969098+fffsqian@user.noreply.gitee.com> Date: Fri, 6 Jun 2025 06:58:15 +0000 Subject: [PATCH] update arch/loongarch/mm/mmap.c. Since the dependent patch of the CVE patch removes the declarationand export of shm_align_mask in the loongarch architecture.resulting in kabi error,we now restore its declaration to resolve the error. Signed-off-by: fffs_qian <14969098+fffsqian@user.noreply.gitee.com> --- arch/loongarch/mm/mmap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/loongarch/mm/mmap.c b/arch/loongarch/mm/mmap.c index a9630a81b38a..d3de4fd77c72 100644 --- a/arch/loongarch/mm/mmap.c +++ b/arch/loongarch/mm/mmap.c @@ -8,6 +8,8 @@ #include #include +unsigned long shm_align_mask = PAGE_SIZE - 1; /* Sane caches */ +EXPPORT_SYMBOL(shm_align_mask); #define SHM_ALIGN_MASK (SHMLBA - 1) #define COLOUR_ALIGN(addr, pgoff) \ -- Gitee