From: Jan Beulich Date: Wed, 20 Apr 2022 08:53:19 +0000 (+0200) Subject: VT-d: drop ROOT_ENTRY_NR X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~727 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d94a9973794c2fb8c754be0cdd9ffe0edf1b0a8b;p=xen.git VT-d: drop ROOT_ENTRY_NR It's not only misplaced, but entirely unused. Signed-off-by: Jan Beulich Reviewed-by: Roger Pau Monné Reviewed-by: Kevin Tian --- diff --git a/xen/drivers/passthrough/vtd/iommu.h b/xen/drivers/passthrough/vtd/iommu.h index aca055f577..09ec09fe27 100644 --- a/xen/drivers/passthrough/vtd/iommu.h +++ b/xen/drivers/passthrough/vtd/iommu.h @@ -204,7 +204,6 @@ struct context_entry { __uint128_t full; }; }; -#define ROOT_ENTRY_NR (PAGE_SIZE_4K/sizeof(struct root_entry)) #define context_present(c) ((c).lo & 1) #define context_fault_disable(c) (((c).lo >> 1) & 1) #define context_translation_type(c) (((c).lo >> 2) & 3)