]> git.baikalelectronics.ru Git - kernel.git/commitdiff
x86/sgx: Drop 'page_index' from sgx_backing
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 8 Jul 2022 16:21:24 +0000 (09:21 -0700)
committerDave Hansen <dave.hansen@linux.intel.com>
Fri, 8 Jul 2022 16:31:11 +0000 (09:31 -0700)
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
arch/x86/kernel/cpu/sgx/encl.c
arch/x86/kernel/cpu/sgx/encl.h

index 295a9c946cef8ab617915eadd39fff88c7d8f81b..73bfc5a3ec390c03ddb971ac59a092c7632c1a31 100644 (file)
@@ -943,7 +943,6 @@ int sgx_encl_get_backing(struct sgx_encl *encl, unsigned long page_index,
                return PTR_ERR(pcmd);
        }
 
-       backing->page_index = page_index;
        backing->contents = contents;
        backing->pcmd = pcmd;
        backing->pcmd_offset = page_pcmd_off & (PAGE_SIZE - 1);
index 3d0e0ba3edf5400ede387de4d9d358fa3d1a951b..57cc23602bbbc7286c9c33f7feaab543dc2ab397 100644 (file)
@@ -79,7 +79,6 @@ struct sgx_va_page {
 };
 
 struct sgx_backing {
-       pgoff_t page_index;
        struct page *contents;
        struct page *pcmd;
        unsigned long pcmd_offset;