Skip to content

Commit 5f35b9c

Browse files
James Hoganralfbaechle
authored andcommitted
MIPS: Fix enabling of DEBUG_STACKOVERFLOW
Commit 334c86c ("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: 334c86c ("MIPS: IRQ: Add stackoverflow detection") Signed-off-by: James Hogan <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Adam Jiang <[email protected]> Cc: [email protected] Cc: <[email protected]> # 2.6.37+ Patchwork: http://patchwork.linux-mips.org/patch/10531/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent 755af33 commit 5f35b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/kernel/irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void __init init_IRQ(void)
109109
#endif
110110
}
111111

112-
#ifdef DEBUG_STACKOVERFLOW
112+
#ifdef CONFIG_DEBUG_STACKOVERFLOW
113113
static inline void check_stack_overflow(void)
114114
{
115115
unsigned long sp;

0 commit comments

Comments
 (0)