Re: [PATCH] scsi: pmcraid: Replace cpu_to_be64 + le64_to_cpu with swab64
From: David Laight
Date: Wed Dec 10 2025 - 17:21:09 EST
On Wed, 10 Dec 2025 16:39:36 +0100
Thorsten Blum <thorsten.blum@xxxxxxxxx> wrote:
> On 10. Dec 2025, at 16:13, Christoph Hellwig wrote:
> > On Wed, Dec 10, 2025 at 03:33:21PM +0100, Thorsten Blum wrote:
> >> Replace cpu_to_be64(le64_to_cpu()) with swab64() to simplify
> >> pmcraid_prepare_cancel_cmd().
> >
> > How does this not break the __le64/__be64 annotation checking?
>
> I'm not sure and didn't investigate, but it compiles without warnings.
>
>
You'd need to run sparse.
David