]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
MIPS: Fix enabling of DEBUG_STACKOVERFLOW
authorJames Hogan <james.hogan@imgtec.com>
Thu, 4 Jun 2015 12:25:27 +0000 (13:25 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 6 Jun 2015 08:21:09 +0000 (10:21 +0200)
Commit 334c86c494b9 ("MIPS: IRQ: Add stackoverflow detection") added
kernel stack overflow detection, however it only enabled it conditional
upon the preprocessor definition DEBUG_STACKOVERFLOW, which is never
actually defined. The Kconfig option is called DEBUG_STACKOVERFLOW,
which manifests to the preprocessor as CONFIG_DEBUG_STACKOVERFLOW, so
switch it to using that definition instead.

Fixes: 334c86c494b9 ("MIPS: IRQ: Add stackoverflow detection")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Adam Jiang <jiang.adam@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 2.6.37+
Patchwork: http://patchwork.linux-mips.org/patch/10531/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/irq.c

index 51f57d8416625a26cc73d38a615c750fd4dd2f51..3c8a18a00a65fee62e7cc11068d3866b18b04fd1 100644 (file)
@@ -109,7 +109,7 @@ void __init init_IRQ(void)
 #endif
 }
 
-#ifdef DEBUG_STACKOVERFLOW
+#ifdef CONFIG_DEBUG_STACKOVERFLOW
 static inline void check_stack_overflow(void)
 {
        unsigned long sp;