From: Wolfgang Denk Date: Sun, 08 Jul 2012 22:40:02 +0200 Subject: [U-Boot] [PATCH] net: make net_rand.h inclusion depend on BOOTP_RANDOM_DELAY In-Reply-To: <20120705181932.351bb5e527cb14b435961d66@freescale.com> References: <1338583180-422-1-git-send-email-michael@walle.cc> <20120705131812.7dc0668c4c0fab08884e6198@freescale.com> <201207052337.44092.michael@walle.cc> <20120705181932.351bb5e527cb14b435961d66@freescale.com> Message-ID: <20120708204002.D5B5220012A@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 Kim Phillips, In message <20120705181932.351bb5e527cb14b435961d66@freescale.com> you wrote: > commit "net: use common rand()/srand() functions" introduced the following > build warning on the current u-boot-arm tree: > > $ ./MAKEALL MPC8313ERDB_66 > Configuring for MPC8313ERDB_66 - Board: MPC8313ERDB, Options: SYS_66MHZ > text data bss dec hex filename > 271988 13976 41768 327732 50034 ./u-boot > In file included from bootp.c:15:0: > net_rand.h: In function 'srand_mac': > net_rand.h:40:2: warning: implicit declaration of function 'srand' [-Wimplicit-function-declaration] > > adding this dependency fixes it. > > Cc: Michael Walle > Cc: Joe Hershberger > Signed-off-by: Kim Phillips > --- > net/bootp.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Applied, thanks. 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 If it happens once, it's a bug. If it happens twice, it's a feature. If it happens more than twice, it's a design philosophy.