Skip to content

Commit

Permalink
MIPS: Fix enabling of DEBUG_STACKOVERFLOW
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
James Hogan authored and ralfbaechle committed Jun 6, 2015
1 parent 755af33 commit 5f35b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f35b9c

Please sign in to comment.