From: Andrew Morton this file isn't actually part of the kernel.. Error: External symbol 'hex_asc' referenced from prom_init.c Cc: Harvey Harrison Signed-off-by: Andrew Morton --- arch/powerpc/kernel/prom_init.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN arch/powerpc/kernel/prom_init.c~ppc-use-the-common-ascii-hex-helpers-fix arch/powerpc/kernel/prom_init.c --- a/arch/powerpc/kernel/prom_init.c~ppc-use-the-common-ascii-hex-helpers-fix +++ a/arch/powerpc/kernel/prom_init.c @@ -453,6 +453,7 @@ static void add_string(char **str, const static char *tohex(unsigned int x) { + static char digits[] = "0123456789abcdef"; static char result[9]; int i; @@ -460,7 +461,7 @@ static char *tohex(unsigned int x) i = 8; do { --i; - result[i] = hex_asc_lo(x); + result[i] = digits[x & 0xf]; x >>= 4; } while (x != 0 && i > 0); return &result[i]; _