Skip to contentSkip to conversation

remove IS_INVALID_M2P_ENTRY()

PATCH New Jan Beulich 1 participant 1 message Aug 31, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove IS_INVALID_M2P_ENTRY()

This macro isn't used anywhere and is longer than its expansion (hence nobody would likely want to use it).

xen/include/asm-ia64/mm.h +0 -1
Index: 2006-08-28/xen/include/asm-ia64/mm.h
===================================================================
@@ -451,7 +451,6 @@ extern u64 translate_domain_pte(u64 ptev
 
 #define INVALID_M2P_ENTRY        (~0UL)
 #define VALID_M2P(_e)            (!((_e) & (1UL<<63)))
-#define IS_INVALID_M2P_ENTRY(_e) (!VALID_M2P(_e))
 
 #define set_gpfn_from_mfn(mfn, pfn) (machine_to_phys_mapping[(mfn)] = (pfn))
 #define get_gpfn_from_mfn(mfn)      (machine_to_phys_mapping[(mfn)])
xen/include/asm-x86/mm.h +0 -1
Index: 2006-08-28/xen/include/asm-x86/mm.h
===================================================================
@@ -338,7 +338,6 @@ int check_descriptor(struct desc_struct 
 #define machine_to_phys_mapping  ((unsigned long *)RDWR_MPT_VIRT_START)
 #define INVALID_M2P_ENTRY        (~0UL)
 #define VALID_M2P(_e)            (!((_e) & (1UL<<(BITS_PER_LONG-1))))
-#define IS_INVALID_M2P_ENTRY(_e) (!VALID_M2P(_e))
 
 #define set_gpfn_from_mfn(mfn, pfn) (machine_to_phys_mapping[(mfn)] = (pfn))
 #define get_gpfn_from_mfn(mfn)      (machine_to_phys_mapping[(mfn)])