Files
linux/scripts/mod/modpost.h
Masahiro Yamada 59d60d26a5 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>
2025-03-15 21:16:21 +09:00

6.6 KiB