From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Sun, 19 Oct 2008 23:10:23 -0400 Subject: [U-Boot] FDT include file problems In-Reply-To: <20081019220159.CB9F8835697A@gemini.denx.de> References: <20081019220159.CB9F8835697A@gemini.denx.de> Message-ID: <20081020031023.GA18173@cideas.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Oct 20, 2008 at 12:01:59AM +0200, Wolfgang Denk wrote: > Hello, > > on some systems (for example Fedora Core 4) U-Boot builds with the > following wanrings only: > > ... > In file included from /home/wd/git/u-boot/include/libfdt_env.h:33, > from fdt.c:51: > /usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include instead! [snip] > However, for the FDT code this doesn't help, as we then will get > unresolved references for fdt32_to_cpu(), cpu_to_fdt32(), > fdt64_to_cpu() and cpu_to_fdt64(). > > The 32 bit accesses couldbe worked around by using htonl() resp. > ntohl(), but I don't know a good way for the 64 bit cases. > > Is there a clean and portable way to do this? > > Best regards, > > Wolfgang Denk Hi Wolfgang, Does this work better? Best regards, gvb