uboot-laniq: fix compilation with GCC14
GCC errors on returning int in void function now. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/16348 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
1fa28dd899
commit
fe6c079681
3 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=u-boot
|
PKG_NAME:=u-boot
|
||||||
PKG_VERSION:=2013.10
|
PKG_VERSION:=2013.10
|
||||||
PKG_RELEASE:=66
|
PKG_RELEASE:=67
|
||||||
|
|
||||||
PKG_HASH:=0d71e62beb952b41ebafb20a7ee4df2f960db64c31b054721ceb79ff14014c55
|
PKG_HASH:=0d71e62beb952b41ebafb20a7ee4df2f960db64c31b054721ceb79ff14014c55
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
+void show_boot_progress(int arg)
|
+void show_boot_progress(int arg)
|
||||||
+{
|
+{
|
||||||
+ if (!do_gpio_init)
|
+ if (!do_gpio_init)
|
||||||
+ return 0;
|
+ return;
|
||||||
+
|
+
|
||||||
+ if (arg >= 0) {
|
+ if (arg >= 0) {
|
||||||
+ /* Success - turn off the red power LED and turn on the green power LED */
|
+ /* Success - turn off the red power LED and turn on the green power LED */
|
||||||
|
@ -107,7 +107,7 @@
|
||||||
+ gpio_set_value(GPIO_POWER_RED, 0);
|
+ gpio_set_value(GPIO_POWER_RED, 0);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static const struct ltq_eth_port_config eth_port_config[] = {
|
+static const struct ltq_eth_port_config eth_port_config[] = {
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
+void show_boot_progress(int arg)
|
+void show_boot_progress(int arg)
|
||||||
+{
|
+{
|
||||||
+ if (!do_gpio_init)
|
+ if (!do_gpio_init)
|
||||||
+ return 0;
|
+ return;
|
||||||
+
|
+
|
||||||
+ if (arg >= 0) {
|
+ if (arg >= 0) {
|
||||||
+ /* Success - turn off the red power LED and turn on the green power LED */
|
+ /* Success - turn off the red power LED and turn on the green power LED */
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
+ gpio_set_value(GPIO_POWER_RED, 0);
|
+ gpio_set_value(GPIO_POWER_RED, 0);
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ return 0;
|
+ return;
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+static const struct ltq_eth_port_config eth_port_config[] = {
|
+static const struct ltq_eth_port_config eth_port_config[] = {
|
||||||
|
|
Loading…
Reference in a new issue