Skip to content

Commit 0ab943b

Browse files
Jingoo HanJiri Kosina
authored andcommitted
Documentation: replace strict_strtoul() with kstrtoul()
The usage of strict_strtoul() is not preferred, because strict_strtoul() is obsolete. Thus, kstrtoul() should be used. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 5f5e39a commit 0ab943b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Documentation/target/tcm_mod_builder.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name):
300300
buf += " int ret;\n\n"
301301
buf += " if (strstr(name, \"tpgt_\") != name)\n"
302302
buf += " return ERR_PTR(-EINVAL);\n"
303-
buf += " if (strict_strtoul(name + 5, 10, &tpgt) || tpgt > UINT_MAX)\n"
303+
buf += " if (kstrtoul(name + 5, 10, &tpgt) || tpgt > UINT_MAX)\n"
304304
buf += " return ERR_PTR(-EINVAL);\n\n"
305305
buf += " tpg = kzalloc(sizeof(struct " + fabric_mod_name + "_tpg), GFP_KERNEL);\n"
306306
buf += " if (!tpg) {\n"

‎Documentation/trace/ftrace.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ Here are the available options:
735735
function as well as the function being traced.
736736

737737
print-parent:
738-
bash-4000 [01] 1477.606694: simple_strtoul <-strict_strtoul
738+
bash-4000 [01] 1477.606694: simple_strtoul <-kstrtoul
739739

740740
noprint-parent:
741741
bash-4000 [01] 1477.606694: simple_strtoul
@@ -759,7 +759,7 @@ Here are the available options:
759759
latency-format option is enabled.
760760

761761
bash 4000 1 0 00000000 00010a95 [58127d26] 1720.415ms \
762-
(+0.000ms): simple_strtoul (strict_strtoul)
762+
(+0.000ms): simple_strtoul (kstrtoul)
763763

764764
raw - This will display raw numbers. This option is best for
765765
use with user applications that can translate the raw

0 commit comments

Comments
 (0)