diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-04-18 01:48:04 +0300 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-04-18 21:36:00 +0300 |
commit | 719ccd803ed5bd1ad92b0b46fc095b8fe266827e (patch) | |
tree | bc3d034e5436a61f10fec8d31ba251fd7c516550 /kernel/panic.c | |
parent | 635dc38314c75c5727711d896d4c71ec92f6f20b (diff) | |
download | linux-719ccd803ed5bd1ad92b0b46fc095b8fe266827e.tar.xz |
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: df3e764d8e5c ("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>
Diffstat (limited to 'kernel/panic.c')
0 files changed, 0 insertions, 0 deletions