Linux-kernel mailing list archive 2000-23,: Re: include file problem (with patch)

# Re: include file problem (with patch)

Andries Brouwer (aeb@veritas.com)
Mon, 5 Jun 2000 09:23:46 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Hans Reiser: "Re: (reiserfs) Re: New Linux 2.5 - 2.6 TODO (Alan Cox suggests delaying"
- Previous message: David L. Nicol: "Re: Hot pluggable CPUs ( was Linux 2.5 / 2.6 TODO (preliminary) )"

> S. Baker (sbaker@erols.com) wrote:

> > > While trying to compile the following sample program using
> > > 'gcc -o testbo testbo.c' I encountered a problem in
> > > include/linux/byteorder/swab.h that causes testbo not to
> > > compile.

> "Khimenko Victor" <khim@sch57.msk.ru> wrote:

> > It's not bug. It's feature. In fact even two features:
> > 1. Any program with kernel header usage is broken by definition. If
> > it does not compile - it's program bug, not kernel one.
> > 2. extern inline will be inlined ONLY when optimization is enabled -
> > do not even try to compile them without optimization (it's even
> > in some man pages).
> >

On Sun, Jun 04, 2000 at 10:30:02PM -0400, S. Baker wrote:

> Claiming that a bug is a feature is an interesting position, but
> this is still a bug. You should look closer at the problem, for a
> better understanding of what is going on. I fully understand
> that inline functions don't get compiled without optimization.
> What I also understand, and I think you missed, is that when
> optimization is NOT turned on, ...

Victor gave a perfect answer.
You forgot to read his part 1. Your program is broken already
because it includes kernel headers.

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Hans Reiser: "Re: (reiserfs) Re: New Linux 2.5 - 2.6 TODO (Alan Cox suggests delaying"
- Previous message: David L. Nicol: "Re: Hot pluggable CPUs ( was Linux 2.5 / 2.6 TODO (preliminary) )"