Re: [PATCH] staging: ks7010: clean up code

From: Ernestas Kulik
Date: Sat Mar 04 2017 - 01:50:01 EST


On Fri, 2017-03-03 at 22:37-0800, Joe Perches wrote:
>
> struct hostif_hdr.event is declared at uint16_t
> and not as __le16 so I believe this is incorrect
> and actually introduces a sparse error.

Sure, but I change that in the patch. :)

On Sat, 2017-03-04 at 08:28 +0200, Ernestas Kulik wrote:
>
> struct hostif_hdr {
>- uint16_t size;
>- uint16_t event;
>+ __le16 size;
>+ __le16 event;
> } __packed;