Skip to content

Commit f73cf21

Browse files
shiqinggwenlingz
authored andcommitted
hv: fix 'Unused procedure parameter'
remove the unused procedure parameter Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent b261e74 commit f73cf21

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

hypervisor/arch/x86/guest/vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int create_vm(struct vm_description *vm_desc, struct acrn_vm **rtn_vm)
9191
vm->hw.gpa_lowtop = 0UL;
9292

9393
init_ept_mem_ops(vm);
94-
vm->arch_vm.nworld_eptp = vm->arch_vm.ept_mem_ops.get_pml4_page(vm->arch_vm.ept_mem_ops.info, 0UL);
94+
vm->arch_vm.nworld_eptp = vm->arch_vm.ept_mem_ops.get_pml4_page(vm->arch_vm.ept_mem_ops.info);
9595
sanitize_pte((uint64_t *)vm->arch_vm.nworld_eptp);
9696

9797
/* Only for SOS: Configure VM software information */

hypervisor/arch/x86/mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void init_paging(void)
237237
pr_dbg("HV MMU Initialization");
238238

239239
/* Allocate memory for Hypervisor PML4 table */
240-
ppt_mmu_pml4_addr = ppt_mem_ops.get_pml4_page(ppt_mem_ops.info, 0UL);
240+
ppt_mmu_pml4_addr = ppt_mem_ops.get_pml4_page(ppt_mem_ops.info);
241241

242242
init_e820();
243243
obtain_e820_mem_info();

hypervisor/arch/x86/page.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static inline uint64_t ppt_pgentry_present(uint64_t pte)
2828
return pte & PAGE_PRESENT;
2929
}
3030

31-
static inline struct page *ppt_get_pml4_page(const union pgtable_pages_info *info, __unused uint64_t gpa)
31+
static inline struct page *ppt_get_pml4_page(const union pgtable_pages_info *info)
3232
{
3333
struct page *page = info->ppt.pml4_base;
3434
(void)memset(page, 0U, PAGE_SIZE);
@@ -101,7 +101,7 @@ static inline uint64_t ept_pgentry_present(uint64_t pte)
101101
return pte & EPT_RWX;
102102
}
103103

104-
static inline struct page *ept_get_pml4_page(const union pgtable_pages_info *info, __unused uint64_t gpa)
104+
static inline struct page *ept_get_pml4_page(const union pgtable_pages_info *info)
105105
{
106106
struct page *page = info->ept.nworld_pml4_base;
107107
(void)memset(page, 0U, PAGE_SIZE);

hypervisor/dm/vpci/pci_pt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static int vdev_pt_init(struct pci_vdev *vdev)
6868
/* Create an iommu domain for target VM if not created */
6969
if (vm->iommu == NULL) {
7070
if (vm->arch_vm.nworld_eptp == 0UL) {
71-
vm->arch_vm.nworld_eptp = vm->arch_vm.ept_mem_ops.get_pml4_page(vm->arch_vm.ept_mem_ops.info, 0UL);
71+
vm->arch_vm.nworld_eptp = vm->arch_vm.ept_mem_ops.get_pml4_page(vm->arch_vm.ept_mem_ops.info);
7272
sanitize_pte((uint64_t *)vm->arch_vm.nworld_eptp);
7373
}
7474
vm->iommu = create_iommu_domain(vm->vm_id,

hypervisor/include/arch/x86/page.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ struct memory_ops {
5757
union pgtable_pages_info *info;
5858
uint64_t (*get_default_access_right)(void);
5959
uint64_t (*pgentry_present)(uint64_t pte);
60-
struct page *(*get_pml4_page)(const union pgtable_pages_info *info, uint64_t gpa);
60+
struct page *(*get_pml4_page)(const union pgtable_pages_info *info);
6161
struct page *(*get_pdpt_page)(const union pgtable_pages_info *info, uint64_t gpa);
6262
struct page *(*get_pd_page)(const union pgtable_pages_info *info, uint64_t gpa);
6363
struct page *(*get_pt_page)(const union pgtable_pages_info *info, uint64_t gpa);

0 commit comments

Comments
 (0)