xen/x86: Remove GB macro in asm-x86/config.h
PATCH 1/1 xen/x86: Remove GB macro in asm-x86/config.h
Commit 983843e "xen: Add macros MB and GB" introduce a generic GB macro. By mistake, the macro in asm-x86/config.h was not removed. This is result to a compilation error when Xen is build for x86.
--- xen/include/asm-x86/config.h | 1 - 1 file changed, 1 deletion(-)
xen/include/asm-x86/config.h +0 -1
@@ -129,7 +129,6 @@ extern unsigned char boot_edid_info[128];#define PML4_ADDR (_slot) \ (((_AC(_slot, UL) >> 8) * _AC(0xffff000000000000,UL)) | \ (_AC(_slot, UL) << PML4_ENTRY_BITS)) -#define GB (_gb) (_AC(_gb, UL) << 30)/* * Memory layout:
Signature · 1 line
1.7.10.4
Quoted 7 lines · Julien Grall
Commit 983843e "xen: Add macros MB and GB" introduce a generic GB macro. By mistake, the macro in
asm-x86/config.hwas not removed. This is result to a compilation error when Xen is build for x86.Signed-off-by Julien Grall <[email protected]>CC Keir Fraser <[email protected]>CC Jan Beulich <[email protected]>
Quoted 16 lines
--- xen/include/asm-x86/config.h | 1 - 1 file changed, 1 deletion(-)xen/include/asm-x86/config.h +0
-1@@ -129,7 +129,6 @@ extern unsigned char boot_edid_info[128];#define PML4_ADDR (_slot) \ (((_AC(_slot, UL) >> 8) * _AC(0xffff000000000000,UL)) | \ (_AC(_slot, UL) << PML4_ENTRY_BITS)) -#define GB (_gb) (_AC(_gb, UL) << 30)/* * Memory layout:
Quoted 9 lines · Andrew Cooper
Quoted 7 lines · Julien Grall
Commit 983843e "xen: Add macros MB and GB" introduce a generic GB macro. By mistake, the macro in
asm-x86/config.hwas not removed. This is result to a compilation error when Xen is build for x86.Signed-off-by Julien Grall <[email protected]>CC Keir Fraser <[email protected]>CC Jan Beulich <[email protected]>Reviewed-by Andrew Cooper <[email protected]>
Since Keir acked the patch I was supposed to have applied I have applied this without waiting.
BTW, the original patch didn't cause an actual build failure in practice, I don't know why not... (does cpp perhaps not whine if the duplicate definitions are identical?)
Quoted 17 lines
Quoted 16 lines
--- xen/include/asm-x86/config.h | 1 - 1 file changed, 1 deletion(-)xen/include/asm-x86/config.h +0
-1@@ -129,7 +129,6 @@ extern unsigned char boot_edid_info[128];#define PML4_ADDR (_slot) \ (((_AC(_slot, UL) >> 8) * _AC(0xffff000000000000,UL)) | \ (_AC(_slot, UL) << PML4_ENTRY_BITS)) -#define GB (_gb) (_AC(_gb, UL) << 30)/* * Memory layout:
Quoted 9 lines · Ian Campbell
Quoted 8 lines · Andrew Cooper
Quoted 7 lines · Julien Grall
Commit 983843e "xen: Add macros MB and GB" introduce a generic GB macro. By mistake, the macro in
asm-x86/config.hwas not removed. This is result to a compilation error when Xen is build for x86.Signed-off-by Julien Grall <[email protected]>CC Keir Fraser <[email protected]>CC Jan Beulich <[email protected]>
Quoted 8 lines
Quoted 1 line
Reviewed-by Andrew Cooper <[email protected]>Since Keir acked the patch I was supposed to have applied I have applied this without waiting.
BTW, the original patch didn't cause an actual build failure in practice, I don't know why not... (does cpp perhaps not whine if the duplicate definitions are identical?)
Yeah, cpp accepts exact duplicates ime.
Quoted 19 lines
Quoted 17 lines
Quoted 16 lines
--- xen/include/asm-x86/config.h | 1 - 1 file changed, 1 deletion(-)xen/include/asm-x86/config.h +0
-1@@ -129,7 +129,6 @@ extern unsigned char boot_edid_info[128];#define PML4_ADDR (_slot) \ (((_AC(_slot, UL) >> 8) * _AC(0xffff000000000000,UL)) | \ (_AC(_slot, UL) << PML4_ENTRY_BITS)) -#define GB (_gb) (_AC(_gb, UL) << 30)/* * Memory layout: