public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michael Walle <michael@walle.cc>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v9 2/4] net: use common rand()/srand() functions
Date: Sun, 8 Jul 2012 22:36:18 +0200	[thread overview]
Message-ID: <201207082236.18040.michael@walle.cc> (raw)
In-Reply-To: <20120708203136.A11B920012A@gemini.denx.de>

Hi Wolfgang,

Am Sonntag 08 Juli 2012, 22:31:36 schrieben Sie:
> Dear Michael,
> 
> In message <1338931997-13419-3-git-send-email-
michael@walle.cc> you 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 <michael@walle.cc>
> > Acked-by: Joe Hershberger <joe.hershberger@ni.com>
> > ---
> > 
> >  include/common.h |    4 ++-
> >  lib/Makefile     |    4 ++-
> >  net/Makefile     |    2 -
> >  net/link_local.c |    7 +++--
> >  net/net_rand.c   |   68
> >  
------------------------------------------------------ 
net/net_rand.h  
> >  |   31 +++++++++++++++++++-----
> >  6 files changed, 34 insertions(+), 82 deletions(-)
> >  delete mode 100644 net/net_rand.c
> 
> This commit causes build warnings like these for a 
zillion of boards:
> 
> net_rand.h:40:2: warning: implicit declaration of 
function 'srand'
> [-Wimplicit-function-declaration]

Kim Philipps already posted a patch for this, see here:
 http://patchwork.ozlabs.org/patch/169295/
and here:
  http://lists.denx.de/pipermail/u-boot/2012-
July/127745.html

-- 
Michael

  reply	other threads:[~2012-07-08 20:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-05 21:33 [U-Boot] [PATCH v9 0/4] Kirkwood: add lschlv2 and lsxhl board support Michael Walle
2012-06-05 21:33 ` [U-Boot] [PATCH v9 1/4] lib: add rand() function Michael Walle
2012-06-05 21:33 ` [U-Boot] [PATCH v9 2/4] net: use common rand()/srand() functions Michael Walle
2012-07-08 20:31   ` Wolfgang Denk
2012-07-08 20:36     ` Michael Walle [this message]
2012-07-08 20:43       ` Wolfgang Denk
2012-06-05 21:33 ` [U-Boot] [PATCH v9 3/4] net: add helper to generate random mac address Michael Walle
2012-06-05 21:33 ` [U-Boot] [PATCH v9 4/4] Kirkwood: add lschlv2 and lsxhl board support Michael Walle
2012-06-05 21:36 ` [U-Boot] [PATCH v9 0/4] " Michael Walle
2012-06-06  0:35   ` Joe Hershberger
2012-06-06  7:08     ` Michael Walle
2012-06-06 11:26       ` Prafulla Wadaskar
2012-06-21 18:27         ` Michael Walle
2012-06-25 21:30         ` Michael Walle
2012-06-26  6:29           ` Prafulla Wadaskar
2012-07-03  7:13           ` Prafulla Wadaskar

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=201207082236.18040.michael@walle.cc \
    --to=michael@walle.cc \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox