Skip to content
Snippets Groups Projects
Commit 2c34f3f5 authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Tom Rini
Browse files

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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent cc64b92c
No related branches found
No related tags found
No related merge requests found
......@@ -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")));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment