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

2017-07-06 Thread Guenter Roeck
On 07/05/2017 07:57 PM, Thomas Gardner wrote: Guenter Roeck / 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 types) typec/tcpm.c:1019:49

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

2017-07-05 Thread Thomas Gardner
Guenter Roeck / 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 > > types) > > typec/tcpm.c:1019:49:expected unsigned int [

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

2017-07-05 Thread Guenter Roeck
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 types) typec/tcpm.c:1019:49:expected unsigned int [unsigned] [usertype] typec/tcpm.c:1019:49:got restric

[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 Ga