Commit 2c34f3f547ba2bdaac44bb9582df032f3b6c4f6e
Committed by
Tom Rini
1 parent
cc64b92cde
Exists in
v2017.01-smarct4x
and in
37 other branches
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
lib/lmb.c
... | ... | @@ -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"))); |