module: Modify module_flags() to accept show_state argument
authorAaron Tomlin <atomlin@redhat.com>
Thu, 14 Jul 2022 15:39:31 +0000 (16:39 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Jul 2022 00:40:23 +0000 (17:40 -0700)
commit17dd25c29cda98c370f8d5a4ae3daee33fac1669
tree3afab20c095cdd90e31fdbdc3699693b944e2d04
parent73b4fc92f97d775da26d86d2732497be6c610ec6
module: Modify module_flags() to accept show_state argument

No functional change.

With this patch a given module's state information (i.e. 'mod->state')
can be omitted from the specified buffer. Please note that this is in
preparation to include the last unloaded module's taint flag(s),
if available.

Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h
kernel/module/main.c
kernel/module/procfs.c