linux/kernel/module
Arnd Bergmann 719ccd803e module: fix building stats for 32-bit targets
The new module statistics code mixes 64-bit types and wordsized 'long'
variables, which leads to build failures on 32-bit architectures:

kernel/module/stats.c: In function 'read_file_mod_stats':
kernel/module/stats.c:291:29: error: passing argument 1 of 'atomic64_read' from incompatible pointer type [-Werror=incompatible-pointer-types]
  291 |  total_size = atomic64_read(&total_mod_size);
x86_64-linux-ld: kernel/module/stats.o: in function `read_file_mod_stats':
stats.c:(.text+0x2b2): undefined reference to `__udivdi3'

To fix this, the code has to use one of the two types consistently.

Change them all to word-size types here.

Fixes: df3e764d8e ("module: add debug stats to help identify memory pressure")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
2023-04-18 11:36:00 -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: fix building stats for 32-bit targets 2023-04-18 11:36:00 -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