projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d275b
)
x86: fsp: Fix cast for 64-bit compilation
author
Simon Glass
<
[email protected]
>
Mon, 16 Jan 2017 14:03:41 +0000
(07:03 -0700)
committer
Bin Meng
<
[email protected]
>
Mon, 6 Feb 2017 03:38:46 +0000
(11:38 +0800)
Fix a cast in get_next_hob() that causes warnings on 64-bit machines.
Signed-off-by: Simon Glass <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
arch/x86/include/asm/fsp/fsp_hob.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/fsp/fsp_hob.h
b/arch/x86/include/asm/fsp/fsp_hob.h
index 3fb3546e27f8f76e1bd72fd1b3db6f8cdeb5f6c8..7c22bcd5cd8e7448d1daffd41a28abf0069a8dfa 100644
(file)
--- a/
arch/x86/include/asm/fsp/fsp_hob.h
+++ b/
arch/x86/include/asm/fsp/fsp_hob.h
@@
-139,7
+139,7
@@
struct hob_guid {
*/
static inline const struct hob_header *get_next_hob(const struct hob_header *hdr)
{
- return (const struct hob_header *)((u
32
)hdr + hdr->len);
+ return (const struct hob_header *)((u
intptr_t
)hdr + hdr->len);
}
/**
@@
-172,7
+172,7
@@
static inline bool end_of_hob(const struct hob_header *hdr)
*/
static inline void *get_guid_hob_data(const struct hob_header *hdr)
{
- return (void *)((u
32
)hdr + sizeof(struct hob_guid));
+ return (void *)((u
intptr_t
)hdr + sizeof(struct hob_guid));
}
/**