]> www.infradead.org Git - users/jedix/linux-maple.git/commit
modpost: introduce module_alias_printf() helper
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 19 Nov 2024 23:56:41 +0000 (08:56 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Nov 2024 23:42:58 +0000 (08:42 +0900)
commitf4fdb17ca5a5285d4a0ed81b25d5a3d7b9b3ebf3
tree3919ba866936ff712552472685a4d13eaa0619e2
parentb7bca42d101d8d9678068cde645bd6d0afa8a20f
modpost: introduce module_alias_printf() helper

The generic ->do_entry() handler is currently limited to returning
a single alias string.

However, this is not flexible enough for several subsystems, which
currently require their own implementations:

 - do_usb_table()
 - do_of_table()
 - do_pnp_device_entry()
 - do_pnp_card_entries()

This commit introduces a helper function so that these special cases can
add multiple MODULE_ALIAS() and then migrate to the generic framework.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/file2alias.c
scripts/mod/modpost.c
scripts/mod/modpost.h