Skip to content

Commit

Permalink
mekotronics: rk3588: u-boot: borrow patch to fix build on newer gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini committed Jul 4, 2024
1 parent 8ed90ed commit fbc6031
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions patch/u-boot/legacy/u-boot-meko-rk3588/1000-Fix-build-errors.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Muhammed Efe Cetin <[email protected]>
Date: Tue, 2 Jul 2024 18:14:23 +0300
Subject: Fix build errors

---
common/edid.c | 2 +-
include/command.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/edid.c b/common/edid.c
index 111111111111..222222222222 100644
--- a/common/edid.c
+++ b/common/edid.c
@@ -3579,7 +3579,7 @@ int add_cea_modes(struct hdmi_edid_data *data, struct edid *edid)
{
const u8 *cea = drm_find_cea_extension(edid);
const u8 *db, *hdmi = NULL, *video = NULL;
- u8 dbl, hdmi_len, video_len = 0;
+ u8 dbl, hdmi_len = 0, video_len = 0;
int modes = 0;

if (cea && cea_revision(cea) >= 3) {
diff --git a/include/command.h b/include/command.h
index 111111111111..222222222222 100644
--- a/include/command.h
+++ b/include/command.h
@@ -139,7 +139,7 @@ enum command_ret_t {
* number of ticks the command took to complete.
* @return 0 if the command succeeded, 1 if it failed
*/
-int cmd_process(int flag, int argc, char * const argv[],
+enum command_ret_t cmd_process(int flag, int argc, char * const argv[],
int *repeatable, unsigned long *ticks);

void fixup_cmdtable(cmd_tbl_t *cmdtp, int size);
--
Armbian

0 comments on commit fbc6031

Please sign in to comment.