aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 12:24:25 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 12:24:25 +1100
commit0e25389896841fbaa345d352bec12958fcb6c507 (patch)
treefd6bafc9e0db9daadd897d1c57ac04fe6bcc437e /hdata
parent1987ba56c6031d725c2a5af6d59074c4f73a1a80 (diff)
downloadskiboot-0e25389896841fbaa345d352bec12958fcb6c507.zip
skiboot-0e25389896841fbaa345d352bec12958fcb6c507.tar.gz
skiboot-0e25389896841fbaa345d352bec12958fcb6c507.tar.bz2
sparse: fix beint32_t degrades to int wantings in hdata/spira.c
hdata/spira.c:757:14: warning: restricted beint32_t degrades to integer hdata/spira.c:773:14: warning: restricted beint32_t degrades to integer Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/spira.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hdata/spira.c b/hdata/spira.c
index b35ca9c..d0b0ce8 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -754,7 +754,7 @@ static void add_iplparams_ipl_params(const void *iplp, struct dt_node *node)
* and the FSP expects the firmware to reset the PCI bus
* numbers and respond with a Power Down (CE,4D,02) message
*/
- if (p->other_attrib & IPLPARAMS_OATTR_RST_PCI_BUSNO)
+ if (be32_to_cpu(p->other_attrib) & IPLPARAMS_OATTR_RST_PCI_BUSNO)
dt_add_property_cells(node, "pci-busno-reset-ipl", 1);
dt_add_property_strings(node, "cec-ipl-side",
(p->ipl_side & IPLPARAMS_CEC_FW_IPL_SIDE_TEMP) ?
@@ -770,7 +770,7 @@ static void add_iplparams_ipl_params(const void *iplp, struct dt_node *node)
led_node = dt_find_by_path(opal_node, DT_PROPERTY_LED_NODE);
assert(led_node);
- if (p->other_attrib & IPLPARAMS_OATRR_LIGHT_PATH)
+ if (be32_to_cpu(p->other_attrib) & IPLPARAMS_OATRR_LIGHT_PATH)
dt_add_property_strings(led_node, DT_PROPERTY_LED_MODE,
LED_MODE_LIGHT_PATH);
else