On Sun, Oct 2, 2016 at 11:41 PM, Maciej Żenczykowski <zenczykow...@gmail.com> wrote: > +static const int minus_one = -1; > static const int one = 1; > static const int two_five_five = 255; > > @@ -5789,7 +5790,8 @@ static const struct ctl_table addrconf_sysctl[] = { > .data = &ipv6_devconf.rtr_solicits, > .maxlen = sizeof(int), > .mode = 0644, > - .proc_handler = proc_dointvec, > + .proc_handler = proc_dointvec_minmax, > + .extra1 = (void *)&minus_one,
The cast is not necessary.