sysctl: fix build error
Subsystems (2)
PATCH 1/1 sysctl: fix build error
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 <[email protected]>
Signed-off-by Matteo Croce <[email protected]>
--- kernel/sysctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sysctl.c +2 -2
@@ -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 { }
Signature · 1 line
2.21.0
Quoted 3 lines · On Thu, 13 Jun 2019 00:01:20 +0200 Matteo Croce <[email protected]> wrote:
Commit
cefdca0a86be("userfaultfd/sysctl: add vm.unprivileged_userfaultfd") reintroduces a reference to 'zero' and 'one'.
Use the SYSCTL_{ZERO,ONE} symbols instead.
proc-sysctl-add-shared-variables-for-range-check-fix.patch (which has been in linux-next for over a week) already fixed that.
Quoted 1 line
Reported-by kbuild test robot <[email protected]>
Some robot glitch I guess?