From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 01/49] arm: board: use __weak
Date: Thu, 9 Oct 2014 09:34:51 +0200 [thread overview]
Message-ID: <E1Xc8FR-0002o6-7W@janus> (raw)
In-Reply-To: <1412801889-14400-2-git-send-email-jeroen@myspectrum.nl>
Hi Jeroen,
On Wed, 8 Oct 2014 22:57:21 +0200, Jeroen Hofstee
<jeroen@myspectrum.nl> wrote:
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
> ---
> arch/arm/lib/board.c | 40 ++++++++++++----------------------------
> 1 file changed, 12 insertions(+), 28 deletions(-)
>
> diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
> index 76adaf3..98782ca 100644
> --- a/arch/arm/lib/board.c
> +++ b/arch/arm/lib/board.c
> @@ -63,25 +63,15 @@ extern void dataflash_print_info(void);
> ************************************************************************
> * May be supplied by boards if desired
> */
> -inline void __coloured_LED_init(void) {}
> -void coloured_LED_init(void)
> - __attribute__((weak, alias("__coloured_LED_init")));
> -inline void __red_led_on(void) {}
> -void red_led_on(void) __attribute__((weak, alias("__red_led_on")));
> -inline void __red_led_off(void) {}
> -void red_led_off(void) __attribute__((weak, alias("__red_led_off")));
> -inline void __green_led_on(void) {}
> -void green_led_on(void) __attribute__((weak, alias("__green_led_on")));
> -inline void __green_led_off(void) {}
> -void green_led_off(void) __attribute__((weak, alias("__green_led_off")));
> -inline void __yellow_led_on(void) {}
> -void yellow_led_on(void) __attribute__((weak, alias("__yellow_led_on")));
> -inline void __yellow_led_off(void) {}
> -void yellow_led_off(void) __attribute__((weak, alias("__yellow_led_off")));
> -inline void __blue_led_on(void) {}
> -void blue_led_on(void) __attribute__((weak, alias("__blue_led_on")));
> -inline void __blue_led_off(void) {}
> -void blue_led_off(void) __attribute__((weak, alias("__blue_led_off")));
> +__weak void coloured_LED_init(void) {}
> +__weak void red_led_on(void) {}
> +__weak void red_led_off(void) {}
> +__weak void green_led_on(void) {}
> +__weak void green_led_off(void) {}
> +__weak void yellow_led_on(void) {}
> +__weak void yellow_led_off(void) {}
> +__weak void blue_led_on(void) {}
> +__weak void blue_led_off(void) {}
>
> /*
> ************************************************************************
> @@ -198,27 +188,21 @@ static int arm_pci_init(void)
> */
> typedef int (init_fnc_t) (void);
>
> -void __dram_init_banksize(void)
> +__weak void dram_init_banksize(void)
> {
> gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE;
> gd->bd->bi_dram[0].size = gd->ram_size;
> }
> -void dram_init_banksize(void)
> - __attribute__((weak, alias("__dram_init_banksize")));
>
> -int __arch_cpu_init(void)
> +__weak int arch_cpu_init(void)
> {
> return 0;
> }
> -int arch_cpu_init(void)
> - __attribute__((weak, alias("__arch_cpu_init")));
>
> -int __power_init_board(void)
> +__weak int power_init_board(void)
> {
> return 0;
> }
> -int power_init_board(void)
> - __attribute__((weak, alias("__power_init_board")));
>
> /* Record the board_init_f() bootstage (after arch_cpu_init()) */
> static int mark_bootstage(void)
Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
Amicalement,
--
Albert.
next prev parent reply other threads:[~2014-10-09 7:34 UTC|newest]
Thread overview: 118+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=E1Xc8FR-0002o6-7W@janus \
--to=albert.u.boot@aribaud.net \
--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