[PATCH 6/6] SH64: use KSYM_NAME_LEN

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>
Cc: Ingo Molnar <mingo@...>, David Miller <davem@...>, Andrew Morton <akpm@...>, Paul Mackerras <paulus@...>, Peter Zijlstra <peterz@...>, Thomas Gleixner <tglx@...>
Date: Wednesday, January 23, 2008 - 1:39 pm

Use KSYM_NAME_LEN instead of numeric value

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
---

Index: linux-2.6.git/arch/sh64/kernel/unwind.c
===================================================================
--- linux-2.6.git.orig/arch/sh64/kernel/unwind.c	2008-01-21 19:35:06.000000000 +0300
+++ linux-2.6.git/arch/sh64/kernel/unwind.c	2008-01-23 19:16:41.000000000 +0300
@@ -46,7 +46,7 @@ static int lookup_prev_stack_frame(unsig
 		      struct pt_regs *regs)
 {
 	const char *sym;
-	char namebuf[128];
+	char namebuf[KSYM_NAME_LEN];
 	unsigned long offset;
 	unsigned long prologue = 0;
 	unsigned long fp_displacement = 0;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 6/6] SH64: use KSYM_NAME_LEN, Cyrill Gorcunov, (Wed Jan 23, 1:39 pm)