All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerry Van Baren <gvb.uboot@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] libfdt: Fix redefined uintptr_t warning for USE_HOSTCC
Date: Mon, 24 Nov 2008 08:15:02 -0500	[thread overview]
Message-ID: <20081124131502.GA4739@cideas.com> (raw)
In-Reply-To: <20081124083514.49EC18361B03@gemini.denx.de>

Compiling U-Boot in an old OS environment (RedHat-7.3  :-)  gives the
following warnings from FDT:

include/libfdt_env.h:50: warning: redefinition of 'uintptr_t'
/usr/include/stdint.h:129: warning: 'uintptr_t' previously declared here

Fix: Protect the definition of uintptr_t when compiling on the host
system.

Signed-off-by: Gerald Van Baren <vanbaren@cideas.com>
---

On Mon, Nov 24, 2008 at 09:35:14AM +0100, Wolfgang Denk wrote:
> Dear Jerry,
> 
> compiling U-Boot in an old OS environment (RedHat-7.3 :-) gives the
> following warnigns from FDT:
> 
> include/libfdt_env.h:50: warning: redefinition of `uintptr_t'
> /usr/include/stdint.h:129: warning: `uintptr_t' previously declared here
> 
> 
> Could you please have a look?  Thanks.
> 
> Best regards,
> 
> Wolfgang Denk

Dear Wolfgang,

Try this, it looks like a simple oversight.  I'm not sure why we don't
see it on a "modern" ;-) linux.

Best regards,
gvb

 include/libfdt_env.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/libfdt_env.h b/include/libfdt_env.h
index 355ebf2..ea474a5 100644
--- a/include/libfdt_env.h
+++ b/include/libfdt_env.h
@@ -47,6 +47,7 @@ extern struct fdt_header *working_fdt;  /* Pointer to the working fdt */
 #define cpu_to_fdt64(x)		(x)
 #endif
 
+#ifndef USE_HOSTCC
 /*
  * Types for `void *' pointers.
  *
@@ -58,5 +59,6 @@ typedef unsigned long int       uintptr_t;
 #else
 typedef unsigned int            uintptr_t;
 #endif
+#endif /* not USE_HOSTCC */
 
 #endif /* _LIBFDT_ENV_H */
-- 
1.5.6.5

  reply	other threads:[~2008-11-24 13:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-24  8:35 [U-Boot] FDT warning: redefinition of `uintptr_t' Wolfgang Denk
2008-11-24 13:15 ` Jerry Van Baren [this message]
2008-12-09 23:59   ` [U-Boot] [PATCH] libfdt: Fix redefined uintptr_t warning for USE_HOSTCC Wolfgang Denk

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=20081124131502.GA4739@cideas.com \
    --to=gvb.uboot@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.