Skip to contentSkip to conversation

loader: Fix incorrect parameter name in load_image_mr() macro

PATCH In review Peter Maydell 3 participants 4 messages Mar 8, 2016 – Mar 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 loader: Fix incorrect parameter name in load_image_mr() macro

From: Jens Wiklander <[email protected]>

Fix a typo in the load_image_mr() macro: 'mr' was written when the parameter name is '_mr'. (This had no visible effects since the single use of the macro used 'mr' as the argument.)

Fixes 76151cacfe956248a25b38b5e8429465584f47bb "loader: Add load_image_mr() to load ROM image to a MemoryRegion"

[PMM: tweaked commit message]

---
Oops...

 include/hw/loader.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/loader.h +1 -1
index 0ba7808..b3d1358 100644
@@ -137,7 +137,7 @@ void hmp_info_roms(Monitor *mon, const QDict *qdict);
 #define rom_add_blob_fixed(_f, _b, _l, _a)      \
     rom_add_blob(_f, _b, _l, _l, _a, NULL, NULL, NULL)
 #define rom_add_file_mr(_f, _mr, _i)            \
-    rom_add_file(_f, NULL, 0, _i, false, mr)
+    rom_add_file(_f, NULL, 0, _i, false, _mr)
 
 #define PC_ROM_MIN_VGA     0xc0000
 #define PC_ROM_MIN_OPTION  0xc8000
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 25 lines · Peter Maydell

From: Jens Wiklander <[email protected]>

Fix a typo in the load_image_mr() macro: 'mr' was written when the parameter name is '_mr'. (This had no visible effects since the single use of the macro used 'mr' as the argument.)

Fixes 76151cacfe956248a25b38b5e8429465584f47bb "loader: Add load_image_mr() to load ROM image to a MemoryRegion"

[PMM: tweaked commit message]

---
Oops...

 include/hw/loader.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/loader.h +0 -0
index 0ba7808..b3d1358 100644

include/hw/loader.h void hmp_info_roms(Monitor *mon, const QDict *qdict); · line 143

Quoted 8 lines
include/hw/loader.h +1 -1
@@ -137,7 +137,7 @@ void hmp_info_roms(Monitor *mon, const QDict *qdict);
 #define rom_add_blob_fixed(_f, _b, _l, _a)      \
     rom_add_blob(_f, _b, _l, _l, _a, NULL, NULL, NULL)
 #define rom_add_file_mr(_f, _mr, _i)            \
-    rom_add_file(_f, NULL, 0, _i, false, mr)
+    rom_add_file(_f, NULL, 0, _i, false, _mr)
 
 #define PC_ROM_MIN_VGA     0xc0000
 #define PC_ROM_MIN_OPTION  0xc8000
Reviewed-by on v1 1/1
#2 lore raw
In reply to Peter Maydell
Quoted 6 lines · Peter Maydell

From: Jens Wiklander <[email protected]>

Fix a typo in the load_image_mr() macro: 'mr' was written when the parameter name is '_mr'. (This had no visible effects since the single use of the macro used 'mr' as the argument.)

Quoted 8 lines

Fixes 76151cacfe956248a25b38b5e8429465584f47bb "loader: Add load_image_mr() to load ROM image to a MemoryRegion"

[PMM: tweaked commit message]

---

Peter, you are merging this, right?

Quoted 20 lines

Oops...

 include/hw/loader.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/loader.h +1 -1
index 0ba7808..b3d1358 100644
@@ -137,7 +137,7 @@ void hmp_info_roms(Monitor *mon, const QDict *qdict);
 #define rom_add_blob_fixed(_f, _b, _l, _a)      \
     rom_add_blob(_f, _b, _l, _l, _a, NULL, NULL, NULL)
 #define rom_add_file_mr(_f, _mr, _i)            \
-    rom_add_file(_f, NULL, 0, _i, false, mr)
+    rom_add_file(_f, NULL, 0, _i, false, _mr)
 
 #define PC_ROM_MIN_VGA     0xc0000
 #define PC_ROM_MIN_OPTION  0xc8000
Signature · 1 line
1.9.1
#3 lore raw
Quoted 16 lines · Michael S. Tsirkin
Quoted 6 lines · Peter Maydell

From: Jens Wiklander <[email protected]>

Fix a typo in the load_image_mr() macro: 'mr' was written when the parameter name is '_mr'. (This had no visible effects since the single use of the macro used 'mr' as the argument.)

Quoted 8 lines

Fixes 76151cacfe956248a25b38b5e8429465584f47bb "loader: Add load_image_mr() to load ROM image to a MemoryRegion"

[PMM: tweaked commit message]

---

Quoted 3 lines

Peter, you are merging this, right?

Yes, I'll put it in via target-arm.next.

thanks
-- PMM