[rds-devel] [PATCH] net: make ctl_path local and const
Joe Perches
joe at perches.com
Tue Oct 19 21:59:39 PDT 2010
On Wed, 2010-10-20 at 12:52 +0800, Changli Gao wrote:
> On Wed, Oct 20, 2010 at 11:28 AM, Joe Perches <joe at perches.com> wrote:
> > At least some objects are smaller with static.
> > $ size net/appletalk/sysctl_net_atalk.o.*
> > text data bss dec hex filename
> > 324 236 48 608 260 net/appletalk/sysctl_net_atalk.o.withstatic
> > 344 236 48 628 274 net/appletalk/sysctl_net_atalk.o.withoutstatic
> I got the opposite result for the size of the whole kernel image with
> allyesconfig.
> original: 33531456
> patched: 33531424
> It seems random.
Not using static requires the compiler to emit
initialization code for any use of the routine
that otherwise would only be done once.
More information about the rds-devel
mailing list