[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fa8eec6c-fb0b-cb44-a891-e09d5b738672@cogentembedded.com>
Date: Mon, 16 Jul 2018 22:52:33 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Niklas Söderlund
<niklas.soderlund+renesas@...natech.se>, netdev@...r.kernel.org
Cc: linux-renesas-soc@...r.kernel.org
Subject: Re: [PATCH 3/3] ravb: fix byte order for TX descriptor tag field
lower bits
On 07/16/2018 03:19 PM, Niklas Söderlund wrote:
> The wrong helper is used to swap the bytes when adding the lower bits of
> the TX descriptors tag field in the shared ds_tagl variable. The
> variable contains the DS[11:0] field and then the TAG[3:0] bits.
>
> The mistake was highlighted by the sparse warning:
>
> ravb_main.c:1622:31: left side has type restricted __le16
> ravb_main.c:1622:31: right side has type unsigned short
> ravb_main.c:1622:31: warning: invalid assignment: |=
> ravb_main.c:1622:34: warning: cast to restricted __le16
Again, it's good that it's not a real bug! :-)
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@...natech.se>
[...]
Acked-by: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
MBR, Sergei
Powered by blists - more mailing lists