aboutsummaryrefslogtreecommitdiff
path: root/hw/capp.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2018-12-17 18:28:08 +1100
committerStewart Smith <stewart@linux.ibm.com>2019-01-18 16:36:54 +1100
commit59a21fc87f54075365e63a3a6950576a4c7746f3 (patch)
treee9e0364b583f97dfe2683a19e36e349f47a6d69c /hw/capp.c
parent44aa41061a9ffc289ff6b7d7b47132c4f15896bd (diff)
downloadskiboot-59a21fc87f54075365e63a3a6950576a4c7746f3.zip
skiboot-59a21fc87f54075365e63a3a6950576a4c7746f3.tar.gz
skiboot-59a21fc87f54075365e63a3a6950576a4c7746f3.tar.bz2
sparse: Make tree 'constant is so big' warning clean
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/capp.c')
-rw-r--r--hw/capp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/capp.c b/hw/capp.c
index 78ab058..7287ed8 100644
--- a/hw/capp.c
+++ b/hw/capp.c
@@ -175,7 +175,7 @@ int64_t capp_load_ucode(unsigned int chip_id, uint32_t opal_id,
}
/* 'CAPPULID' in ASCII */
- if ((be64_to_cpu(ucode->eyecatcher) != 0x43415050554C4944) ||
+ if ((be64_to_cpu(ucode->eyecatcher) != 0x43415050554C4944UL) ||
(be64_to_cpu(ucode->version != 1))) {
PHBERR(opal_id, chip_id, index,
"CAPP: ucode header invalid\n");
@@ -190,7 +190,7 @@ int64_t capp_load_ucode(unsigned int chip_id, uint32_t opal_id,
offset += sizeof(struct capp_ucode_data_hdr) + chunk_count * 8;
/* 'CAPPUCOD' in ASCII */
- if (be64_to_cpu(data->hdr.eyecatcher) != 0x4341505055434F44) {
+ if (be64_to_cpu(data->hdr.eyecatcher) != 0x4341505055434F44UL) {
PHBERR(opal_id, chip_id, index,
"CAPP: ucode data header invalid:%i\n",
offset);