[PATCH linux-next] sysctl: fix build error
From: Matteo Croce
Date: Thu Jun 13 2019 - 13:18:08 EST
Commit cefdca0a86be ("userfaultfd/sysctl: add vm.unprivileged_userfaultfd")
reintroduces a reference to 'zero' and 'one'.
Use the SYSCTL_{ZERO,ONE} symbols instead.
Reported-by: kbuild test robot <lkp@xxxxxxxxx>
Signed-off-by: Matteo Croce <mcroce@xxxxxxxxxx>
---
kernel/sysctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index c77174336d16..4dce89d74a40 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1735,8 +1735,8 @@ static struct ctl_table vm_table[] = {
.maxlen = sizeof(sysctl_unprivileged_userfaultfd),
.mode = 0644,
.proc_handler = proc_dointvec_minmax,
- .extra1 = &zero,
- .extra2 = &one,
+ .extra1 = SYSCTL_ZERO,
+ .extra2 = SYSCTL_ONE,
},
#endif
{ }
--
2.21.0