Commit a81b1fc8 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Luis Chamberlain

module: stats: fix invalid_mod_bytes typo

This was caught by randconfig builds but does not show up in
build testing without CONFIG_MODULE_DECOMPRESS:

kernel/module/stats.c: In function 'mod_stat_bump_invalid':
kernel/module/stats.c:229:42: error: 'invalid_mod_byte' undeclared (first use in this function); did you mean 'invalid_mod_bytes'?
  229 |   atomic_long_add(info->compressed_len, &invalid_mod_byte);
      |                                          ^~~~~~~~~~~~~~~~
      |                                          invalid_mod_bytes

Fixes: df3e764d ("module: add debug stats to help identify memory pressure")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Tested-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Signed-off-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
parent 9f5cab17
...@@ -223,7 +223,7 @@ void mod_stat_bump_invalid(struct load_info *info, int flags) ...@@ -223,7 +223,7 @@ void mod_stat_bump_invalid(struct load_info *info, int flags)
atomic_inc(&failed_load_modules); atomic_inc(&failed_load_modules);
#if defined(CONFIG_MODULE_DECOMPRESS) #if defined(CONFIG_MODULE_DECOMPRESS)
if (flags & MODULE_INIT_COMPRESSED_FILE) if (flags & MODULE_INIT_COMPRESSED_FILE)
atomic_long_add(info->compressed_len, &invalid_mod_byte); atomic_long_add(info->compressed_len, &invalid_mod_bytes);
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment