Skip to content

Commit

Permalink
sparse: hdata/spira sw_xstop_fir_bitpos is uint8_t, has no endian
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stewartsmith authored and oohal committed Jul 19, 2019
1 parent 4bec3e9 commit 33753c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hdata/spira.c
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion hdata/test/op920.wsp.dts
Expand Up @@ -8,7 +8,7 @@
ibm,io-base-loc-code = "UOPWR.7887E6A-Node0";
nest-frequency = <0x0 0x77359400>;
vendor = "IBM";
ibm,sw-checkstop-fir = <0x5012000 0x1f000000>;
ibm,sw-checkstop-fir = <0x5012000 0x1f>;
model = "8335-GTH";
system-id = "7887E6A";
model-name = "ibm,witherspoon";
Expand Down

0 comments on commit 33753c9

Please sign in to comment.