Re: [PATCH v2] staging: typec: Fix endianness warning discovered by sparse

2017-07-06 Thread Thomas Gardner
Guenter Roeck<li...@roeck-us.net> / 2017-07-06T17:13-0700 > On 07/06/2017 03:54 PM, Thomas Gardner wrote: > > The below warning is resolved by removing the cpu_to_le32() call. This > > call was redundant; vdm_run_state_machine() ensures that SVDM responses > > have th

[PATCH v3] staging: typec: Fix endianness warning discovered by sparse

2017-07-06 Thread Thomas Gardner
:expected unsigned int [unsigned] [usertype] typec/tcpm.c:1019:49:got restricted __le32 [usertype] Signed-off-by: Thomas Gardner <t...@fastmail.com> --- drivers/staging/typec/tcpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/typec/tcpm.c b/d

[PATCH v2] staging: typec: Fix endianness warning discovered by sparse

2017-07-06 Thread Thomas Gardner
:expected unsigned int [unsigned] [usertype] typec/tcpm.c:1019:49:got restricted __le32 [usertype] Signed-off-by: Thomas Gardner <t...@fastmail.com> --- drivers/staging/typec/tcpm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/typec/tcpm.c b/d

Re: [PATCH] staging: typec: Fix type mismatch found with sparse

2017-07-05 Thread Thomas Gardner
Guenter Roeck<li...@roeck-us.net> / 2017-07-05T07:25-0700 > On 07/05/2017 07:00 AM, Thomas Gardner wrote: > > The warning below is resolved by casting the LHS to __le32. > > > > typec/tcpm.c:1019:49: warning: incorrect type in assignment (different base > >

[PATCH] staging: typec: Fix type mismatch found with sparse

2017-07-05 Thread Thomas Gardner
The warning below is resolved by casting the LHS to __le32. typec/tcpm.c:1019:49: warning: incorrect type in assignment (different base types) typec/tcpm.c:1019:49:expected unsigned int [unsigned] [usertype] typec/tcpm.c:1019:49:got restricted __le32 [usertype] Signed-off-by: Thomas

[PATCH] staging: fbtft: Fix type mismatch found with sparse

2017-07-03 Thread Thomas Gardner
__be64 [usertype] Signed-off-by: Thomas Gardner <t...@fastmail.com> --- drivers/staging/fbtft/fbtft-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging/fbtft/fbtft-io.c index d86840548b74..ffb9a3b4d454 100644 --- a/drivers/s