cris/kgdb: Use #ifdef PROCESS_SUPPORT where needed
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 11 Feb 2013 19:43:18 +0000 (20:43 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 16 Jun 2013 11:47:23 +0000 (13:47 +0200)
arch/cris/arch-v10/kernel/kgdb.c:354:12: warning: 'current_thread_c' defined but not used [-Wunused-variable]
arch/cris/arch-v10/kernel/kgdb.c:355:12: warning: 'current_thread_g' defined but not used [-Wunused-variable]
arch/cris/arch-v10/kernel/kgdb.c:359:18: warning: 'reg_g' defined but not used [-Wunused-variable]
arch/cris/arch-v10/kernel/kgdb.c:622:1: warning: 'copy_registers' defined but not used [-Wunused-function]

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/cris/arch-v10/kernel/kgdb.c

index 3c852b3141c6226ed1208ec3689fe3faf7b3dacd..e02d2df5220ceae43859b3704bc22e99e43963ac 100644 (file)
@@ -345,6 +345,7 @@ static int consistency_status = SUCCESS;
    in order to provide access mainly for 'g', 'G' and 'P'.
 */
 
+#ifdef PROCESS_SUPPORT
 /* Need two task id pointers in order to handle Hct and Hgt commands. */
 static int current_thread_c = 0;
 static int current_thread_g = 0;
@@ -352,6 +353,7 @@ static int current_thread_g = 0;
 /* Need two register images in order to handle Hct and Hgt commands. The
    variable reg_g is in addition to reg above. */
 static registers reg_g;
+#endif /* PROCESS_SUPPORT */
 
 /********************************** Breakpoint *******************************/
 /* Use an internal stack in the breakpoint and interrupt response routines */
@@ -610,6 +612,7 @@ putDebugString (const unsigned char *str, int length)
 }
 
 /********************************* Register image ****************************/
+#ifdef PROCESS_SUPPORT
 /* Copy the content of a register image into another. The size n is
    the size of the register image. Due to struct assignment generation of
    memcpy in libc. */
@@ -623,7 +626,6 @@ copy_registers (registers *dptr, registers *sptr, int n)
                *dreg++ = *sreg++;
 }
 
-#ifdef PROCESS_SUPPORT
 /* Copy the stored registers from the stack. Put the register contents
    of thread thread_id in the struct reg. */
 static void