--- zzzz-none-000/linux-3.10.107/drivers/misc/hmc6352.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/misc/hmc6352.c 2021-02-04 17:41:59.000000000 +0000 @@ -22,7 +22,6 @@ */ #include -#include #include #include #include @@ -46,8 +45,9 @@ int ret; unsigned long val; - if (strict_strtoul(buf, 10, &val)) - return -EINVAL; + ret = kstrtoul(buf, 10, &val); + if (ret) + return ret; if (val >= strlen(map)) return -EINVAL; mutex_lock(&compass_mutex);