public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 00/49] reduce warnings with W=1
@ 2014-10-08 20:57 Jeroen Hofstee
  2014-10-08 20:57 ` [U-Boot] [PATCH 01/49] arm: board: use __weak Jeroen Hofstee
                   ` (50 more replies)
  0 siblings, 51 replies; 118+ messages in thread
From: Jeroen Hofstee @ 2014-10-08 20:57 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 118+ messages in thread

end of thread, other threads:[~2014-11-04 23:24 UTC | newest]

Thread overview: 118+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 20:57 [U-Boot] [PATCH 00/49] reduce warnings with W=1 Jeroen Hofstee
2014-10-08 20:57 ` [U-Boot] [PATCH 01/49] arm: board: use __weak Jeroen Hofstee
2014-10-09  7:34   ` Albert ARIBAUD
2014-10-27  0:31   ` [U-Boot] [U-Boot,01/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 02/49] common: " Jeroen Hofstee
2014-10-27  0:31   ` [U-Boot] [U-Boot,02/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 03/49] cti_flash.c: use __weak when requested Jeroen Hofstee
2014-10-09 18:10   ` Jeroen Hofstee
2014-10-24 20:18   ` [U-Boot] [PATCH] cti_flash.c: use __weak for flash_(read|write){8, 16, 32, 64} Tom Rini
2014-10-27  0:35     ` Tom Rini
2014-10-27  0:35   ` [U-Boot] [PATCH 03/49] cti_flash.c: use __weak when requested Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 04/49] i2c: use __weak Jeroen Hofstee
2014-10-09  5:00   ` Heiko Schocher
2014-10-09 18:14     ` Jeroen Hofstee
2014-10-27  0:31       ` Tom Rini
2014-10-27 19:16         ` Jeroen Hofstee
2014-10-08 20:57 ` [U-Boot] [PATCH 05/49] misc: " Jeroen Hofstee
2014-10-27  0:31   ` [U-Boot] [U-Boot,05/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 06/49] net: phy: fix warnings with W=1 Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,06/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 07/49] pci: use __weak Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,07/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 08/49] samsung: board: " Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,08/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 09/49] usb: " Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,09/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 10/49] video: " Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,10/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 11/49] common: cmd_elf: make do_bootelf_exec static Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 12/49] common: board_r: make local functions static Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 13/49] disk/part.c: make local function static Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 14/49] ehci-hcd.c: make local functions static Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 15/49] env_nand: " Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,15/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 16/49] eth: make eth_address_set static Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,16/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 17/49] gpio: make local functions static Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,17/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 18/49] image-fit: make local function static Jeroen Hofstee
2014-10-27  0:32   ` [U-Boot] [U-Boot,18/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 19/49] lmb: make local functions static Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,19/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 20/49] net: fec_mxc: " Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 21/49] omap3: " Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,21/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 22/49] omap_gpmc: fix warnigs with W=1 Jeroen Hofstee
2014-10-27  0:35   ` [U-Boot] [U-Boot,22/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 23/49] sdhci: make local functions static Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,23/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 24/49] serial: " Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,24/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 25/49] spi: " Jeroen Hofstee
2014-10-25 11:38   ` Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 26/49] tegra: " Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,26/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 27/49] video: ipu: prevent warnings with W=1 Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,27/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 28/49] common:console: add missing include Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,28/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 29/49] string.h: add missing prototypes Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,29/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 30/49] arch-mx: add missing include Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,30/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 31/49] common/cmd_elf.c: " Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,31/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 32/49] imx: add missing includes Jeroen Hofstee
2014-10-27  0:33   ` [U-Boot] [U-Boot,32/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 33/49] leds: missing include Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot,33/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 34/49] lib: bootm: add " Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot,34/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 35/49] mmc: bcm2835_sdhci: " Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 36/49] net: davince: " Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot,36/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 37/49] omap3: board: add missing include and proto Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 38/49] twister: add missing includes Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot,38/49] " Tom Rini
2014-10-08 20:57 ` [U-Boot] [PATCH 39/49] arm: vectors: provide protypes from vectors.S Jeroen Hofstee
2014-10-09  7:37   ` Albert ARIBAUD
2014-10-27  0:34   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 40/49] bootm: add prototype for arch_preboot_os Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 41/49] elf: add prototype for valid_elf_image Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot,41/49] " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 42/49] fdt_support: add prototypes for __weak functions Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 43/49] gpio: add protype for name_to_gpio Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot,43/49] " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 44/49] ide: add missing prototype Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot,44/49] " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 45/49] mmc: add prototype for mmc_get_env_addr Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 46/49] serial: add prototypes for init functions Jeroen Hofstee
2014-10-27  0:31   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 47/49] spl: add prototype for jump_to_image_no_args Jeroen Hofstee
2014-10-27  0:34   ` [U-Boot] [U-Boot, " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 48/49] tegra: add proto for pin_mux_mmc Jeroen Hofstee
2014-10-27  0:35   ` [U-Boot] [U-Boot,48/49] " Tom Rini
2014-10-08 20:58 ` [U-Boot] [PATCH 49/49] i2c: designware: add an implement i2c protos Jeroen Hofstee
2014-10-09  5:05   ` [U-Boot] [U-Boot, " Heiko Schocher
2014-10-09 18:19     ` Jeroen Hofstee
2014-10-27  0:35   ` Tom Rini
2014-10-27 19:10 ` [U-Boot] [PATCH v2, rebased 0/3] reduce warnings with W=1 Jeroen Hofstee
2014-10-27 19:10   ` [U-Boot] [PATCH v2, rebased 1/3] i2c: use __weak Jeroen Hofstee
2014-10-27 19:10   ` [U-Boot] [PATCH v2, rebased 2/3] arm926ejs: cache: " Jeroen Hofstee
2014-11-04 23:24     ` Tom Rini
2014-10-27 19:10   ` [U-Boot] [PATCH v2, rebased 3/3] serial: add prototypes for init functions Jeroen Hofstee
2014-11-04 23:23     ` Tom Rini
2014-10-27 21:27 ` [U-Boot] [PATCH v3 0/3] reduce warnings with W=1 Jeroen Hofstee
2014-10-27 21:27   ` [U-Boot] [PATCH v3 1/3] i2c: use __weak Jeroen Hofstee
2014-11-04 23:22     ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox