[U-Boot] [PATCH 0/5] Do not use __DATE__ and __TIME__ anymore

Masahiro Yamada yamada.m at jp.panasonic.com
Thu Apr 17 10:00:27 CEST 2014


The aim of this series is to prohibit using __DATE__ and __TIME__.

Currently they are used in two files.

[1] arch/blackfin/include/asm/net.h

Blackfin is using __DATE__ as the seed for the random ethernet address.

This feature will be replaced with genericly-used eth_random_addr().

[2] fs/ubifs/super.c

__DATE__ and __TIME__ are used in dbg_msg(), so simply droppred.



Masahiro Yamada (5):
  rand: do not surround function declarations by #ifdef
  net: rename and refactor eth_rand_ethaddr() function
  blackfin: replace bfin_gen_rand_mac() with eth_random_addr()
  fs: ubifs: drop __DATE__ and __TIME__
  kbuild: build with -Werror=date-time if the compiler supports it

 Makefile                              |  3 +++
 arch/blackfin/include/asm/net.h       | 28 ---------------------------
 board/bct-brettl2/bct-brettl2.c       |  3 +--
 board/bf518f-ezbrd/bf518f-ezbrd.c     |  3 +--
 board/bf526-ezbrd/bf526-ezbrd.c       |  3 +--
 board/bf527-ezkit/bf527-ezkit.c       |  3 +--
 board/bf537-minotaur/bf537-minotaur.c |  3 +--
 board/bf537-pnav/bf537-pnav.c         |  3 +--
 board/bf537-srv1/bf537-srv1.c         |  3 +--
 board/bf537-stamp/bf537-stamp.c       |  3 +--
 board/buffalo/lsxl/lsxl.c             |  2 +-
 board/cm-bf527/cm-bf527.c             |  3 +--
 board/cm-bf537e/cm-bf537e.c           |  3 +--
 board/cm-bf537u/cm-bf537u.c           |  3 +--
 board/dnp5370/dnp5370.c               |  3 +--
 board/ip04/ip04.c                     |  3 +--
 board/tcm-bf518/tcm-bf518.c           |  3 +--
 board/tcm-bf537/tcm-bf537.c           |  3 +--
 drivers/net/dm9000x.c                 |  2 +-
 drivers/net/ftmac110.c                |  2 +-
 fs/ubifs/super.c                      |  1 -
 include/common.h                      |  2 --
 include/configs/bct-brettl2.h         |  1 +
 include/configs/bf518f-ezbrd.h        |  2 +-
 include/configs/bf526-ezbrd.h         |  2 +-
 include/configs/bf527-ezkit.h         |  2 +-
 include/configs/bf537-minotaur.h      |  1 +
 include/configs/bf537-pnav.h          |  2 +-
 include/configs/bf537-srv1.h          |  2 +-
 include/configs/bf537-stamp.h         |  2 +-
 include/configs/cm-bf527.h            |  2 +-
 include/configs/cm-bf537e.h           |  2 +-
 include/configs/cm-bf537u.h           |  2 +-
 include/configs/dnp5370.h             |  2 ++
 include/configs/ip04.h                |  1 +
 include/configs/tcm-bf518.h           |  2 +-
 include/configs/tcm-bf537.h           |  2 +-
 include/net.h                         | 36 ++++++++++++++++++-----------------
 net/eth.c                             | 22 ---------------------
 39 files changed, 56 insertions(+), 114 deletions(-)
 delete mode 100644 arch/blackfin/include/asm/net.h

-- 
1.8.3.2



More information about the U-Boot mailing list