linux/kernel/module
Tom Rix 9f5cab173e module: remove use of uninitialized variable len
clang build reports
kernel/module/stats.c:307:34: error: variable
  'len' is uninitialized when used here [-Werror,-Wuninitialized]
        len = scnprintf(buf + 0, size - len,
                                        ^~~
At the start of this sequence, neither the '+ 0', nor the '- len' are needed.
So remove them and fix using 'len' uninitalized.

Fixes: df3e764d8e ("module: add debug stats to help identify memory pressure")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-04-18 11:36:24 -07:00
..
debug_kmemleak.c
decompress.c module: add debug stats to help identify memory pressure 2023-04-18 11:15:24 -07:00
internal.h module: add debug stats to help identify memory pressure 2023-04-18 11:15:24 -07:00
kallsyms.c module: Ignore L0 and rename is_arm_mapping_symbol() 2023-04-13 17:15:50 -07:00
Kconfig module: add debug stats to help identify memory pressure 2023-04-18 11:15:24 -07:00
kdb.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
kmod.c modules/kmod: replace implementation with a semaphore 2023-04-18 11:15:24 -07:00
livepatch.c
main.c module: avoid allocation if module is already present and ready 2023-04-18 11:15:24 -07:00
Makefile module: add debug stats to help identify memory pressure 2023-04-18 11:15:24 -07:00
procfs.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
signing.c
stats.c module: remove use of uninitialized variable len 2023-04-18 11:36:24 -07:00
strict_rwx.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
sysfs.c module: remove redundant module_sysfs_initialized variable 2022-11-11 10:19:52 -08:00
tracking.c module: add debug stats to help identify memory pressure 2023-04-18 11:15:24 -07:00
tree_lookup.c module: replace module_layout with module_memory 2023-03-09 12:55:15 -08:00
version.c