[U-Boot] [PATCH v3 0/3] reduce warnings with W=1

Jeroen Hofstee jeroen at myspectrum.nl
Mon Oct 27 22:27:17 CET 2014


When compiling u-boot with W=1 there are numerous of warnings.
This patchset attempts to reduce it a bit. One source of false
warnings are the aliases missing a prototype, most of them are
replaced with __weak functions. Others are cause by missing
includes / local functions not be marked as such. At last some
actual missing prototypes are added. These are (hopefully) just
trivial patches, some less than trial is ahead of us.

v3:
  - i2c did contain another alias function, i2c_init_board. This
    time the correct patch is squashed with it. Only this patch
    resend (1/3).

v2:
  - rebase on master (most of this serie is applied, so remaining
    patches are numbered differently.
  - drop "PATCH 25/49 spi: make local functions static". Tom posted
    a more complete cleanup.
  - Drop common/cmd_elf.c: add missing include (a slightly adjusted
    version was applied).
  - split i2c: use __weak (included i2c and l2_cache)
  - redo serial: add prototypes for init functions

Jeroen Hofstee (3):
  i2c: use __weak
  arm926ejs: cache: use __weak
  serial: add prototypes for init functions

 arch/arm/cpu/arm926ejs/cache.c |   5 +-
 drivers/i2c/i2c_core.c         |   8 +--
 drivers/serial/serial.c        | 140 ++++++++++++++++++++---------------------
 include/serial.h               |  49 +++++++++++++++
 4 files changed, 122 insertions(+), 80 deletions(-)

-- 
2.1.0



More information about the U-Boot mailing list