Tomohiro Kusumi 8708fd888f Linux 2.6.39 compat: Test if kstrtoul() exists
kstrtoul() exists only after torvalds/linux@33ee3b2e2e in 2.6.39.
Use strict_strtoul() if kstrtoul() doesn't exist.
Note that strict_strtoul() has existed as an alias for kstrtoul()
for a while, but removed in torvalds/linux@3db2e9cdc0.

It looks like RHEL6 (2.6.32 based) has backported kstrtoul(),
and this caused build CI to pass compilation test.
It should fail on vanilla < 2.6.39 kernels or distro kernels without
backport as reported in #8760.

--
 # grep "kstrtoul(" /lib/modules/2.6.32-754.12.1.el6.x86_64/build/ \
 include/linux/kernel.h >/dev/null
 # echo $?
 0

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #8760 
Closes #8761
2019-05-24 12:26:18 -07:00
..
2018-05-01 10:33:35 -07:00
2019-01-06 10:39:41 -08:00
2019-03-29 09:13:20 -07:00
2011-04-19 10:10:47 -07:00
2019-03-06 16:03:03 -08:00
2017-01-03 11:31:18 -06:00
2018-05-29 16:00:33 -07:00
2012-10-14 13:06:48 -07:00
2019-05-23 14:40:28 -07:00
2016-11-04 10:46:40 -07:00
2018-08-27 10:04:21 -07:00
2017-01-03 11:31:18 -06:00
2019-03-02 16:19:05 -08:00
2018-05-29 14:51:39 -07:00
2019-04-14 11:04:54 -07:00
2018-05-29 14:51:39 -07:00
2018-03-28 10:19:22 -07:00
2016-03-18 13:31:11 -07:00
2018-11-11 18:06:36 -08:00
2016-03-18 13:31:11 -07:00
2018-05-29 16:00:33 -07:00