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

Klaus Jensen its at irrelevant.dk
Tue Dec 13 00:52:18 PST 2022


On Dec 13 09:50, Christoph Hellwig wrote:
> 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.
> 

Yes, I'll fix it :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20221213/46670dd1/attachment.sig>


More information about the Linux-nvme mailing list