[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4676C78D.8040208@zytor.com>
Date: Mon, 18 Jun 2007 10:57:33 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Robert Hancock <hancockr@...w.ca>
CC: David Woodhouse <dwmw2@...radead.org>,
Arnd Bergmann <arnd@...db.de>,
Arjan van de Ven <arjan@...radead.org>,
Mike Frysinger <vapier@...too.org>, akpm@...ux-foundation.org,
linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org,
rmk@....linux.org.uk
Subject: Re: [patch] use __asm__ and __volatile__ in i386/arm/s390 byteorder.h
Robert Hancock wrote:
>
> If we expect userspace apps to include them, then I would vote for no,
> not for anything outside of #ifdef __KERNEL__ in exported headers. Keep
> in mind also that C++ apps may need to include these as well and those
> extensions don't always play well in C++ mode. (Last instance I ran into
> was the ioctl argument checking macros _IOR, _IOW, etc. that create
> non-compiling code if you use them in a C++ program.)
>
Some of the actual ioctl macros generate silently wrong code if you use
them in a C program.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists