lkml.org 
[lkml]   [2004]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.062 / U:1.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site