0004-common-main.c-make-show_boot_progress-__weak.patch 959 B

1234567891011121314151617181920212223242526272829303132
  1. From 8158ac85f16963ff1d075255cd3f34b4f0614265 Mon Sep 17 00:00:00 2001
  2. From: Jeroen Hofstee <jeroen@myspectrum.nl>
  3. Date: Thu, 26 Jun 2014 20:18:31 +0200
  4. Subject: [PATCH 4/6] common: main.c: make show_boot_progress __weak
  5. This not only looks a bit better it also prevents a
  6. warning with W=1 (no previous prototype).
  7. Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
  8. Acked-by: Simon Glass <sjg@chromium.org>
  9. ---
  10. common/main.c | 3 +--
  11. 1 file changed, 1 insertion(+), 2 deletions(-)
  12. diff --git a/common/main.c b/common/main.c
  13. index 32618f1..2979fbe 100644
  14. --- a/common/main.c
  15. +++ b/common/main.c
  16. @@ -17,8 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
  17. /*
  18. * Board-specific Platform code can reimplement show_boot_progress () if needed
  19. */
  20. -void inline __show_boot_progress (int val) {}
  21. -void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
  22. +__weak void show_boot_progress(int val) {}
  23. static void modem_init(void)
  24. {
  25. --
  26. 2.4.4