Re: [PATCH] prepare kconfig inline optimization for all architectures

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Adrian Bunk
Date: Sunday, April 27, 2008 - 10:22 am

On Sun, Apr 27, 2008 at 10:06:41AM -0700, Linus Torvalds wrote:

I'm looking at it from a different angle, all code in the kernel should 
follow the following rules [1]:
- no functions in .c files should be marked inline
- all functions in headers should be static inline
- all functions in headers should either be very small or collapse
  to become very small after inlining

I can simply not see any usecase for a non-forced inline in the kernel,
and fixing the kernel should give a superset of the space savings of 
this "inline optimization".


cu
Adrian

[1] there might be rare exceptions

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] prepare kconfig inline optimization for all ar ..., Adrian Bunk, (Sun Apr 27, 10:22 am)
Re: [PATCH] prepare kconfig inline optimization for all ar ..., Christoph Hellwig, (Sun Apr 27, 10:57 am)
Re: [PATCH] prepare kconfig inline optimization for all ar ..., Christoph Hellwig, (Sun Apr 27, 11:00 am)
Re: [PATCH] prepare kconfig inline optimization for all ar ..., Christoph Hellwig, (Sun Apr 27, 11:14 am)
Re: [PATCH] prepare kconfig inline optimization for all ar ..., Christoph Hellwig, (Sun Apr 27, 11:25 am)
Re: [PATCH] prepare kconfig inline optimization for all ar ..., Christoph Hellwig, (Sun Apr 27, 11:32 am)
Re: [PATCH] prepare kconfig inline optimization for all ar ..., Christoph Hellwig, (Sun Apr 27, 11:36 am)