]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
xen/arm: traps: remove inlining of handle_ro_raz()
authorFederico Serafini <federico.serafini@bugseng.com>
Thu, 15 Jun 2023 13:50:16 +0000 (15:50 +0200)
committerJulien Grall <jgrall@amazon.com>
Thu, 15 Jun 2023 20:19:33 +0000 (21:19 +0100)
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.

Signed-off-by: Federico Serafini <federico.serafini@bugseng.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/traps.c

index f6437f6aa9c94b4770067213428153ec2fabf5e7..ef5c6a81956346e572aef05457559fd464a9399f 100644 (file)
@@ -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);
 }