Commit 2c34f3f547ba2bdaac44bb9582df032f3b6c4f6e

Authored by Jeroen Hofstee
Committed by Tom Rini
1 parent cc64b92cde

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>

Showing 1 changed file with 2 additions and 4 deletions Side-by-side Diff

... ... @@ -332,15 +332,13 @@
332 332 return 0;
333 333 }
334 334  
335   -void __board_lmb_reserve(struct lmb *lmb)
  335 +__weak void board_lmb_reserve(struct lmb *lmb)
336 336 {
337 337 /* please define platform specific board_lmb_reserve() */
338 338 }
339   -void board_lmb_reserve(struct lmb *lmb) __attribute__((weak, alias("__board_lmb_reserve")));
340 339  
341   -void __arch_lmb_reserve(struct lmb *lmb)
  340 +__weak void arch_lmb_reserve(struct lmb *lmb)
342 341 {
343 342 /* please define platform specific arch_lmb_reserve() */
344 343 }
345   -void arch_lmb_reserve(struct lmb *lmb) __attribute__((weak, alias("__arch_lmb_reserve")));