• Geert Uytterhoeven's avatar
    cris/kgdb: Remove sections protected by #ifdef PROCESS_SUPPORT · 6a89a9db
    Geert Uytterhoeven authored
    When enabled, it doesn't build anyway:
    
    arch/cris/arch-v10/kernel/kgdb.c: In function 'copy_registers_from_stack':
    arch/cris/arch-v10/kernel/kgdb.c:631:2: error: unknown type name 'stack_registers'
    arch/cris/arch-v10/kernel/kgdb.c:631:24: error: 'stack_registers' undeclared (first use in this function)
    arch/cris/arch-v10/kernel/kgdb.c:631:24: note: each undeclared identifier is reported only once for each function it appears in
    arch/cris/arch-v10/kernel/kgdb.c:631:41: error: expected expression before ')' token
    arch/cris/arch-v10/kernel/kgdb.c:635:11: error: request for member 'r' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:636:29: error: 'stack_list' undeclared (first use in this function)
    arch/cris/arch-v10/kernel/kgdb.c:637:16: error: request for member 'pc' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:638:18: error: request for member 'dccr' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:639:17: error: request for member 'srp' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c: In function 'copy_registers_to_stack':
    arch/cris/arch-v10/kernel/kgdb.c:648:2: error: unknown type name 'stack_registers'
    arch/cris/arch-v10/kernel/kgdb.c:648:24: error: 'stack_registers' undeclared (first use in this function)
    arch/cris/arch-v10/kernel/kgdb.c:648:41: error: expected expression before ')' token
    arch/cris/arch-v10/kernel/kgdb.c:652:4: error: request for member 'r' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:654:3: error: request for member 'pc' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:655:3: error: request for member 'dccr' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:656:3: error: request for member 'srp' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c: In function 'write_stack_register':
    arch/cris/arch-v10/kernel/kgdb.c:702:2: error: unknown type name 'stack_registers'
    arch/cris/arch-v10/kernel/kgdb.c:702:24: error: 'stack_registers' undeclared (first use in this function)
    arch/cris/arch-v10/kernel/kgdb.c:702:41: error: expected expression before ')' token
    arch/cris/arch-v10/kernel/kgdb.c:707:4: error: request for member 'r' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:710:3: error: 'stack_list' undeclared (first use in this function)
    arch/cris/arch-v10/kernel/kgdb.c:713:4: error: request for member 'pc' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:716:4: error: request for member 'srp' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c:719:4: error: request for member 'dccr' in something not a structure or union
    arch/cris/arch-v10/kernel/kgdb.c: In function 'stub_is_stopped':
    arch/cris/arch-v10/kernel/kgdb.c:827:36: error: 'pos' undeclared (first use in this function)
    arch/cris/arch-v10/kernel/kgdb.c: In function 'handle_exception':
    arch/cris/arch-v10/kernel/kgdb.c:1064:40: error: 'number_of_tasks' undeclared (first use in this function)
    arch/cris/arch-v10/kernel/kgdb.c:1125:8: error: implicit declaration of function 'os_is_started' [-Werror=implicit-function-declaration]
    Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
    6a89a9db
kgdb.c 39.5 KB