From: Adrian Bunk <bunk@fs.tum.de>
To: Andrew Morton <akpm@osdl.org>
Cc: ak@muc.de, linux-kernel@vger.kernel.org
Subject: Re: [2.6 patch] kill __always_inline
Date: Wed, 1 Sep 2004 00:52:44 +0200 [thread overview]
Message-ID: <20040831225244.GY3466@fs.tum.de> (raw)
In-Reply-To: <20040831153649.7f8a1197.akpm@osdl.org>
On Tue, Aug 31, 2004 at 03:36:49PM -0700, Andrew Morton wrote:
> Adrian Bunk <bunk@fs.tum.de> wrote:
> >
> > An issue that we already discussed at 2.6.8-rc2-mm2 times:
> >
> > 2.6.9-rc1 includes __always_inline which was formerly in -mm.
> > __always_inline doesn't make any sense:
> >
> > __always_inline is _exactly_ the same as __inline__, __inline and inline .
> >
> >
> > The patch below removes __always_inline again:
>
> But what happens if we later change `inline' so that it doesn't do
> the `always inline' thing?
>
> An explicit usage of __always_inline is semantically different than
> boring old `inline'.
Who audits all current users of inline whether they are __always_inline?
Who ensures, that in the future there will always be the right one of
inline and __always_inline choosen in the kernel?
If it doesn't give a compile or runtime error for anyone when it's
wrong, many wrong inline/__always_inline will go into the kernel over
time.
The intention might be a different semantics, but in the end, it won't
work.
E.g., check how many wrong __init/__exit annotations show up in 2.6,
each of whom would have been a compile error in 2.4 (and different
from a wrong inline/__always_inline, a wrong __init/__exit annotation
can cause real problems for users).
If you want to change inline at some point, you will have to audit all
users of inline anyway - so why bother if you don't intend to change
inline in the forseeable future?
cu
Adrian
--
"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
next prev parent reply other threads:[~2004-08-31 22:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 22:13 [2.6 patch] kill __always_inline Adrian Bunk
2004-08-31 22:36 ` Andrew Morton
2004-08-31 22:52 ` Adrian Bunk [this message]
2004-08-31 23:01 ` Andrew Morton
2004-08-31 23:12 ` Nigel Cunningham
2004-08-31 23:39 ` Andrew Morton
2004-08-31 23:41 ` Nigel Cunningham
2004-09-02 19:46 ` Adrian Bunk
2004-09-02 23:12 ` Tim Bird
2004-09-02 23:25 ` Andrew Morton
[not found] <2zpiO-72f-37@gated-at.bofh.it>
[not found] ` <2zpC1-7fh-13@gated-at.bofh.it>
[not found] ` <2zpVj-7yW-3@gated-at.bofh.it>
[not found] ` <2zqeK-7JB-3@gated-at.bofh.it>
2004-08-31 23:43 ` Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040831225244.GY3466@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox