Re: [PATCH 1/3] cmd: ufetch: Fix type mismatch on 32-bit

2024-12-09 Thread Caleb Connolly
Hi J, Thanks for the patch! On 05/12/2024 19:35, J. Neuschäfer via B4 Relay wrote: > From: "J. Neuschäfer" > > On 32-bit architectures, LAST_LINE (_LAST_LINE - 1UL) is 64 bits long, > but size_t (from ARRAY_SIZE(...)) is 32 bits. This results in a warning > because the max() macro expects the s

[PATCH 1/3] cmd: ufetch: Fix type mismatch on 32-bit

2024-12-05 Thread J . Neuschäfer via B4 Relay
From: "J. Neuschäfer" On 32-bit architectures, LAST_LINE (_LAST_LINE - 1UL) is 64 bits long, but size_t (from ARRAY_SIZE(...)) is 32 bits. This results in a warning because the max() macro expects the same type on both sides: cmd/ufetch.c: In function ‘do_ufetch’: include/linux/kernel.h:179:24: