From: Kim Phillips Date: Thu, 5 Jul 2012 13:18:12 -0500 Subject: [U-Boot] [PATCH v8 2/4] net: use common rand()/srand() functions In-Reply-To: References: <1338583180-422-1-git-send-email-michael@walle.cc> <1338583180-422-3-git-send-email-michael@walle.cc> Message-ID: <20120705131812.7dc0668c4c0fab08884e6198@freescale.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, 4 Jun 2012 15:10:55 -0500 Joe Hershberger wrote: > On Fri, Jun 1, 2012 at 3:39 PM, Michael Walle wrote: > > Replace rand() with the functions from lib/. The link-local network code > > stores its own seed, derived from the MAC address. Thus making it > > independent from calls to srand() in other modules. > > > > Signed-off-by: Michael Walle > > Cc: Joe Hershberger > > --- > > Acked-by: Joe Hershberger build-testing mpc83xx on the current u-boot-arm tree (v1.3.4-10940-gb003588, which contains this patch) produces the following new warning: $ ./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] How do we fix this? Kim