diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2012-10-29 13:34:30 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-11-04 18:00:35 (GMT) |
commit | 2f220500a460ca197ec06aa280519509252ea1d8 (patch) | |
tree | 40579bfd21f25681172f523114d0047bd9f09fa4 /include/image.h | |
parent | 20051f2ab2b3f8d75bac2ec9466c52b2c4351323 (diff) | |
download | u-boot-fsl-qoriq-2f220500a460ca197ec06aa280519509252ea1d8.tar.xz |
include/image.h: sparse fixes
include/image.h:378:1: warning: cast to restricted __be32
include/image.h:381:1: warning: cast to restricted __be32
include/image.h:382:1: warning: cast to restricted __be32
include/image.h:383:1: warning: cast to restricted __be32
fix by annotating image header integers big endian.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/include/image.h b/include/image.h index 4e5863f..0a895f2 100644 --- a/include/image.h +++ b/include/image.h @@ -34,6 +34,7 @@ #define __IMAGE_H__ #include "compiler.h" +#include <asm/byteorder.h> #ifdef USE_HOSTCC @@ -183,13 +184,13 @@ * all data in network byte order (aka natural aka bigendian). */ typedef struct image_header { - uint32_t ih_magic; /* Image Header Magic Number */ - uint32_t ih_hcrc; /* Image Header CRC Checksum */ - uint32_t ih_time; /* Image Creation Timestamp */ - uint32_t ih_size; /* Image Data Size */ - uint32_t ih_load; /* Data Load Address */ - uint32_t ih_ep; /* Entry Point Address */ - uint32_t ih_dcrc; /* Image Data CRC Checksum */ + __be32 ih_magic; /* Image Header Magic Number */ + __be32 ih_hcrc; /* Image Header CRC Checksum */ + __be32 ih_time; /* Image Creation Timestamp */ + __be32 ih_size; /* Image Data Size */ + __be32 ih_load; /* Data Load Address */ + __be32 ih_ep; /* Entry Point Address */ + __be32 ih_dcrc; /* Image Data CRC Checksum */ uint8_t ih_os; /* Operating System */ uint8_t ih_arch; /* CPU architecture */ uint8_t ih_type; /* Image Type */ |