Re: [PATCH v4 5/6] x86/sgx: Hook sgx_memory_failure() into mainline code
From: Jarkko Sakkinen
Date: Tue Sep 07 2021 - 22:29:23 EST
On Tue, 2021-09-07 at 17:46 +0000, Luck, Tony wrote:
> > 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
Ah sorry, I get it :-) Yeah, Dave's suggestion makes much more sense.
/Jarkko