Skip to content

Commit b3149ff

Browse files
committed
x86/mce: Allow for copy_mc_fragile symbol checksum to be generated
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: 4efca4e ("kbuild: modversions for EXPORT_SYMBOL() for asm") 334bb77 ("x86/kbuild: enable modversions for symbols exported from asm") Fixes: ec6347b ("x86, powerpc: Rename memcpy_mcsafe() to copy_mc_to_{user, kernel}()") Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20201007111447.GA23257@zn.tnic
1 parent 3006381 commit b3149ff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/x86/include/asm/asm-prototypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <asm/string.h>
66
#include <asm/page.h>
77
#include <asm/checksum.h>
8+
#include <asm/mce.h>
89

910
#include <asm-generic/asm-prototypes.h>
1011

0 commit comments

Comments
 (0)