[U-Boot] [PATCH 00/49] reduce warnings with W=1

Jeroen Hofstee jeroen at myspectrum.nl
Wed Oct 8 22:57:20 CEST 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.

Jeroen Hofstee (49):
  arm: board: use __weak
  common: board: use __weak
  cti_flash.c: use __weak when requested
  i2c: use __weak
  misc: use __weak
  net: phy: fix warnings with W=1
  pci: use __weak
  samsung: board: use __weak
  usb: use __weak
  video: use __weak
  common: cmd_elf: make do_bootelf_exec static
  common: board_r: make local functions static
  disk/part.c: make local function static
  ehci-hcd.c: make local functions static
  env_nand: make local functions static
  eth: make eth_address_set static
  gpio: make local functions static
  image-fit: make local function static
  lmb: make local functions static
  net: fec_mxc: make local functions static
  omap3: make local functions static
  omap_gpmc: fix warnigs with W=1
  sdhci: make local functions static
  serial: make local functions static
  spi: make local functions static
  tegra: make local functions static
  video: ipu: prevent warnings with W=1
  common:console: add missing include
  string.h: add missing prototypes
  arch-mx: add missing include
  common/cmd_elf.c: add missing include
  imx: add missing includes
  leds: missing include
  lib: bootm: add missing include
  mmc: bcm2835_sdhci: add missing include
  net: davince: add missing include
  omap3: board: add missing include and proto
  twister: add missing includes
  arm: vectors: provide protypes from vectors.S
  bootm: add prototype for arch_preboot_os
  elf: add prototype for valid_elf_image
  fdt_support: add prototypes for __weak functions
  gpio: add protype for name_to_gpio
  ide: add missing prototype
  mmc: add prototype for mmc_get_env_addr
  serial: add prototypes for init functions
  spl: add prototype for jump_to_image_no_args
  tegra: add proto for pin_mux_mmc
  i2c: designware: add an implement i2c protos

 arch/arm/cpu/arm926ejs/at91/led.c           |   1 +
 arch/arm/cpu/arm926ejs/cache.c              |   5 +-
 arch/arm/cpu/armv7/mx6/soc.c                |   1 +
 arch/arm/cpu/armv7/omap3/board.c            |   3 +-
 arch/arm/cpu/armv7/omap3/emif4.c            |   2 +-
 arch/arm/cpu/armv7/omap3/sys_info.c         |   4 +-
 arch/arm/cpu/armv7/tegra20/display.c        |   3 +-
 arch/arm/cpu/tegra-common/sys_info.c        |   2 +-
 arch/arm/imx-common/cpu.c                   |   2 +
 arch/arm/imx-common/misc.c                  |   1 +
 arch/arm/include/asm/arch-mxs/sys_proto.h   |   2 +
 arch/arm/include/asm/arch-omap3/sys_proto.h |   1 +
 arch/arm/include/asm/arch-tegra/board.h     |  11 +-
 arch/arm/include/asm/u-boot-arm.h           |  15 +++
 arch/arm/lib/board.c                        |  41 +++-----
 arch/arm/lib/bootm.c                        |   1 +
 arch/arm/lib/interrupts.c                   |   1 +
 board/atmel/at91rm9200ek/led.c              |   1 +
 board/atmel/at91sam9260ek/led.c             |   1 +
 board/nvidia/common/board.c                 |  43 ++------
 board/nvidia/common/emc.c                   |   1 +
 board/nvidia/seaboard/seaboard.c            |   1 +
 board/samsung/common/board.c                |   8 +-
 board/technexion/twister/twister.c          |   2 +
 board/w7o/fsboot.c                          |   3 +-
 common/board_f.c                            |  10 +-
 common/board_r.c                            |  18 ++--
 common/cmd_elf.c                            |   4 +-
 common/cmd_gpio.c                           |   2 +-
 common/console.c                            |   3 +-
 common/env_nand.c                           |   4 +-
 common/image-fit.c                          |   2 +-
 common/menu.c                               |   5 +-
 common/stdio.c                              |  14 +--
 disk/part.c                                 |   2 +-
 drivers/gpio/bcm2835_gpio.c                 |   2 +-
 drivers/gpio/kw_gpio.c                      |   4 +-
 drivers/i2c/designware_i2c.c                |  17 ++--
 drivers/i2c/i2c_core.c                      |   4 +-
 drivers/i2c/tegra_i2c.c                     |   7 +-
 drivers/input/tegra-kbc.c                   |   2 +-
 drivers/mmc/bcm2835_sdhci.c                 |   1 +
 drivers/mmc/sdhci.c                         |   6 +-
 drivers/mmc/tegra_mmc.c                     |   3 +-
 drivers/mtd/cfi_flash.c                     |  50 +++-------
 drivers/mtd/nand/omap_gpmc.c                |  19 +---
 drivers/net/davinci_emac.c                  |   1 +
 drivers/net/fec_mxc.c                       |   8 +-
 drivers/net/phy/phy.c                       |   7 +-
 drivers/pci/pci.c                           |   8 +-
 drivers/power/power_spi.c                   |   4 +-
 drivers/serial/serial.c                     | 149 ++++++++++++++--------------
 drivers/serial/serial_sh.c                  |   4 +-
 drivers/usb/host/ehci-hcd.c                 |  17 +---
 drivers/video/cfb_console.c                 |  14 +--
 drivers/video/exynos_fb.c                   |  32 ++----
 drivers/video/ipu_common.c                  |   2 +-
 drivers/video/ipu_disp.c                    |  17 +---
 drivers/video/mxc_ipuv3_fb.c                |   2 +-
 include/asm-generic/gpio.h                  |   2 +
 include/bootm.h                             |   2 +
 include/elf.h                               |   2 +
 include/fdt_support.h                       |   2 +
 include/ide.h                               |   1 +
 include/linux/string.h                      |   7 ++
 include/mmc.h                               |   1 +
 include/serial.h                            |  49 +++++++++
 include/spl.h                               |   2 +
 lib/lmb.c                                   |   2 +-
 net/eth.c                                   |   2 +-
 post/post.c                                 |   9 +-
 71 files changed, 320 insertions(+), 361 deletions(-)

-- 
2.1.0



More information about the U-Boot mailing list