x86/compressed: Export and rename add_identity_map()
authorMichael Roth <michael.roth@amd.com>
Thu, 24 Feb 2022 16:56:16 +0000 (10:56 -0600)
committerBorislav Petkov <bp@suse.de>
Thu, 7 Apr 2022 14:47:11 +0000 (16:47 +0200)
commita9ee679b1f8c3803490ed2eeffb688aaee56583f
treeb08da60c8781bfc7cf8cbc7a2a55a200ff7af781
parent5f211f4fc49622473667e6983bb57beab755f6f6
x86/compressed: Export and rename add_identity_map()

SEV-specific code will need to add some additional mappings, but doing
this within ident_map_64.c requires some SEV-specific helpers to be
exported and some SEV-specific struct definitions to be pulled into
ident_map_64.c. Instead, export add_identity_map() so SEV-specific (and
other subsystem-specific) code can be better contained outside of
ident_map_64.c.

While at it, rename the function to kernel_add_identity_map(), similar
to the kernel_ident_mapping_init() function it relies upon.

No functional changes.

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220307213356.2797205-37-brijesh.singh@amd.com
arch/x86/boot/compressed/ident_map_64.c
arch/x86/boot/compressed/misc.h