[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZD3W5iSmzsOu51uB@bombadil.infradead.org>
Date: Mon, 17 Apr 2023 16:31:50 -0700
From: Luis Chamberlain <mcgrof@...nel.org>
To: Arnd Bergmann <arnd@...nel.org>
Cc: Arnd Bergmann <arnd@...db.de>, linux-modules@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [v2] module: fix building stats for 32-bit targets
On Tue, Apr 18, 2023 at 12:48:04AM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@...db.de>
>
> 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: 0d4ab68ce983 ("module: add debug stats to help identify memory pressure")
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> v2: use long instead of u64 everywheren
Thanks, applied and pushed!
Luis
Powered by blists - more mailing lists