[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH trivial] include: uapi: standard all files' macro prefix and suffix, excluding "linux/" sub-directory
- To: Chen Gang <gang.chen@xxxxxxxxxxx>
- From: David Howells <dhowells@xxxxxxxxxx>
- Date: Tue, 05 Nov 2013 11:11:36 +0000
- Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, jeremy@xxxxxxxx, airlied@xxxxxxxx, daniel.vetter@xxxxxxxx, alsa-devel@xxxxxxxxxxxxxxxx, dri-devel@xxxxxxxxxxxxxxxxxxxxx, perex@xxxxxxxx, dhowells@xxxxxxxxxx, thierry.reding@xxxxxxxxx, linux-mtd@xxxxxxxxxxxxxxxxxxx, sean.hefty@xxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, Linux-Arch <linux-arch@xxxxxxxxxxxxxxx>, "kgene.kim@xxxxxxxxxxx" <kgene.kim@xxxxxxxxxxx>, tbergstrom@xxxxxxxxxx, jy0922.shim@xxxxxxxxxxx, roland@xxxxxxxxxxxxxxx, Takashi Iwai <tiwai@xxxxxxx>, Tomi Valkeinen <tomi.valkeinen@xxxxxx>, mtk.manpages@xxxxxxxxx, fcoe-devel@xxxxxxxxxxxxx, Paul McKenney <paulmck@xxxxxxxxxxxxxxxxxx>, "plagnioj@xxxxxxxxxxxx" <plagnioj@xxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, swarren@xxxxxxxxxxxxx, intel-gfx@xxxxxxxxxxxxxxxxxxxxx, inki.dae@xxxxxxxxxxx, "linux-samsung-soc@xxxxxxxxxxxxxxx" <linux-samsung-soc@xxxxxxxxxxxxxxx>, Linux Fbdev development list <linux-fbdev@xxxxxxxxxxxxxxx>, linux-tegra@xxxxxxxxxxxxxxx, davej@xxxxxxxxxx, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, robert.w.love@xxxxxxxxx, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, 'Jiri Kosina' <trivial@xxxxxxxxxx>, dedekind1@xxxxxxxxx, sw0312.kim@xxxxxxxxxxx, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, JBottomley@xxxxxxxxxxxxx, "kyungmin.park@xxxxxxxxxxx" <kyungmin.park@xxxxxxxxxxx>, "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, dwmw2@xxxxxxxxxxxxx, David Miller <davem@xxxxxxxxxxxxx>, shanim@xxxxxxxxxxxx
- Delivery-date: Tue, 05 Nov 2013 11:16:14 +0000
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
Chen Gang <gang.chen@xxxxxxxxxxx> wrote:
> > Userspace sometimes depends on the name in the guard macro:-/
>
> "the guard macro" is only for prevent itself from being included by
> multiple times (an id used by itself -- like a handle), it is not an id
> to let other files know about it (it is not a normal using way).
Whilst that *should* be true, it isn't actually true. See:
grep -r _LINUX_.*_H /usr/include/ | grep -v ^/usr/include/linux/
for example. Also who knows what all those autoconf scripts out there look
for?
However, thinking about it some more, you're probably safe with respect to
userspace as scripts/headers_install.h strips off the _UAPI prefix on the
guard macros - just as long as you don't change the rest of the macro name.
David
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|