diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-06-26 20:04:37 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-18 17:53:23 -0400 |
commit | 2c34f3f547ba2bdaac44bb9582df032f3b6c4f6e (patch) | |
tree | 874e52fd3b8782a0508b135491a559bca63d14cd | |
parent | cc64b92cdee921536a00e66568fd36cff3d35420 (diff) | |
download | u-boot-2c34f3f547ba2bdaac44bb9582df032f3b6c4f6e.zip u-boot-2c34f3f547ba2bdaac44bb9582df032f3b6c4f6e.tar.gz u-boot-2c34f3f547ba2bdaac44bb9582df032f3b6c4f6e.tar.bz2 |
lib:lmb: use __weak
This not only looks a bit better it also prevents a
warning with W=1 (no previous prototype).
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
-rw-r--r-- | lib/lmb.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -332,14 +332,12 @@ int lmb_is_reserved(struct lmb *lmb, phys_addr_t addr) return 0; } -void __board_lmb_reserve(struct lmb *lmb) +__weak void board_lmb_reserve(struct lmb *lmb) { /* please define platform specific board_lmb_reserve() */ } -void board_lmb_reserve(struct lmb *lmb) __attribute__((weak, alias("__board_lmb_reserve"))); -void __arch_lmb_reserve(struct lmb *lmb) +__weak void arch_lmb_reserve(struct lmb *lmb) { /* please define platform specific arch_lmb_reserve() */ } -void arch_lmb_reserve(struct lmb *lmb) __attribute__((weak, alias("__arch_lmb_reserve"))); |