Re: [PATCH v4] staging: rtl8723bs: Replace kzalloc with kzalloc_obj
From: Greg KH
Date: Sun Feb 22 2026 - 11:42:20 EST
On Sun, Feb 22, 2026 at 09:20:18PM +0500, Mariyam Shahid wrote:
> Replace kzalloc() using sizeof(*ptr) with kzalloc_obj()
> to fix respective checkpatch warnings.
>
> Reviewed-by: Ethan Tidmore <ethantidmore06@xxxxxxxxx>
> Signed-off-by: Mariyam Shahid <mariyam.shahid135@xxxxxxxxx>
> ---
>
> v4: added changelog
> v3: rebased on staging-next, kzalloc_obj now available in this tree
> v2: switched to kzalloc_obj as suggested by Dan Carpenter
> v1: initial submission
This is not how the _obj() calls are changing to work, please wait for
-rc1 to be out before doing stuff like this (see the changes that _just_
landed in Linus's tree for this.)
thanks,
greg k-h