Re: [PATCH] staging: vme_user: use kmalloc_obj instead of kmalloc
From: Greg KH
Date: Sat Feb 14 2026 - 11:03:05 EST
On Sat, Feb 14, 2026 at 09:21:57PM +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
> allocation pattern.
This is a new thing, right? Are we going to be doing this for all
staging drivers going forward?
> Changes:
> - vme.c: 12 replacements
> - vme_fake.c: 3 replacements
> - vme_tsi148.c: 7 replacements
There's no need for these lines in the changelog text, sorry. Can you
fix that up and resend a v2?
thanks,
greg k-h