Content-Type: multipart/mixed; boundary="===============6738256475992520727==" MIME-Version: 1.0 From: David Rientjes To: kbuild-all@lists.01.org Subject: Re: [PATCH] x86/mm: Fix warning on build with X86_MEM_ENCRYPT=y Date: Wed, 26 Jan 2022 10:57:12 -0800 Message-ID: In-Reply-To: <20220126115919.7691-1-kirill.shutemov@linux.intel.com> List-Id: --===============6738256475992520727== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, 26 Jan 2022, Kirill A. Shutemov wrote: > So far, AMD_MEM_ENCRYPT is the only user of X86_MEM_ENCRYPT. TDX will be > the second. It will make mem_encrypt.c build without AMD_MEM_ENCRYPT, > which triggers a warning: > = > arch/x86/mm/mem_encrypt.c:69:13: warning: no previous prototype for > function 'mem_encrypt_init' [-Wmissing-prototypes] > = > Fix it by moving mem_encrypt_init() declaration outside of #ifdef > CONFIG_AMD_MEM_ENCRYPT. > = > Signed-off-by: Kirill A. Shutemov > Fixes: 20f07a044a76 ("x86/sev: Move common memory encryption code to mem_= encrypt.c") Acked-by: David Rientjes --===============6738256475992520727==--