summaryrefslogtreecommitdiff
path: root/libre/uboot-chiliboard-linux-libre/0003-common-main.c-make-show_boot_progress-__weak.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 01:01:17 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-05 01:01:17 -0300
commit3652c268b97954b6e5c0429649bb4bdfe1d38b68 (patch)
tree4d3858c017c605c6cd106a30a22206cfe7412300 /libre/uboot-chiliboard-linux-libre/0003-common-main.c-make-show_boot_progress-__weak.patch
parent1b93f88c6b63ae8776b8207a93bbef224cbc1dae (diff)
downloadabslibre-3652c268b97954b6e5c0429649bb4bdfe1d38b68.tar.gz
abslibre-3652c268b97954b6e5c0429649bb4bdfe1d38b68.tar.bz2
abslibre-3652c268b97954b6e5c0429649bb4bdfe1d38b68.zip
uboot-chiliboard-linux-libre: add new package to [libre]
Diffstat (limited to 'libre/uboot-chiliboard-linux-libre/0003-common-main.c-make-show_boot_progress-__weak.patch')
-rw-r--r--libre/uboot-chiliboard-linux-libre/0003-common-main.c-make-show_boot_progress-__weak.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/libre/uboot-chiliboard-linux-libre/0003-common-main.c-make-show_boot_progress-__weak.patch b/libre/uboot-chiliboard-linux-libre/0003-common-main.c-make-show_boot_progress-__weak.patch
new file mode 100644
index 000000000..baf1efd5d
--- /dev/null
+++ b/libre/uboot-chiliboard-linux-libre/0003-common-main.c-make-show_boot_progress-__weak.patch
@@ -0,0 +1,31 @@
+From dc7efb77bbd59224855713a554bb3721568a85c6 Mon Sep 17 00:00:00 2001
+From: Jeroen Hofstee <jeroen@myspectrum.nl>
+Date: Thu, 26 Jun 2014 20:18:31 +0200
+Subject: [PATCH 3/6] common: main.c: make show_boot_progress __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>
+Acked-by: Simon Glass <sjg@chromium.org>
+---
+ common/main.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/common/main.c b/common/main.c
+index 32618f1..2979fbe 100644
+--- a/common/main.c
++++ b/common/main.c
+@@ -17,8 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
+ /*
+ * Board-specific Platform code can reimplement show_boot_progress () if needed
+ */
+-void inline __show_boot_progress (int val) {}
+-void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
++__weak void show_boot_progress(int val) {}
+
+ static void modem_init(void)
+ {
+--
+2.5.0
+