Skip to contentSkip to conversation

arm/cpufeature: address violations of MISRA C:2012 Rule 8.2

PATCH In review Federico Serafini 2 participants 2 messages Oct 18, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm/cpufeature: address violations of MISRA C:2012 Rule 8.2

Add missing parameter names. No functional change.

---
Changes in v2:
- fixed names.

---
 xen/arch/arm/include/asm/cpufeature.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/include/asm/cpufeature.h +4 -4
index 8011076b8c..c95582044a 100644
@@ -127,8 +127,8 @@ static inline void cpus_set_cap(unsigned int num)
 struct arm_cpu_capabilities {
     const char *desc;
     u16 capability;
-    bool (*matches)(const struct arm_cpu_capabilities *);
-    int (*enable)(void *); /* Called on every active CPUs */
+    bool (*matches)(const struct arm_cpu_capabilities *entry);
+    int (*enable)(void *data); /* Called on every active CPUs */
     union {
         struct {    /* To be used for eratum handling only */
             u32 midr_model;
@@ -448,10 +448,10 @@ struct cpuinfo_arm {
 
 extern struct cpuinfo_arm system_cpuinfo;
 
-extern void identify_cpu(struct cpuinfo_arm *);
+extern void identify_cpu(struct cpuinfo_arm *c);
 
 #ifdef CONFIG_ARM_64
-extern void update_system_features(const struct cpuinfo_arm *);
+extern void update_system_features(const struct cpuinfo_arm *new);
 #else
 static inline void update_system_features(const struct cpuinfo_arm *cpuinfo)
 {
Signature · 1 line
2.34.1
Reviewed-by on v2 1/1
#1 lore raw

Hi Frederico,

Quoted 5 lines · Federico Serafini

Add missing parameter names. No functional change.

Cheers
Bertrand

Quoted 38 lines

---
Changes in v2:
- fixed names.
---
xen/arch/arm/include/asm/cpufeature.h | 8 ++++----

1 file changed, 4 insertions(+), 4 deletions(-)
xen/arch/arm/include/asm/cpufeature.h +4 -4
index 8011076b8c..c95582044a 100644
@@ -127,8 +127,8 @@ static inline void cpus_set_cap(unsigned int num)
 struct arm_cpu_capabilities {
    const char *desc;
    u16 capability;
-    bool (*matches)(const struct arm_cpu_capabilities *);
-    int (*enable)(void *); /* Called on every active CPUs */
+    bool (*matches)(const struct arm_cpu_capabilities *entry);
+    int (*enable)(void *data); /* Called on every active CPUs */
    union {
        struct {    /* To be used for eratum handling only */
            u32 midr_model;
@@ -448,10 +448,10 @@ struct cpuinfo_arm {
 
 extern struct cpuinfo_arm system_cpuinfo;
 
-extern void identify_cpu(struct cpuinfo_arm *);
+extern void identify_cpu(struct cpuinfo_arm *c);
 
 #ifdef CONFIG_ARM_64
-extern void update_system_features(const struct cpuinfo_arm *);
+extern void update_system_features(const struct cpuinfo_arm *new);
 #else
 static inline void update_system_features(const struct cpuinfo_arm *cpuinfo)
 {
Signature · 1 line
2.34.1