summaryrefslogtreecommitdiff
path: root/arch/x86/um/Kconfig
diff options
context:
space:
mode:
authorBenjamin Berg <benjamin.berg@intel.com>2024-09-13 15:44:42 +0200
committerJohannes Berg <johannes.berg@intel.com>2024-10-10 12:02:04 +0200
commit797d3688f98667006e12dbc657ca6ac29ea4a71b (patch)
tree7ac0d071540107ad6aba433627f77f0261c317a5 /arch/x86/um/Kconfig
parent71fae9dfa7e3a987886c8baf235d5a0b96e5dc15 (diff)
um: Set HAVE_EFFICIENT_UNALIGNED_ACCESS for x86
The x86 port of UM has efficient unaligned access. Set the option as it is appropriate and will e.g. cause UBSAN to not enable unaligned memory access checking by default. Signed-off-by: Benjamin Berg <benjamin.berg@intel.com> Link: https://patch.msgid.link/20240913134442.967599-6-benjamin@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'arch/x86/um/Kconfig')
-rw-r--r--arch/x86/um/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/um/Kconfig b/arch/x86/um/Kconfig
index 186f13268401..dc56c608ce69 100644
--- a/arch/x86/um/Kconfig
+++ b/arch/x86/um/Kconfig
@@ -10,6 +10,7 @@ config UML_X86
def_bool y
select ARCH_BINFMT_ELF_EXTRA_PHDRS if X86_32
select DCACHE_WORD_ACCESS
+ select HAVE_EFFICIENT_UNALIGNED_ACCESS
config 64BIT
bool "64-bit kernel" if "$(SUBARCH)" = "x86"