]> www.infradead.org Git - users/jedix/linux-maple.git/commit
modpost: introduce get_basename() helper
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 7 Feb 2025 17:50:13 +0000 (02:50 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 15 Mar 2025 12:16:21 +0000 (21:16 +0900)
commit59d60d26a58be75e9e3b813104c2dfd3b58eb662
treead8fb7559b010a61633bc0fd0e72e5792707277b
parentab5bc764bdc270d1c55aaf9d238e0986ff301355
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>
scripts/mod/modpost.c
scripts/mod/modpost.h
scripts/mod/sumversion.c