diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-07-18 16:51:16 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-07-19 17:45:50 +1000 |
commit | 33753c98ddb464c97a6e406dc64fe9dd5d3714f9 (patch) | |
tree | c51d385e42f6319ec2aa07c335814e80b26304f5 /hdata/spira.c | |
parent | 4bec3e9e6cfa963be55d8a7fd80d5f6fa0c25d2b (diff) | |
download | skiboot-33753c98ddb464c97a6e406dc64fe9dd5d3714f9.zip skiboot-33753c98ddb464c97a6e406dc64fe9dd5d3714f9.tar.gz skiboot-33753c98ddb464c97a6e406dc64fe9dd5d3714f9.tar.bz2 |
sparse: hdata/spira sw_xstop_fir_bitpos is uint8_t, has no endian
hdata/spira.c:625:33: warning: incorrect type in argument 1 (different base types)
hdata/spira.c:625:33: expected restricted beint32_t [usertype] be_val
hdata/spira.c:625:33: got unsigned char [usertype] fir_bit
hdata/spira.c:625:33: warning: incorrect type in argument 1 (different base types)
hdata/spira.c:625:33: expected restricted beint32_t [usertype] be_val
hdata/spira.c:625:33: got unsigned char [usertype] fir_bit
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hdata/spira.c')
-rw-r--r-- | hdata/spira.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hdata/spira.c b/hdata/spira.c index 945cc7e..dad779f 100644 --- a/hdata/spira.c +++ b/hdata/spira.c @@ -619,13 +619,13 @@ static bool add_xscom_sppcrd(uint64_t xscom_base) if ((csize >= (offsetof(struct sppcrd_chip_info, sw_xstop_fir_bitpos) + 1)) && cinfo->sw_xstop_fir_scom) { - __be32 fir_bit = cinfo->sw_xstop_fir_bitpos; + uint8_t fir_bit = cinfo->sw_xstop_fir_bitpos; if (!dt_find_property(dt_root, "ibm,sw-checkstop-fir")) dt_add_property_cells(dt_root, "ibm,sw-checkstop-fir", be32_to_cpu(cinfo->sw_xstop_fir_scom), - be32_to_cpu(fir_bit)); + fir_bit); } } |