x86/mce: Allow for copy_mc_fragile symbol checksum to be generated
authorBorislav Petkov <bp@suse.de>
Wed, 7 Oct 2020 16:55:35 +0000 (18:55 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 8 Oct 2020 08:39:21 +0000 (10:39 +0200)
commit894952fc0e2b12051bf9f86b0b2640ae1c839e52
tree5d903596210e6eaed823317fdb36c9db51c8f2b5
parent7287c00b3667d55faf3b7e8341ca1f837aadfc71
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:

  592cfbd3f8db ("kbuild: modversions for EXPORT_SYMBOL() for asm")
  8825d4383ae4 ("x86/kbuild: enable modversions for symbols exported from asm")

Fixes: a30325edd960 ("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
arch/x86/include/asm/asm-prototypes.h