Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 9003/1: uncompress: Delete unused debug macros

The debug macros debug_reloc_start and debug_reloc_end were
rendered unused in commit 6d7d0ae51574943bf571d269da3243257a2d15db
"ARM: 6750/1: improvements to compressed/head.S".

Later on a different debug macro named dbgkc was introduced
in commit f3c899927e19d1be39818145efc39ea27b8efc69
"ARM: 8786/1: Debug kernel copy by printing".

Delete the dead debug code.

Cc: Nicolas Pitre <nico@fluxnic.net>
Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>

authored by

Linus Walleij and committed by
Russell King
6428ea27 22c9e582

-30
-30
arch/arm/boot/compressed/head.S
··· 81 81 bl phex 82 82 .endm 83 83 84 - .macro debug_reloc_start 85 - #ifdef DEBUG 86 - kputc #'\n' 87 - kphex r6, 8 /* processor id */ 88 - kputc #':' 89 - kphex r7, 8 /* architecture id */ 90 - #ifdef CONFIG_CPU_CP15 91 - kputc #':' 92 - mrc p15, 0, r0, c1, c0 93 - kphex r0, 8 /* control reg */ 94 - #endif 95 - kputc #'\n' 96 - kphex r5, 8 /* decompressed kernel start */ 97 - kputc #'-' 98 - kphex r9, 8 /* decompressed kernel end */ 99 - kputc #'>' 100 - kphex r4, 8 /* kernel execution address */ 101 - kputc #'\n' 102 - #endif 103 - .endm 104 - 105 - .macro debug_reloc_end 106 - #ifdef DEBUG 107 - kphex r5, 8 /* end of kernel */ 108 - kputc #'\n' 109 - mov r0, r4 110 - bl memdump /* dump 256 bytes at start of kernel */ 111 - #endif 112 - .endm 113 - 114 84 /* 115 85 * Debug kernel copy by printing the memory addresses involved 116 86 */