]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/dynamic_debug.c: use kstrdup_const
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 21 Oct 2015 22:03:49 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:49 +0000 (09:03 +1100)
commitc0aa3930ed5e9987cd82a055182d94d8f53b83f6
tree5ef0f172b3c0eb9c3213dee179da6eb45c2eb4d4
parent9232098aa27a07c7332c1155ebd2464f90143506
lib/dynamic_debug.c: use kstrdup_const

Using kstrdup_const, thus reusing .rodata when possible, saves around 2 kB
of runtime memory on my laptop/.config combination.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Jason Baron <jbaron@akamai.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/dynamic_debug.c