mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
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>
This commit is contained in:
@@ -216,6 +216,7 @@ void get_src_version(const char *modname, char sum[], unsigned sumlen);
|
||||
/* from modpost.c */
|
||||
extern bool target_is_big_endian;
|
||||
extern bool host_is_big_endian;
|
||||
const char *get_basename(const char *path);
|
||||
char *read_text_file(const char *filename);
|
||||
char *get_line(char **stringp);
|
||||
void *sym_get_data(const struct elf_info *info, const Elf_Sym *sym);
|
||||
|
||||
Reference in New Issue
Block a user