aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorAndrĂ© Goddard Rosa <[email protected]>2009-12-15 02:00:55 +0000
committerLinus Torvalds <[email protected]>2009-12-15 16:53:29 +0000
commit0f4f81dce93774a447da3ceb98cce193ef84a3fa (patch)
tree343f83bc9ed704d57f462a729eb91b100edff0c0 /lib/dynamic_debug.c
parentMAINTAINERS: Update file patterns for WOLFSON MICROELECTRONICS PMIC DRIVERS (diff)
downloadkernel-0f4f81dce93774a447da3ceb98cce193ef84a3fa.tar.gz
kernel-0f4f81dce93774a447da3ceb98cce193ef84a3fa.zip
vsprintf: factorize "(null)" string
This patchset reduces lib/lib.a code size by 482 bytes on my Core 2 with gcc 4.4.1 even considering that it exports a newly defined function skip_spaces() to drivers: text data bss dec hex filename 64867 840 592 66299 102fb (TOTALS-lib.a-BEFORE) 64641 584 592 65817 10119 (TOTALS-lib.a-AFTER) and implements some code tidy up. Besides reducing lib.a size, it converts many in-tree drivers to use the newly defined function, which makes another small reduction on kernel size overall when those drivers are used. This patch: Change "<NULL>" to "(null)", unifying 3 equal strings. glibc also uses "(null)" for the same purpose. It decreases code size by 7 bytes: text data bss dec hex filename 15765 0 8 15773 3d9d vsprintf.o (ex lib/lib.a-BEFORE) 15758 0 8 15766 3d96 vsprintf.o (ex lib/lib.a-AFTER) Signed-off-by: AndrĂ© Goddard Rosa <[email protected]> Acked-by: Frederic Weisbecker <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions