Re: [PATCH] mm/slab: make calculate_alignment() function static

2017-12-10 Thread Michal Hocko
On Sun 10-12-17 17:01:32, Byongho Lee wrote: > calculate_alignment() function is only used inside 'slab_common.c'. > So make it static and let compiler do more optimizations. > > After this patch there's small improvements in 'text' and 'data' size. > > $ gcc --version > gcc (GCC) 7.2.1 2017112

[PATCH] mm/slab: make calculate_alignment() function static

2017-12-09 Thread Byongho Lee
calculate_alignment() function is only used inside 'slab_common.c'. So make it static and let compiler do more optimizations. After this patch there's small improvements in 'text' and 'data' size. $ gcc --version gcc (GCC) 7.2.1 20171128 Before: text data bss dec hex