提交 2c614c11 编写于 作者: M Matteo Croce 提交者: Will Deacon

arm64: use shared sysctl constants

Use shared sysctl variables for zero and one constants, as in
commit eec4844f ("proc/sysctl: add shared variables for range check")

Fixes: 63f0c603 ("arm64: Introduce prctl() options to control the tagged user addresses ABI")
Signed-off-by: NMatteo Croce <mcroce@redhat.com>
Signed-off-by: NWill Deacon <will@kernel.org>
上级 5cb7a111
......@@ -608,8 +608,6 @@ long get_tagged_addr_ctrl(void)
* only prevents the tagged address ABI enabling via prctl() and does not
* disable it for tasks that already opted in to the relaxed ABI.
*/
static int zero;
static int one = 1;
static struct ctl_table tagged_addr_sysctl_table[] = {
{
......@@ -618,8 +616,8 @@ static struct ctl_table tagged_addr_sysctl_table[] = {
.data = &tagged_addr_disabled,
.maxlen = sizeof(int),
.proc_handler = proc_dointvec_minmax,
.extra1 = &zero,
.extra2 = &one,
.extra1 = SYSCTL_ZERO,
.extra2 = SYSCTL_ONE,
},
{ }
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册