* [PATCH] MIPS: Fix enabling of DEBUG_STACKOVERFLOW
@ 2015-06-04 12:25 James Hogan
2015-06-05 8:11 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: James Hogan @ 2015-06-04 12:25 UTC (permalink / raw)
To: Ralf Baechle, linux-mips; +Cc: James Hogan, Adam Jiang, stable
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+
---
arch/mips/kernel/irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c
index 51f57d841662..3c8a18a00a65 100644
--- a/arch/mips/kernel/irq.c
+++ b/arch/mips/kernel/irq.c
@@ -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;
--
2.3.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: Fix enabling of DEBUG_STACKOVERFLOW
2015-06-04 12:25 [PATCH] MIPS: Fix enabling of DEBUG_STACKOVERFLOW James Hogan
@ 2015-06-05 8:11 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2015-06-05 8:11 UTC (permalink / raw)
To: James Hogan; +Cc: linux-mips, Adam Jiang, stable
On Thu, Jun 04, 2015 at 01:25:27PM +0100, James Hogan wrote:
Thanks, applied. Should hopefully go to Linus tonight.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-05 8:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-04 12:25 [PATCH] MIPS: Fix enabling of DEBUG_STACKOVERFLOW James Hogan
2015-06-05 8:11 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).