summaryrefslogtreecommitdiffstats
path: root/kernel/module/procfs.c
diff options
context:
space:
mode:
authorAaron Tomlin <atomlin@redhat.com>2022-07-14 16:39:31 +0100
committerLuis Chamberlain <mcgrof@kernel.org>2022-07-14 17:40:23 -0700
commit17dd25c29cda98c370f8d5a4ae3daee33fac1669 (patch)
tree3afab20c095cdd90e31fdbdc3699693b944e2d04 /kernel/module/procfs.c
parent73b4fc92f97d775da26d86d2732497be6c610ec6 (diff)
downloadlinux-17dd25c29cda98c370f8d5a4ae3daee33fac1669.tar.bz2
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>
Diffstat (limited to 'kernel/module/procfs.c')
-rw-r--r--kernel/module/procfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module/procfs.c b/kernel/module/procfs.c
index 9a8f4f0f6329..cf5b9f1e6ec4 100644
--- a/kernel/module/procfs.c
+++ b/kernel/module/procfs.c
@@ -91,7 +91,7 @@ static int m_show(struct seq_file *m, void *p)
/* Taints info */
if (mod->taints)
- seq_printf(m, " %s", module_flags(mod, buf));
+ seq_printf(m, " %s", module_flags(mod, buf, true));
seq_puts(m, "\n");
return 0;