lib/dynamic_debug.c: use kstrdup_const
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Sat, 7 Nov 2015 00:30:15 +0000 (16:30 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commit3e406b1d7c1e5c14c84a71eb4bee5f46ba690401
treea85bd1bbd0f91b3936643cae076a63bd448e4891
parenteac44a5e07be41a153e52c35c4d7dc0fec23adb3
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/dynamic_debug.c