Message ID | 20190718065117.16923-11-stewart@linux.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | Misc sparse fixes | expand |
Context | Check | Description |
---|---|---|
snowpatch_ozlabs/apply_patch | success | Successfully applied on branch master (3a6fdede6ce117facec0108afe716cf5d0472c3f) |
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot | success | Test snowpatch/job/snowpatch-skiboot on branch master |
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco | success | Signed-off-by present |
diff --git a/libstb/container.c b/libstb/container.c index a720fbbf1e8b..5287c94dda5f 100644 --- a/libstb/container.c +++ b/libstb/container.c @@ -35,7 +35,7 @@ uint32_t stb_payload_magic(const void *buf, size_t size) if (!stb_is_container(buf, size)) return 0; p = (uint8_t*) buf; - return be32_to_cpu(*(uint32_t*)(p+SECURE_BOOT_HEADERS_SIZE)); + return be32_to_cpu(*(be32*)(p+SECURE_BOOT_HEADERS_SIZE)); } uint64_t stb_sw_payload_size(const void *buf, size_t size)
libstb/container.c:38:28: warning: incorrect type in argument 1 (different base types) libstb/container.c:38:28: expected restricted beint32_t [usertype] be_val libstb/container.c:38:28: got unsigned int [usertype] Signed-off-by: Stewart Smith <stewart@linux.ibm.com> --- libstb/container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)