Re: inline functions

Albert Cahalan (albert@ccs.neu.edu)
Sun, 17 Mar 1996 23:35:29 -0500 (EST)


> Is there any reason "inline" (And "__inline" in asm/smp.h) is
> used instead of "__inline__" in some of the kernel include files?
> It breaks "gcc -ansi".
>
> Before you say "just use gcc", please note that *some* of the
> files already use __inline__, so I think this is an inconsistency
> in the files.
>
> I wouldn't mind submitting a patch to replace all inline
> with __inline__, but I want to know if it would break anything first.

I think they should all be converted to just "inline" because:

It is easy to read and helps avoid right margin overflow.
Although not pure ANSI, it is not gcc specific either.
Any compiler that does not have the inline keyword will cause problems.