Re: [PATCH] mailbox: make cmd_dma a __le64 to reduce warnings

From: Florian Fainelli
Date: Thu Dec 19 2019 - 16:58:28 EST


On 12/19/19 9:01 AM, Ben Dooks (Codethink) wrote:
> The cmd_dma of the brcm_sba_command is often set from the
> result of cpu_to_le64, which means it should really be an
> __le64 type to avoid warnings such as:

It actually is always set from the result of cpu_to_le64() which is why
this is the correct thing to do.

>
> drivers/dma/bcm-sba-raid.c:583:25: warning: incorrect type in assignment (different base types)
> drivers/dma/bcm-sba-raid.c:583:25: expected unsigned long long [usertype]
> drivers/dma/bcm-sba-raid.c:583:25: got restricted __le64 [usertype]
>
> Note, this header dos not seem to be covered by the maintainers
> file, so just sending to the normal lists.
>
> Signed-off-by: Ben Dooks (Codethink) <ben.dooks@xxxxxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian