From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Laurent Gregoire
<laurent.gregoire-Jdzig1fPfSTQT0dZR+AlfA@public.gmane.org>
Cc: devicetree-discuss
<devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH] libfdt: Fix C++ compile-time cast error on gnu 4.2.1
Date: Wed, 4 Mar 2009 12:05:35 +1100 [thread overview]
Message-ID: <20090304010535.GA7287@yookeroo.seuss> (raw)
In-Reply-To: <1236086639.17001.428.camel-AlTa8cHOufjkPJRI6LV1/EZjUo8kaGiB@public.gmane.org>
On Tue, Mar 03, 2009 at 02:23:59PM +0100, Laurent Gregoire wrote:
> Allow the inclusion of libfdt.h in C++ source.
> ---
> Signed-off-by: Laurent Gregoire <laurent.gregoire-Jdzig1fPfSTQT0dZR+AlfA@public.gmane.org>
Acked-by: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
> ---
> diff -uprN a/libfdt/libfdt.h b/libfdt/libfdt.h
> --- a/libfdt/libfdt.h 2008-07-25 23:17:04.000000000 +0200
> +++ b/libfdt/libfdt.h 2009-03-03 14:01:38.000000000 +0100
> @@ -156,7 +156,7 @@ int fdt_next_node(const void *fdt, int o
> #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);
>
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2009-03-04 1:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 13:23 [PATCH] libfdt: Fix C++ compile-time cast error on gnu 4.2.1 Laurent Gregoire
[not found] ` <1236086639.17001.428.camel-AlTa8cHOufjkPJRI6LV1/EZjUo8kaGiB@public.gmane.org>
2009-03-04 1:05 ` David Gibson [this message]
2009-03-04 14:13 ` Jon Loeliger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090304010535.GA7287@yookeroo.seuss \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
--cc=laurent.gregoire-Jdzig1fPfSTQT0dZR+AlfA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox