Re: Fw: /usr/include/asm/system.h

Dave Jones (davej@suse.de)
Tue, 21 May 2002 18:51:07 +0200


On Tue, May 21, 2002 at 02:48:33PM +0200, Dave Jones wrote:
> > > > I am running a Mandrake 8.1 linux distribution with gcc 2.96. In
> > > > the file /usr/include/asm/system.h, the function __cmpxchg uses a
> > > > parameter named "new" which is a reserved keyword in C++.
> The function is wrapped in an #ifdef __KERNEL__
> Kernel code isn't meant to be compiled with a c++ compiler

I was of course, completely wrong about this, that #ifdef doesn't cover
the whole of <asm/system.h>.

Some of the stuff outside that ifdef will never work in a userspace
app anyway (like wbinvd). Looking at it, is there anything there at all
that we should let userspace be seeing, or should that #ifdef cover
the whole file ?

Dave.

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/