Skip to contentSkip to conversation

xen/x86: Remove GB macro in asm-x86/config.h

PATCH In review Julien Grall 4 participants 4 messages Oct 8, 2013

lore
Share & tools
lore
#0 lore raw

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.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
CC Andrew Cooper <[email protected]>
---
 xen/include/asm-x86/config.h |    1 -
 1 file changed, 1 deletion(-)
xen/include/asm-x86/config.h +0 -1
index 3980e06..99d0e2c 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.h was not removed. This is result to a compilation error when Xen is build for x86.

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
index 3980e06..99d0e2c 100644
@@ -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:
#2 lore raw
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.h was not removed. This is result to a compilation error when Xen is build for x86.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[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
index 3980e06..99d0e2c 100644
@@ -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:
#3 lore raw
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.h was not removed. This is result to a compilation error when Xen is build for x86.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
Quoted 8 lines
Quoted 1 line

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
index 3980e06..99d0e2c 100644
@@ -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: