diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2025-02-08 02:50:13 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2025-03-15 21:16:21 +0900 |
commit | 59d60d26a58be75e9e3b813104c2dfd3b58eb662 (patch) | |
tree | ad8fb7559b010a61633bc0fd0e72e5792707277b /scripts/gdb/linux/tasks.py | |
parent | ab5bc764bdc270d1c55aaf9d238e0986ff301355 (diff) | |
download | linux-59d60d26a58be75e9e3b813104c2dfd3b58eb662.tar.gz linux-59d60d26a58be75e9e3b813104c2dfd3b58eb662.tar.bz2 linux-59d60d26a58be75e9e3b813104c2dfd3b58eb662.zip |
modpost: introduce get_basename() helper
The logic to retrieve the basename appears multiple times.
Factor out the common pattern into a helper function.
I copied kbasename() from include/linux/string.h and renamed it
to get_basename().
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions