sh: fix recursive dependency in Kconfig
authorSam Ravnborg <sam@ravnborg.org>
Sat, 14 Aug 2010 12:23:39 +0000 (12:23 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 16 Aug 2010 04:34:11 +0000 (13:34 +0900)
When executing:

   make ARCH=sh defconfig

kconfig segfaulted.
kconfig should obviously not segfault.

But this indicated a problem in the sh files which was
tracked down to a recursive dependency.

We select HAVE_HW_BREAKPOINT and in the following line
we use the same symbol in an expression.
Drop the conditional as it is of no use.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig

index b2b90ee..2284215 100644 (file)
@@ -46,7 +46,7 @@ config SUPERH32
        select HAVE_ARCH_KGDB
        select HAVE_HW_BREAKPOINT
        select HAVE_MIXED_BREAKPOINTS_REGS
-       select PERF_EVENTS if HAVE_HW_BREAKPOINT
+       select PERF_EVENTS
        select ARCH_HIBERNATION_POSSIBLE if MMU
 
 config SUPERH64