From cf60acebe87dffa035aba59c2dc74c874d0d7f38 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Fri, 17 Oct 2025 17:30:40 +0800 Subject: [PATCH] LoongArch: Re-remove asm/shmparam.h to fix SHMLBA regression Commit 499a7719253a ("CIFS: New mount option for cifs.upcall namespace resolution") incorrectly re-introduced the arch/loongarch/include/asm/shmparam.h file. This file was intentionally deleted by commit d23b7795f35a ("LoongArch: Change SHMLBA from SZ_64K to PAGE_SIZE") in order to change the architecture's SHMLBA from SZ_64K to the more application-compatible PAGE_SIZE by falling back to the generic version. The re-introduction of this file appears to be an artifact of a backporting error, as it is completely unrelated to the core CIFS functionality of the commit it was part of. Re-adding this file reverts this important architectural improvement and forces SHMLBA back to SZ_64K, causing a regression that can break user-space applications which expect a PAGE_SIZE alignment. This patch removes the file again, restoring the intended behavior for the LoongArch architecture and fixing the regression. Fixes: 499a7719253a ("CIFS: New mount option for cifs.upcall namespace resolution") Cc: Huacai Chen Cc: katrinzhou Signed-off-by: Ming Wang --- arch/loongarch/include/asm/shmparam.h | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 arch/loongarch/include/asm/shmparam.h diff --git a/arch/loongarch/include/asm/shmparam.h b/arch/loongarch/include/asm/shmparam.h deleted file mode 100644 index c9554f48d2df..000000000000 --- a/arch/loongarch/include/asm/shmparam.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Copyright (C) 2020-2022 Loongson Technology Corporation Limited - */ -#ifndef _ASM_SHMPARAM_H -#define _ASM_SHMPARAM_H - -#define __ARCH_FORCE_SHMLBA 1 - -#define SHMLBA SZ_64K /* attach addr a multiple of this */ - -#endif /* _ASM_SHMPARAM_H */ -- Gitee