Skip to contentSkip to conversation

xen/arm32: 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/arm32: head: Mark the end of subroutines with ENDPROC (take two)

From: Julien Grall <[email protected]>

Commit 2ac705a59ef5 ("xen/arm32: head: Mark the end of subroutines with ENDPROC") intended to mark all the subroutines with ENDPROC.

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

---
 xen/arch/arm/arm32/head.S | 4 ++++
 1 file changed, 4 insertions(+)
xen/arch/arm/arm32/head.S +4 -0
index b1d209ea2842..13cfc837d39c 100644
@@ -661,6 +661,7 @@ ENDPROC(launch)
 fail:   PRINT("- Boot failed -\r\n")
 1:      wfe
         b     1b
+ENDPROC(fail)
 
 GLOBAL(_end_boot)
 
@@ -694,6 +695,7 @@ ENTRY(switch_ttbr)
         isb
 
         mov pc, lr
+ENDPROC(switch_ttbr)
 
 #ifdef CONFIG_EARLY_PRINTK
 /*
@@ -711,6 +713,7 @@ init_uart:
 #endif
         PRINT("- UART enabled -\r\n")
         mov   pc, lr
+ENDPROC(init_uart)
 
 /*
  * Print early debug messages.
@@ -798,6 +801,7 @@ __lookup_processor_type:
         mov   r1, #0
 2:
         mov   pc, lr
+ENDPROC(__lookup_processor_type)
 
 /*
  * Local variables:
Signature · 1 line
2.32.0
Reviewed-by on v1 1/1
#1 lore raw

Hi Julien,

Quoted 11 lines · Julien Grall

From: Julien Grall <[email protected]>

Commit 2ac705a59ef5 ("xen/arm32: head: Mark the end of subroutines with ENDPROC") intended to mark all the subroutines with ENDPROC.

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

---

I checked and it seems like you covered them all now.

Cheers,
Michal

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

Hi Julien,

Quoted 12 lines · Julien Grall

From: Julien Grall <[email protected]>

Commit 2ac705a59ef5 ("xen/arm32: head: Mark the end of subroutines with ENDPROC") intended to mark all the subroutines with ENDPROC.

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

Cheers
Bertrand

Quoted 43 lines

---
xen/arch/arm/arm32/head.S | 4 ++++

1 file changed, 4 insertions(+)
xen/arch/arm/arm32/head.S +0 -0
index b1d209ea2842..13cfc837d39c 100644
@@ -661,6 +661,7 @@ ENDPROC(launch)
 fail:   PRINT("- Boot failed -\r\n")

1: wfe
b 1b
+ENDPROC(fail)

GLOBAL(_end_boot)

xen/arch/arm/arm32/head.S +2 -0
@@ -694,6 +695,7 @@ ENTRY(switch_ttbr)
        isb
 
        mov pc, lr
+ENDPROC(switch_ttbr)
 
 #ifdef CONFIG_EARLY_PRINTK
 /*
@@ -711,6 +713,7 @@ init_uart:
 #endif
        PRINT("- UART enabled -\r\n")
        mov   pc, lr
+ENDPROC(init_uart)
 
 /*
 * Print early debug messages.
@@ -798,6 +801,7 @@ __lookup_processor_type:
        mov   r1, #0

2:
mov pc, lr
+ENDPROC(__lookup_processor_type)

/*
* Local variables:

Signature · 1 line
2.32.0