Skip to contentSkip to conversation

xen/arm64: head: Mark the end of subroutines with ENDPROC (take two)

PATCH In review Julien Grall 3 participants 3 messages Feb 28, 2022 – Mar 1, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm64: head: Mark the end of subroutines with ENDPROC (take two)

From: Julien Grall <[email protected]>

Commit 13c03002c5df ("xen/arm64: head: Mark the end of subroutines with ENDPROC") intended to mark all the subroutines with ENDPROC.

Unfortunately, I missed fail(), switch_ttbr() and init_uart(). Add ENDPROC for the benefits of static analysis tools and the reader.

---
 xen/arch/arm/arm64/head.S | 3 +++
 1 file changed, 3 insertions(+)
xen/arch/arm/arm64/head.S +3 -0
index 314b800b3f8e..66d862fc8137 100644
@@ -800,6 +800,7 @@ ENDPROC(launch)
 fail:   PRINT("- Boot failed -\r\n")
 1:      wfe
         b     1b
+ENDPROC(fail)
 
 GLOBAL(_end_boot)
 
@@ -830,6 +831,7 @@ ENTRY(switch_ttbr)
         isb
 
         ret
+ENDPROC(switch_ttbr)
 
 #ifdef CONFIG_EARLY_PRINTK
 /*
@@ -847,6 +849,7 @@ init_uart:
 #endif
         PRINT("- UART enabled -\r\n")
         ret
+ENDPROC(init_uart)
 
 /* Print early debug messages.
  * x0: Nul-terminated string to print.
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Julien,

Quoted 10 lines · Julien Grall

From: Julien Grall <[email protected]>

Commit 13c03002c5df ("xen/arm64: head: Mark the end of subroutines with ENDPROC") intended to mark all the subroutines with ENDPROC.

Unfortunately, I missed fail(), switch_ttbr() and init_uart(). Add ENDPROC for the benefits of static analysis tools and the reader.

---

Cheers,
Michal

Reviewed-by on v1 1/1
#2 lore raw
In reply to Julien Grall

Hi Julien,

Quoted 11 lines · Julien Grall

From: Julien Grall <[email protected]>

Commit 13c03002c5df ("xen/arm64: head: Mark the end of subroutines with ENDPROC") intended to mark all the subroutines with ENDPROC.

Unfortunately, I missed fail(), switch_ttbr() and init_uart(). Add ENDPROC for the benefits of static analysis tools and the reader.

Cheers
Bertrand

Quoted 35 lines

---
xen/arch/arm/arm64/head.S | 3 +++

1 file changed, 3 insertions(+)
xen/arch/arm/arm64/head.S +0 -0
index 314b800b3f8e..66d862fc8137 100644
@@ -800,6 +800,7 @@ ENDPROC(launch)
 fail:   PRINT("- Boot failed -\r\n")

1: wfe
b 1b
+ENDPROC(fail)

GLOBAL(_end_boot)

xen/arch/arm/arm64/head.S +2 -0
@@ -830,6 +831,7 @@ ENTRY(switch_ttbr)
        isb
 
        ret
+ENDPROC(switch_ttbr)
 
 #ifdef CONFIG_EARLY_PRINTK
 /*
@@ -847,6 +849,7 @@ init_uart:
 #endif
        PRINT("- UART enabled -\r\n")
        ret
+ENDPROC(init_uart)
 
 /* Print early debug messages.
 * x0: Nul-terminated string to print.
Signature · 1 line
2.32.0