Re: make kcalloc() a static inline

From: Pekka J Enberg
Date: Tue Aug 09 2005 - 00:10:01 EST


Adrian Bunk writes:

kcalloc() doesn't do much more than calling kzalloc(), and gcc has better optimizing opportunities when it's inlined.

The result of this patch with a fulll kernel compile (roughly equivalent to "make allyesconfig") shows a minimal size improvement:

text data bss dec hex filename
25864955 5891214 2012840 33769009 2034631 vmlinux-before
25864635 5891206 2012840 33768681 20344e9 vmlinux-staticinline


Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

Acked-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

Pekka -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/