Skip to contentSkip to conversation

x86/e820: Fix parameter names of reserve_e820_ram()/e820_change_range_type()

PATCH In review Andrew Cooper 2 participants 2 messages Nov 12, 2024 – Nov 13, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/e820: Fix parameter names of reserve_e820_ram()/e820_change_range_type()

The work to address Rule 5.3 introduced violations of Rule 8.3 by failing to rename the parameters in the declaration.

Fixes b5fd405aa381 ("x86/e820 address violations of MISRA C:2012 Rule 5.3")

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Alessandro Zucchelli <[email protected]>
CC: [email protected] <[email protected]>

---
 xen/arch/x86/include/asm/e820.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/include/asm/e820.h +2 -2
index af90085d65d1..8e7644f8870b 100644
@@ -25,9 +25,9 @@ struct e820map {
 
 extern int sanitize_e820_map(struct e820entry *biosmap, unsigned int *pnr_map);
 extern int e820_all_mapped(u64 start, u64 end, unsigned type);
-extern int reserve_e820_ram(struct e820map *e820, uint64_t s, uint64_t e);
+extern int reserve_e820_ram(struct e820map *map, uint64_t s, uint64_t e);
 extern int e820_change_range_type(
-    struct e820map *e820, uint64_t s, uint64_t e,
+    struct e820map *map, uint64_t s, uint64_t e,
     uint32_t orig_type, uint32_t new_type);
 extern int e820_add_range(uint64_t s, uint64_t e, uint32_t type);
 extern unsigned long init_e820(const char *str, struct e820map *raw);

base-commit: 38febce5b35a7a4391906499b2046f01ec0129ca

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Andrew Cooper

The work to address Rule 5.3 introduced violations of Rule 8.3 by failing to rename the parameters in the declaration.

Fixes b5fd405aa381 ("x86/e820 address violations of MISRA C:2012 Rule 5.3")
Quoted 31 lines

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Alessandro Zucchelli <[email protected]>
CC: [email protected] <[email protected]>

---
 xen/arch/x86/include/asm/e820.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/x86/include/asm/e820.h +2 -2
index af90085d65d1..8e7644f8870b 100644
@@ -25,9 +25,9 @@ struct e820map {
 
 extern int sanitize_e820_map(struct e820entry *biosmap, unsigned int *pnr_map);
 extern int e820_all_mapped(u64 start, u64 end, unsigned type);
-extern int reserve_e820_ram(struct e820map *e820, uint64_t s, uint64_t e);
+extern int reserve_e820_ram(struct e820map *map, uint64_t s, uint64_t e);
 extern int e820_change_range_type(
-    struct e820map *e820, uint64_t s, uint64_t e,
+    struct e820map *map, uint64_t s, uint64_t e,
     uint32_t orig_type, uint32_t new_type);
 extern int e820_add_range(uint64_t s, uint64_t e, uint32_t type);
 extern unsigned long init_e820(const char *str, struct e820map *raw);

base-commit: 38febce5b35a7a4391906499b2046f01ec0129ca

Signature · 1 line
2.39.5