Re: make kcalloc() a static inline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>

Acked-by: Pekka Enberg <[email protected]> Pekka -
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux