From 0ca8514794119fa0a640f4aeb0cd002979f9f41d Mon Sep 17 00:00:00 2001 From: Gu Zitao Date: Tue, 22 Feb 2022 22:12:45 +0800 Subject: [PATCH] sw64: moduleparam: fix sw64 compile failure Sunway inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4SPZD CVE: NA ------------------------------- This patch fixes compile failure for sw64 architecture. More details about the issue in commit 91d35dd93e14 ("moduleparam: fix alpha, ia64 and ppc64 compile failures"). Signed-off-by: Gu Zitao #openEuler_contributor Signed-off-by: Laibin Qiu Reviewed-by: Hanjun Guo Signed-off-by: Zheng Zengkai --- include/linux/moduleparam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h index 6388eb9734a5..a9694fb48a4e 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h @@ -276,7 +276,7 @@ struct kparam_array read-only sections (which is part of respective UNIX ABI on these platforms). So 'const' makes no sense and even causes compile failures with some compilers. */ -#if defined(CONFIG_ALPHA) || defined(CONFIG_IA64) || defined(CONFIG_PPC64) +#if defined(CONFIG_ALPHA) || defined(CONFIG_IA64) || defined(CONFIG_PPC64) || defined(CONFIG_SW64) #define __moduleparam_const #else #define __moduleparam_const const -- GitLab