Skip to contentSkip to conversation

u-boot: Fix implicit declaration compile error

PATCH In review Ryan Eatmon 2 participants 2 messages Feb 3, 2025 – Feb 4, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 u-boot: Fix implicit declaration compile error

A recent patch to ti-u-boot 2025.01 introduces a compile error on master for am64xx-evm. A patch has been sent to the mailing list that fixes this, but it will take time before we will see that patch available to us on master. So we need to carry the patch here.

---
 .../u-boot/u-boot-ti-staging_2025.01.bb       |  2 ++
 ...-Fix-implicit-definition-of-ti_secur.patch | 32 +++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-remoteproc-k3-m4-Fix-implicit-definition-of-ti_secur.patch
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb +2 -0
index 5e56d2db..c041ffe8 100644
@@ -6,4 +6,6 @@ PR = "r0"
 
 BRANCH = "ti-u-boot-2025.01"
 
+SRC_URI += "file://0001-remoteproc-k3-m4-Fix-implicit-definition-of-ti_secur.patch"
+
 SRCREV = "4e9c90ad8b12cc5b4fdd1308bc3ac3e4fc869aab"
meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-remoteproc-k3-m4-Fix-implicit-definition-of-ti_secur.patch new file +32 -0
new file mode 100644
index 00000000..c6b15651
@@ -0,0 +1,32 @@
+From f9c2ae13a80f3b0f309214c6b57bc3a705b71398 Mon Sep 17 00:00:00 2001
+From: Ryan Eatmon <[email protected]>
+Date: Mon, 3 Feb 2025 16:54:24 -0600
+Subject: [tiU25.01]] remoteproc: k3-m4: Fix implicit definition of
+ ti_secure_image_post_process
+
+Add missing include to make sure that ti_secure_image_post_process() is
+not implicitly declared.
+
+Signed-off-by: Ryan Eatmon <[email protected]>
+
+Upstream-Status: Pending
+
+---
+ drivers/remoteproc/ti_k3_m4_rproc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/remoteproc/ti_k3_m4_rproc.c b/drivers/remoteproc/ti_k3_m4_rproc.c
+index 5a5ae2fa81d..516c817385e 100644
+--- a/drivers/remoteproc/ti_k3_m4_rproc.c
++++ b/drivers/remoteproc/ti_k3_m4_rproc.c
+@@ -20,6 +20,7 @@
+ #include <linux/sizes.h>
+ #include <linux/soc/ti/ti_sci_protocol.h>
+ #include "ti_sci_proc.h"
++#include <mach/security.h>
+ 
+ /**
+  * struct k3_m4_mem - internal memory structure
+-- 
+2.17.1
+
Signature · 1 line
2.17.1
#1 lore raw
Quoted 9 lines · Ryan Eatmon

A recent patch to ti-u-boot 2025.01 introduces a compile error on master for am64xx-evm. A patch has been sent to the mailing list that fixes this, but it will take time before we will see that patch available to us on master. So we need to carry the patch here.

---
  .../u-boot/u-boot-ti-staging_2025.01.bb       |  2 ++
  ...-Fix-implicit-definition-of-ti_secur.patch | 32 +++++++++++++++++++

pulled this patch to ti-u-boot-2025.01-next

https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2025.01-next&id=5731ef2a5d3ca69c045b30c8ea31f9a6cd0cfbe7

Quoted 52 lines
  2 files changed, 34 insertions(+)

create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-remoteproc-k3-m4-Fix-implicit-definition-of-ti_secur.patch

meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti-staging_2025.01.bb +2 -0
index 5e56d2db..c041ffe8 100644
@@ -6,4 +6,6 @@ PR = "r0"
 
  BRANCH = "ti-u-boot-2025.01"
 
+SRC_URI += "file://0001-remoteproc-k3-m4-Fix-implicit-definition-of-ti_secur.patch"
+
  SRCREV = "4e9c90ad8b12cc5b4fdd1308bc3ac3e4fc869aab"
meta-ti-bsp/recipes-bsp/u-boot/u-boot/0001-remoteproc-k3-m4-Fix-implicit-definition-of-ti_secur.patch new file +32 -0
new file mode 100644
index 00000000..c6b15651
@@ -0,0 +1,32 @@
+From f9c2ae13a80f3b0f309214c6b57bc3a705b71398 Mon Sep 17 00:00:00 2001
+From: Ryan Eatmon <[email protected]>
+Date: Mon, 3 Feb 2025 16:54:24 -0600
+Subject: [tiU25.01]] remoteproc: k3-m4: Fix implicit definition of
+ ti_secure_image_post_process
+
+Add missing include to make sure that ti_secure_image_post_process() is
+not implicitly declared.
+
+Signed-off-by: Ryan Eatmon <[email protected]>
+
+Upstream-Status: Pending
+
+---
+ drivers/remoteproc/ti_k3_m4_rproc.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/remoteproc/ti_k3_m4_rproc.c b/drivers/remoteproc/ti_k3_m4_rproc.c
+index 5a5ae2fa81d..516c817385e 100644
+--- a/drivers/remoteproc/ti_k3_m4_rproc.c
++++ b/drivers/remoteproc/ti_k3_m4_rproc.c
+@@ -20,6 +20,7 @@
+ #include <linux/sizes.h>
+ #include <linux/soc/ti/ti_sci_protocol.h>
+ #include "ti_sci_proc.h"
++#include <mach/security.h>
+
+ /**
+  * struct k3_m4_mem - internal memory structure
+--
+2.17.1
+