···176176 len = (buf + buflen) - delim - 1;177177 p = kstrndup(delim + 1, len, GFP_KERNEL);178178 if (p) {179179- unsigned long scope_id = 0;179179+ u32 scope_id = 0;180180 struct net_device *dev;181181182182 dev = dev_get_by_name(net, p);···184184 scope_id = dev->ifindex;185185 dev_put(dev);186186 } else {187187- if (strict_strtoul(p, 10, &scope_id) == 0) {187187+ if (kstrtou32(p, 10, &scope_id) == 0) {188188 kfree(p);189189 return 0;190190 }···304304 * @sap: buffer into which to plant socket address305305 * @salen: size of buffer306306 *307307- * @uaddr does not have to be '\0'-terminated, but strict_strtoul() and307307+ * @uaddr does not have to be '\0'-terminated, but kstrtou8() and308308 * rpc_pton() require proper string termination to be successful.309309 *310310 * Returns the size of the socket address if successful; otherwise···315315 const size_t salen)316316{317317 char *c, buf[RPCBIND_MAXUADDRLEN + sizeof('\0')];318318- unsigned long portlo, porthi;318318+ u8 portlo, porthi;319319 unsigned short port;320320321321 if (uaddr_len > RPCBIND_MAXUADDRLEN)···327327 c = strrchr(buf, '.');328328 if (unlikely(c == NULL))329329 return 0;330330- if (unlikely(strict_strtoul(c + 1, 10, &portlo) != 0))331331- return 0;332332- if (unlikely(portlo > 255))330330+ if (unlikely(kstrtou8(c + 1, 10, &portlo) != 0))333331 return 0;334332335333 *c = '\0';336334 c = strrchr(buf, '.');337335 if (unlikely(c == NULL))338336 return 0;339339- if (unlikely(strict_strtoul(c + 1, 10, &porthi) != 0))340340- return 0;341341- if (unlikely(porthi > 255))337337+ if (unlikely(kstrtou8(c + 1, 10, &porthi) != 0))342338 return 0;343339344340 port = (unsigned short)((porthi << 8) | portlo);
+1-1
net/sunrpc/auth.c
···48484949 if (!val)5050 goto out_inval;5151- ret = strict_strtoul(val, 0, &num);5151+ ret = kstrtoul(val, 0, &num);5252 if (ret == -EINVAL)5353 goto out_inval;5454 nbits = fls(num);
+2-2
net/sunrpc/xprtsock.c
···30593059 const struct kernel_param *kp,30603060 unsigned int min, unsigned int max)30613061{30623062- unsigned long num;30623062+ unsigned int num;30633063 int ret;3064306430653065 if (!val)30663066 return -EINVAL;30673067- ret = strict_strtoul(val, 0, &num);30673067+ ret = kstrtouint(val, 0, &num);30683068 if (ret == -EINVAL || num < min || num > max)30693069 return -EINVAL;30703070 *((unsigned int *)kp->arg) = num;