Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 153e04b3 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

modpost: remove leftover symbol prefix handling for module device table



Blackfin and metag were the only architectures that prefix symbols with
an underscore. They were removed by commit 4ba66a97 ("arch: remove
blackfin port"), commit bb6fb6df ("metag: Remove arch/metag/"),
respectively.

It is no longer necessary to handle <prefix> part of module device
table symbols.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 80d0dda3
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -1415,11 +1415,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info,
	if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT)
		return;

	/* All our symbols are of form <prefix>__mod_<name>__<identifier>_device_table. */
	name = strstr(symname, "__mod_");
	if (!name)
	/* All our symbols are of form __mod_<name>__<identifier>_device_table. */
	if (strncmp(symname, "__mod_", strlen("__mod_")))
		return;
	name += strlen("__mod_");
	name = symname + strlen("__mod_");
	namelen = strlen(name);
	if (namelen < strlen("_device_table"))
		return;