Re: [PATCH] [RESEND] drm/imagination: avoid -Woverflow warning

2024-03-25 Thread Matt Coster
On 22/03/2024 13:01, Arnd Bergmann wrote: > From: Arnd Bergmann > > The array size calculation in pvr_vm_mips_fini() appears to be incorrect > based on > taking the size of the pointer rather than the size of the array, which > manifests > as a warning about signed integer overflow: > > In fil

[PATCH] [RESEND] drm/imagination: avoid -Woverflow warning

2024-03-22 Thread Arnd Bergmann
From: Arnd Bergmann The array size calculation in pvr_vm_mips_fini() appears to be incorrect based on taking the size of the pointer rather than the size of the array, which manifests as a warning about signed integer overflow: In file included from include/linux/kernel.h:16,