From: Borislav Petkov Date: Wed, 7 Oct 2020 16:55:35 +0000 (+0200) Subject: x86/mce: Allow for copy_mc_fragile symbol checksum to be generated X-Git-Tag: v5.9.5~134 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=73258585034892190829062d72bd0400dd56118a;p=wrapfs-4.14.y.git x86/mce: Allow for copy_mc_fragile symbol checksum to be generated commit b3149ffcdb31a8eb854cc442a389ae0b539bf28a upstream. Add asm/mce.h to asm/asm-prototypes.h so that that asm symbol's checksum can be generated in order to support CONFIG_MODVERSIONS with it and fix: WARNING: modpost: EXPORT symbol "copy_mc_fragile" [vmlinux] version \ generation failed, symbol will not be versioned. For reference see: 4efca4ed05cb ("kbuild: modversions for EXPORT_SYMBOL() for asm") 334bb7738764 ("x86/kbuild: enable modversions for symbols exported from asm") Fixes: ec6347bb4339 ("x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()") Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20201007111447.GA23257@zn.tnic Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/include/asm/asm-prototypes.h b/arch/x86/include/asm/asm-prototypes.h index 5a42f9206138..51e2bf27cc9b 100644 --- a/arch/x86/include/asm/asm-prototypes.h +++ b/arch/x86/include/asm/asm-prototypes.h @@ -5,6 +5,7 @@ #include #include #include +#include #include