Skip to content

Commit 94142c9

Browse files
kirylhansendc
authored andcommitted
x86/mm: Fix enc_status_change_finish_noop()
enc_status_change_finish_noop() is now defined as always-fail, which doesn't make sense for noop. The change has no user-visible effect because it is only called if the platform has CC_ATTR_MEM_ENCRYPT. All platforms with the attribute override the callback with their own implementation. Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Link: https://lore.kernel.org/all/20230606095622.1939-4-kirill.shutemov%40linux.intel.com
1 parent 195edce commit 94142c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/x86_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct x86_cpuinit_ops x86_cpuinit = {
131131
static void default_nmi_init(void) { };
132132

133133
static bool enc_status_change_prepare_noop(unsigned long vaddr, int npages, bool enc) { return true; }
134-
static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return false; }
134+
static bool enc_status_change_finish_noop(unsigned long vaddr, int npages, bool enc) { return true; }
135135
static bool enc_tlb_flush_required_noop(bool enc) { return false; }
136136
static bool enc_cache_flush_required_noop(void) { return false; }
137137
static bool is_private_mmio_noop(u64 addr) {return false; }

0 commit comments

Comments
 (0)