* [U-Boot] [PATCH 4/4] libfdt: Fix C++ compile-time cast error on gnu 4.2.1
@ 2009-04-01 23:54 Jerry Van Baren
0 siblings, 0 replies; only message in thread
From: Jerry Van Baren @ 2009-04-01 23:54 UTC (permalink / raw)
To: u-boot
Allow the inclusion of libfdt.h in C++ source.
Signed-off-by: Laurent Gregoire <laurent.gregoire@tomtom.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
---
include/libfdt.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/libfdt.h b/include/libfdt.h
index ce374fd..d23d40e 100644
--- a/include/libfdt.h
+++ b/include/libfdt.h
@@ -156,7 +156,7 @@ int fdt_next_node(const void *fdt, int offset, int *depth);
#define __fdt_set_hdr(name) \
static inline void fdt_set_##name(void *fdt, uint32_t val) \
{ \
- struct fdt_header *fdth = fdt; \
+ struct fdt_header *fdth = (struct fdt_header*)fdt; \
fdth->name = cpu_to_fdt32(val); \
}
__fdt_set_hdr(magic);
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-01 23:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 23:54 [U-Boot] [PATCH 4/4] libfdt: Fix C++ compile-time cast error on gnu 4.2.1 Jerry Van Baren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox