[PATCH 2/2] nvme: trace: avoid memcpy overflow warning

Christoph Hellwig hch at lst.de
Thu Jan 4 20:31:32 PST 2024


On Wed, Jan 03, 2024 at 04:56:56PM +0100, Arnd Bergmann wrote:
> -		memcpy(__entry->cdw10, &cmd->common.cdw10,
> -			sizeof(__entry->cdw10));
> +		memcpy(__entry->cdw10, &cmd->common.cdws, sizeof(__entry->cdw10));

Please avoid the overly long line.



More information about the Linux-nvme mailing list