Re: [PATCH] staging: vme_user: use kmalloc_obj instead of kmalloc
From: Samyak Bambole
Date: Sat Feb 14 2026 - 11:10:44 EST
On 2/14/26 9:32 PM, Greg KH wrote:
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?
Yeah I'm pretty sure it is relatively new, it was documented in Documentation/process/deprecated.rst.
I would be happy to make this replacement in other staging drivers if that would be useful
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
Thanks for the feedback, I'll make the modifications and send a v2.
Thanks,
Samyak Bambole