Re: [PATCH v2] staging: vme_user: use kmalloc_obj instead of kmalloc

From: Greg KH

Date: Sat Feb 14 2026 - 11:28:09 EST


On Sat, Feb 14, 2026 at 09:43:21PM +0530, Samyak wrote:
> From: Samyak Bambole <samyak.bambole07@xxxxxxxxx>
>
> Replace kmalloc(sizeof(*ptr), GFP_KERNEL) calls with kmalloc_obj(*ptr,
> GFP_KERNEL)
>
> This addresses scripts/checkpatch.pl warnings and follows the preffered

Nit, spelling problem in the last word :)

> allocation pattern.
>
> Signed-off-by: Samyak Bambole <samyak.bambole07@xxxxxxxxx>
>
> ---

You need to put what changed below the --- line as my bot recommends.

v3?

thanks,

greg k-h