提交 0ca85147 编写于 作者: G Gu Zitao 提交者: Zheng Zengkai

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 91d35dd9 ("moduleparam: fix alpha, ia64
and ppc64 compile failures").

Signed-off-by: Gu Zitao <guzitao@wxiat.com> #openEuler_contributor
Signed-off-by: NLaibin Qiu <qiulaibin@huawei.com>
Reviewed-by: NHanjun Guo <guohanjun@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 7327c1d7
...@@ -276,7 +276,7 @@ struct kparam_array ...@@ -276,7 +276,7 @@ struct kparam_array
read-only sections (which is part of respective UNIX ABI on these read-only sections (which is part of respective UNIX ABI on these
platforms). So 'const' makes no sense and even causes compile failures platforms). So 'const' makes no sense and even causes compile failures
with some compilers. */ 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 #define __moduleparam_const
#else #else
#define __moduleparam_const const #define __moduleparam_const const
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册