sh: fix kconfig unmet dependency warning for FRAME_POINTER
authorRandy Dunlap <rdunlap@infradead.org>
Tue, 5 Oct 2021 00:19:10 +0000 (17:19 -0700)
committerRich Felker <dalias@libc.org>
Wed, 27 Oct 2021 20:51:01 +0000 (16:51 -0400)
FRAME_POINTER depends on DEBUG_KERNEL so DWARF_UNWINDER should
depend on DEBUG_KERNEL before selecting FRAME_POINTER.

WARNING: unmet direct dependencies detected for FRAME_POINTER
  Depends on [n]: DEBUG_KERNEL [=n] && (M68K || UML || SUPERH [=y]) || ARCH_WANT_FRAME_POINTERS [=n]
  Selected by [y]:
  - DWARF_UNWINDER [=y]

Fixes: bd353861c735 ("sh: dwarf unwinder support.")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Matt Fleming <matt@console-pimps.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/Kconfig.debug

index 958f790273ab9be93e0eb859d127af58f1eef7c0..10290e5c1f4387d8745c59b5dfe0632c4bc9fc55 100644 (file)
@@ -54,6 +54,7 @@ config DUMP_CODE
 
 config DWARF_UNWINDER
        bool "Enable the DWARF unwinder for stacktraces"
+       depends on DEBUG_KERNEL
        select FRAME_POINTER
        default n
        help