RE: [PATCH v4 5/6] x86/sgx: Hook sgx_memory_failure() into mainline code

From: Luck, Tony
Date: Tue Sep 07 2021 - 13:46:57 EST


> Would it be too obnoxious to flag that include in those files?

Jarkko,

You mean:

#ifdef CONFIG_X86_SGX
#include <asm/sgx.h>
#endif

in mm/memory-failure.h?

That wouldn't help. I need the do-nothing stub definition on other architectures.

I'm going to explore Dave's suggestion of changing the names to something less sgx specific.

-Tony