diff options
| author | Tom Lendacky <[email protected]> | 2021-09-08 22:58:32 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2021-10-04 09:45:49 +0000 |
| commit | 402fe0cb71032c4bc931ac70a6b024408e09f817 (patch) | |
| tree | 2a6a8c837b6a47876cbc14c4882b207e409f2668 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | Linux 5.15-rc4 (diff) | |
| download | kernel-402fe0cb71032c4bc931ac70a6b024408e09f817.tar.gz kernel-402fe0cb71032c4bc931ac70a6b024408e09f817.zip | |
x86/ioremap: Selectively build arch override encryption functions
In preparation for other uses of the cc_platform_has() function
besides AMD's memory encryption support, selectively build the
AMD memory encryption architecture override functions only when
CONFIG_AMD_MEM_ENCRYPT=y. These functions are:
- early_memremap_pgprot_adjust()
- arch_memremap_can_ram_remap()
Additionally, routines that are only invoked by these architecture
override functions can also be conditionally built. These functions are:
- memremap_should_map_decrypted()
- memremap_is_efi_data()
- memremap_is_setup_data()
- early_memremap_is_setup_data()
And finally, phys_mem_access_encrypted() is conditionally built as well,
but requires a static inline version of it when CONFIG_AMD_MEM_ENCRYPT is
not set.
Signed-off-by: Tom Lendacky <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
