From: Dave Hansen Subject: Re: [PATCH v11 06/13] crypto: aesni: add minimal build option for SGX LE Date: Fri, 8 Jun 2018 10:27:37 -0700 Message-ID: <00750c65-27b5-7851-19f5-9a712686dfb2@intel.com> References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180608171216.26521-7-jarkko.sakkinen@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, Herbert Xu , "David S. Miller" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "open list:CRYPTO API" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" To: Jarkko Sakkinen , x86@kernel.org, platform-driver-x86@vger.kernel.org Return-path: In-Reply-To: <20180608171216.26521-7-jarkko.sakkinen@linux.intel.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On 06/08/2018 10:09 AM, Jarkko Sakkinen wrote: > --- a/arch/x86/crypto/aesni-intel_asm.S > +++ b/arch/x86/crypto/aesni-intel_asm.S > @@ -45,6 +45,8 @@ > #define MOVADQ movaps > #define MOVUDQ movups > > +#ifndef AESNI_INTEL_MINIMAL > + > #ifdef __x86_64__ > > # constants in mergeable sections, linker can reorder and merge > @@ -133,6 +135,8 @@ ALL_F: .octa 0xffffffffffffffffffffffffffffffff > #define keysize 2*15*16(%arg1) > #endif > > +#endif /* AESNI_INTEL_MINIMAL */ > + I'd really prefer that these get moved into a separate file rather than a scattered set of #ifdefs. This just seem fragile to me. Can we have a "aesni-intel_asm-minimal.S"? Or, at least bunch the minimal set of things *together*?