From: Wolfgang Denk Date: Tue, 09 Sep 2008 23:32:03 +0200 Subject: [U-Boot] [PATCH 1/2] Update i386 code (sc520_cdp) In-Reply-To: References: <20080906154257.749BC24815@gemini.denx.de> <1220735322.6322.8.camel@devel> <20080909094956.26EE52489D@gemini.denx.de> Message-ID: <20080909213203.A266A2491D@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear "Graeme Russ", In message you wrote: > > >> @@ -40,7 +40,7 @@ > >> #include > >> #include > >> #include > >> - > >> +#include > >> #else > > > > Including seems bogus to me as this is already done in > > which is included just two lines above. Please > > check. > > I've rechecked, but removing this include results in an implicit > declaration of function 'strncpy' on line 401 of /include/image.h But this makes no sense to me. That's the relevant code from "include/linux/string.h": 18 /* 19 * Include machine specific inline routines 20 */ 21 #include 22 23 #ifndef __HAVE_ARCH_STRCPY 24 extern char * strcpy(char *,const char *); 25 #endif 26 #ifndef __HAVE_ARCH_STRNCPY 27 extern char * strncpy(char *,const char *, __kernel_size_t); 28 #endif You include , which in turn unconditionally includes , so including another time in makes no sense to me. Can you please dig a bit deeper what's happening there? "gcc -E" might help... Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Life is a game. Money is how we keep score. - Ted Turner