Re: [PATCH] warning: `__attribute_used__' redefined

From: Linus Torvalds
Date: Tue Feb 10 2004 - 11:33:12 EST




On Tue, 10 Feb 2004, Andrew Morton wrote:
>
> ah, thanks.
>
> Like this?

That will just break. The reason for the "compiler.h" include is the
"__user" part of fpstate, so now you'll get a parse error later if
non-kernel code includes this.

So the rule should still be: don't include kernel headers from user
programs. But if it's needed for some reason, that #ifdef needs to be
somewhere else (inside "compiler.h" or something).

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