Re: [PATCH] staging: gpib: gpio: use sizeof(*ptr) in kzalloc

From: Greg KH

Date: Sun May 03 2026 - 05:49:01 EST


On Sun, May 03, 2026 at 03:05:58PM +0530, Ajanth Badiger wrote:
> Replace sizeof(struct bb_priv) with sizeof(*board->private_data)
> to follow kernel coding style and improve maintainability.
>
> checkpatch.pl also reports that LINVAL macro should be enclosed
> in parentheses. However, LINVAL intentionally expands to a
> comma-separated list of arguments matching the LINFMT format
> string used in dbg_printk() calls.
>
> Wrapping it in parentheses would change semantics due to the
> comma operator, causing only the last expression to be passed.
>
> Therefore, no change is made to LINVAL.
>
> Signed-off-by: Ajanth Badiger <badigerajanth1301@xxxxxxxxx>
> ---
> drivers/staging/gpib/gpio/gpib_bitbang.c | 2 +-

This file is not in the tree, what version did you make this against?
Please always use linux-next for development work.

thanks,

greg k-h