Messages in this thread | | | Date | Tue, 10 Feb 2004 08:31:24 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [PATCH] warning: `__attribute_used__' redefined |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |