]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/vsprintf.c: eliminate duplicate hex string array
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 7 Apr 2015 23:44:54 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:54 +0000 (09:44 +1000)
commit03128edc9aeeb61a3b8114ac3b357789136e12f1
tree4ce840d03936cca414c78871ef898ff0ba3513d2
parent985aa854f446f51c1cf9cacfa43f88e7971c5038
lib/vsprintf.c: eliminate duplicate hex string array

gcc doesn't merge or overlap const char[] objects with identical contents
(probably language lawyers would also insist that these things have
different addresses), but there's no reason to have the string
"0123456789ABCDEF" occur in multiple places.  hex_asc_upper is declared in
kernel.h and defined in lib/hexdump.c, which is unconditionally compiled
in.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/vsprintf.c