]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - kernel/module.c
module: support reading multiple values per modinfo tag
authorMatthias Maennich <maennich@google.com>
Fri, 6 Sep 2019 10:32:25 +0000 (11:32 +0100)
committerJessica Yu <jeyu@kernel.org>
Tue, 10 Sep 2019 08:30:02 +0000 (10:30 +0200)
commitc5e4a062fe661806ab291a7576dc4a41613adb86
treea50413326d297a9e44827e57f04ecb713420d121
parent089cf7f6ecb266b6a4164919a2e69bd2f938374a
module: support reading multiple values per modinfo tag

Similar to modpost's get_next_modinfo(), introduce get_next_modinfo() in
kernel/module.c to acquire any further values associated with the same
modinfo tag name. That is useful for any tags that have multiple
occurrences (such as 'alias'), but is in particular introduced here as
part of the symbol namespaces patch series to read the (potentially)
multiple namespaces a module is importing.

Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Reviewed-by: Martijn Coenen <maco@android.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Matthias Maennich <maennich@google.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
kernel/module.c