[PATCH] nvme-pci: fix doorbell buffer value endianness

Christoph Hellwig hch at lst.de
Tue Dec 13 00:50:57 PST 2022


On Mon, Dec 12, 2022 at 04:02:43PM +0100, Klaus Jensen wrote:
> -		old_value = *dbbuf_db;
> -		*dbbuf_db = value;
> +		old_value = le32_to_cpu(*dbbuf_db);
> +		*dbbuf_db = cpu_to_le32(value);

As the buildbot noticed, this now means dbbuf_dbs needs to be
a __le32, and the endianess annoations will have to wee through
quite a few places.



More information about the Linux-nvme mailing list