diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-11-15 04:22:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-11-15 04:55:03 -0500 |
commit | 953fee1d82f3454091e9ddc88205136d31f7f212 (patch) | |
tree | 1a11dcc73d4a5be118f07656f7e587c84906fbcc | |
parent | 39f88911b9dc6c43391a0a3dd609cce8534e40e2 (diff) |
x86/kconfig: Clean up 32-bit compat options
Introduce a 'COMPAT_32' helper config value for 'X86_32 || IA32_EMULATION'
and use it.
Also move some selects to this new option, to remove more selects from
the generic X86 section.
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/Kconfig | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 208577cc6d4a..bb62866ddb1f 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -153,11 +153,9 @@ config X86 | |||
153 | select HAVE_PERF_USER_STACK_DUMP | 153 | select HAVE_PERF_USER_STACK_DUMP |
154 | select HAVE_REGS_AND_STACK_ACCESS_API | 154 | select HAVE_REGS_AND_STACK_ACCESS_API |
155 | select HAVE_SYSCALL_TRACEPOINTS | 155 | select HAVE_SYSCALL_TRACEPOINTS |
156 | select HAVE_UID16 if X86_32 || IA32_EMULATION | ||
157 | select HAVE_UNSTABLE_SCHED_CLOCK | 156 | select HAVE_UNSTABLE_SCHED_CLOCK |
158 | select HAVE_USER_RETURN_NOTIFIER | 157 | select HAVE_USER_RETURN_NOTIFIER |
159 | select IRQ_FORCED_THREADING | 158 | select IRQ_FORCED_THREADING |
160 | select OLD_SIGSUSPEND3 if X86_32 || IA32_EMULATION | ||
161 | select PERF_EVENTS | 159 | select PERF_EVENTS |
162 | select RTC_LIB | 160 | select RTC_LIB |
163 | select RTC_MC146818_LIB | 161 | select RTC_MC146818_LIB |
@@ -2098,7 +2096,7 @@ config DEBUG_HOTPLUG_CPU0 | |||
2098 | config COMPAT_VDSO | 2096 | config COMPAT_VDSO |
2099 | def_bool n | 2097 | def_bool n |
2100 | prompt "Disable the 32-bit vDSO (needed for glibc 2.3.3)" | 2098 | prompt "Disable the 32-bit vDSO (needed for glibc 2.3.3)" |
2101 | depends on X86_32 || IA32_EMULATION | 2099 | depends on COMPAT_32 |
2102 | ---help--- | 2100 | ---help--- |
2103 | Certain buggy versions of glibc will crash if they are | 2101 | Certain buggy versions of glibc will crash if they are |
2104 | presented with a 32-bit vDSO that is not mapped at the address | 2102 | presented with a 32-bit vDSO that is not mapped at the address |
@@ -2728,6 +2726,12 @@ config X86_X32 | |||
2728 | elf32_x86_64 support enabled to compile a kernel with this | 2726 | elf32_x86_64 support enabled to compile a kernel with this |
2729 | option set. | 2727 | option set. |
2730 | 2728 | ||
2729 | config COMPAT_32 | ||
2730 | def_bool y | ||
2731 | depends on IA32_EMULATION || X86_32 | ||
2732 | select HAVE_UID16 | ||
2733 | select OLD_SIGSUSPEND3 | ||
2734 | |||
2731 | config COMPAT | 2735 | config COMPAT |
2732 | def_bool y | 2736 | def_bool y |
2733 | depends on IA32_EMULATION || X86_X32 | 2737 | depends on IA32_EMULATION || X86_X32 |