cris/kgdb: Remove obsolete USED*() macros
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 12 Feb 2013 09:04:28 +0000 (10:04 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 16 Jun 2013 11:47:33 +0000 (13:47 +0200)
handle_exception and internal_stack are now global

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

index 7e24b7339ff88ac80e4f14df64f6f531a35ffcac..d0b6257afc2cc72a7f9f6f5e3e5ff10a9bc04605 100644 (file)
@@ -260,10 +260,6 @@ extern unsigned char executing_task;
 /* The number of characters used for a 64 bit thread identifier. */
 #define HEXCHARS_IN_THREAD_ID 16
 
-/* Avoid warning as the internal_stack is not used in the C-code. */
-#define USEDVAR(name)    { if (name) { ; } }
-#define USEDFUN(name) { void (*pf)(void) = (void *)name; USEDVAR(pf) }
-
 /********************************** Packet I/O ******************************/
 /* BUFMAX defines the maximum number of characters in
    inbound/outbound buffers */
@@ -854,11 +850,6 @@ kill_restart (void)
 void
 handle_exception (int sigval)
 {
-       /* Avoid warning of not used. */
-
-       USEDFUN(handle_exception);
-       USEDVAR(internal_stack[0]);
-
        /* Send response. */
 
        stub_is_stopped (sigval);