Skip to content

Commit e0a5915

Browse files
Sean Christophersonhansendc
authored andcommitted
x86/sgx: Drop 'page_index' from sgx_backing
Storing the 'page_index' value in the sgx_backing struct is dead code and no longer needed. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lkml.kernel.org/r/20220708162124.8442-1-kristen@linux.intel.com
1 parent 6507cce commit e0a5915

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

arch/x86/kernel/cpu/sgx/encl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,6 @@ int sgx_encl_get_backing(struct sgx_encl *encl, unsigned long page_index,
943943
return PTR_ERR(pcmd);
944944
}
945945

946-
backing->page_index = page_index;
947946
backing->contents = contents;
948947
backing->pcmd = pcmd;
949948
backing->pcmd_offset = page_pcmd_off & (PAGE_SIZE - 1);

arch/x86/kernel/cpu/sgx/encl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ struct sgx_va_page {
7979
};
8080

8181
struct sgx_backing {
82-
pgoff_t page_index;
8382
struct page *contents;
8483
struct page *pcmd;
8584
unsigned long pcmd_offset;

0 commit comments

Comments
 (0)