[Skiboot] [PATCH] i2c: Fix sparse warnings for type assignment

Stewart Smith stewart at linux.ibm.com
Mon Mar 4 14:08:36 AEDT 2019


Stewart Smith <stewart at linux.ibm.com> writes:
> Use the correct beXX_to_cpu() macros.
>
> core/i2c.c:105:29: warning: incorrect type in assignment (different base types)
> core/i2c.c:105:29:    expected unsigned int [usertype] offset
> core/i2c.c:105:29:    got restricted beint32_t [usertype] subaddr
> core/i2c.c:110:29: warning: incorrect type in assignment (different base types)
> core/i2c.c:110:29:    expected unsigned int [usertype] offset
> core/i2c.c:110:29:    got restricted beint32_t [usertype] subaddr
> core/i2c.c:117:23: warning: incorrect type in assignment (different base types)
> core/i2c.c:117:23:    expected unsigned int [usertype] dev_addr
> core/i2c.c:117:23:    got restricted beint16_t [usertype] addr
> core/i2c.c:118:21: warning: incorrect type in assignment (different base types)
> core/i2c.c:118:21:    expected unsigned int [usertype] rw_len
> core/i2c.c:118:21:    got restricted beint32_t [usertype] size
> core/i2c.c:119:24: warning: cast from restricted beint64_t

Merged to master as of ee01ef4ed82aa78fcf5516ffd6d49a92b8e912bf
-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list