Skip to content

Commit

Permalink
x86/mce: Allow for copy_mc_fragile symbol checksum to be generated
Browse files Browse the repository at this point in the history
commit b3149ff 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:

  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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Borislav Petkov authored and gregkh committed Nov 5, 2020
1 parent bcc91e0 commit 7325858
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/include/asm/asm-prototypes.h
Expand Up @@ -5,6 +5,7 @@
#include <asm/string.h>
#include <asm/page.h>
#include <asm/checksum.h>
#include <asm/mce.h>

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

Expand Down

0 comments on commit 7325858

Please sign in to comment.