Skip to contentSkip to conversation

xen/arch/arm/traps: remove inlining of handle_ro_raz()

PATCH In review Federico Serafini 3 participants 3 messages Jun 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arch/arm/traps: remove inlining of handle_ro_raz()

To comply with MISRA C:2012 Rule 8.10 ("An inline function shall be declared with the static storage class"), remove inline function specifier from handle_ro_raz() since asking the compiler to inline such function does not seem to add any kind of value.

---
 xen/arch/arm/traps.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
xen/arch/arm/traps.c +5 -5
index f6437f6aa9..ef5c6a8195 100644
@@ -1677,11 +1677,11 @@ void handle_ro_read_val(struct cpu_user_regs *regs,
 }
 
 /* Read only as read as zero */
-inline void handle_ro_raz(struct cpu_user_regs *regs,
-                          int regidx,
-                          bool read,
-                          const union hsr hsr,
-                          int min_el)
+void handle_ro_raz(struct cpu_user_regs *regs,
+                   int regidx,
+                   bool read,
+                   const union hsr hsr,
+                   int min_el)
 {
     handle_ro_read_val(regs, regidx, read, hsr, min_el, 0);
 }
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Federico,

NIT: for Arm, we use "xen/arm: " as a component name in a commit title or if you want to also specify the sub component, then "xen/arm: <subcomponent>: " e.g. "xen/arm: traps: "

Quoted 8 lines · Federico Serafini

To comply with MISRA C:2012 Rule 8.10 ("An inline function shall be declared with the static storage class"), remove inline function specifier from handle_ro_raz() since asking the compiler to inline such function does not seem to add any kind of value.

~Michal

Acked-by
#2 lore raw

Hi,

Quoted 8 lines · Michal Orzel

Hi Federico,

NIT: for Arm, we use "xen/arm: " as a component name in a commit title or if you want to also specify the sub component, then "xen/arm: <subcomponent>: " e.g. "xen/arm: traps: "

Quoted 2 lines · Federico Serafini
Quoted 7 lines
Quoted 6 lines

To comply with MISRA C:2012 Rule 8.10 ("An inline function shall be declared with the static storage class"), remove inline function specifier from handle_ro_raz() since asking the compiler to inline such function does not seem to add any kind of value.

I will update the title while committing.

Cheers,

Signature · 1 line
Julien Grall