Re: [PATCH] Fix warning in tegra_fuse_add_lookups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 28, 2024 at 05:18:48PM GMT, Thierry Reding wrote:
> From: Thierry Reding <treding@xxxxxxxxxx>
> 
> 
> On Sun, 16 Jun 2024 00:36:57 -0700, Jason Sikes wrote:
> > gcc 14.1.1 warns [-Wcalloc-transposed-args] when sizeof() is
> > used in the first, but not the second, of two size_t arguments.
> > 
> > 
> 
> Applied, thanks!
> 
> [1/1] Fix warning in tegra_fuse_add_lookups
>       commit: f56da7f4048ff41cb029a715935394f5958a825f
> 
> Best regards,

Scratch that. Looks like gcc isn't warning correctly here.
kmemdup_array() does have "size_t element_size, size_t count", so the
existing code is correct.

Thierry

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux