diff options
author | Masahiro Yamada <[email protected]> | 2024-02-04 21:20:03 +0900 |
---|---|---|
committer | Borislav Petkov (AMD) <[email protected]> | 2024-05-20 11:37:23 +0200 |
commit | 66ee3636eddcc82ab82b539d08b85fb5ac1dff9b (patch) | |
tree | abdee92c92caad2c0babd3198453e2490cb40892 /lib/debugobjects.c | |
parent | 9dba9c67e52dbe0978c0e86c994891eba480adf0 (diff) |
x86/kconfig: Select ARCH_WANT_FRAME_POINTERS again when UNWINDER_FRAME_POINTER=y
It took me some time to understand the purpose of the tricky code at
the end of arch/x86/Kconfig.debug.
Without it, the following would be shown:
WARNING: unmet direct dependencies detected for FRAME_POINTER
because
81d387190039 ("x86/kconfig: Consolidate unwinders into multiple choice selection")
removed 'select ARCH_WANT_FRAME_POINTERS'.
The correct and more straightforward approach should have been to move
it where 'select FRAME_POINTER' is located.
Several architectures properly handle the conditional selection of
ARCH_WANT_FRAME_POINTERS. For example, 'config UNWINDER_FRAME_POINTER'
in arch/arm/Kconfig.debug.
Fixes: 81d387190039 ("x86/kconfig: Consolidate unwinders into multiple choice selection")
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Borislav Petkov (AMD) <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions