len = (buf + buflen) - delim - 1;
        p = kstrndup(delim + 1, len, GFP_KERNEL);
        if (p) {
-               unsigned long scope_id = 0;
+               u32 scope_id = 0;
                struct net_device *dev;
 
                dev = dev_get_by_name(net, p);
                        scope_id = dev->ifindex;
                        dev_put(dev);
                } else {
-                       if (strict_strtoul(p, 10, &scope_id) == 0) {
+                       if (kstrtou32(p, 10, &scope_id) == 0) {
                                kfree(p);
                                return 0;
                        }
  * @sap: buffer into which to plant socket address
  * @salen: size of buffer
  *
- * @uaddr does not have to be '\0'-terminated, but strict_strtoul() and
+ * @uaddr does not have to be '\0'-terminated, but kstrtou8() and
  * rpc_pton() require proper string termination to be successful.
  *
  * Returns the size of the socket address if successful; otherwise
                          const size_t salen)
 {
        char *c, buf[RPCBIND_MAXUADDRLEN + sizeof('\0')];
-       unsigned long portlo, porthi;
+       u8 portlo, porthi;
        unsigned short port;
 
        if (uaddr_len > RPCBIND_MAXUADDRLEN)
        c = strrchr(buf, '.');
        if (unlikely(c == NULL))
                return 0;
-       if (unlikely(strict_strtoul(c + 1, 10, &portlo) != 0))
-               return 0;
-       if (unlikely(portlo > 255))
+       if (unlikely(kstrtou8(c + 1, 10, &portlo) != 0))
                return 0;
 
        *c = '\0';
        c = strrchr(buf, '.');
        if (unlikely(c == NULL))
                return 0;
-       if (unlikely(strict_strtoul(c + 1, 10, &porthi) != 0))
-               return 0;
-       if (unlikely(porthi > 255))
+       if (unlikely(kstrtou8(c + 1, 10, &porthi) != 0))
                return 0;
 
        port = (unsigned short)((porthi << 8) | portlo);
 
                const struct kernel_param *kp,
                unsigned int min, unsigned int max)
 {
-       unsigned long num;
+       unsigned int num;
        int ret;
 
        if (!val)
                return -EINVAL;
-       ret = strict_strtoul(val, 0, &num);
+       ret = kstrtouint(val, 0, &num);
        if (ret == -EINVAL || num < min || num > max)
                return -EINVAL;
        *((unsigned int *)kp->arg) = num;