[klibc] [PATCH] build: Define __EXPORTED_HEADER__
Mike Waychison
mikew at google.com
Wed Feb 23 16:12:57 PST 2011
The kernel header guard to ensure that headers aren't included from
userland moved in commit 69c8f52b. This causes the following message to
be emitted when building klibc (which is designed to use kernel headers
explicitly):
/usr/local/src/git/linux-2.6//include/linux/types.h:13:2: warning: #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
In order to silence this warning, make sure we define
__EXPORTED_HEADERS__ when building klibc userland.
Signed-off-by: Mike Waychison <mikew at google.com>
---
scripts/Kbuild.klibc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index fb399f5..52a95c4 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -74,7 +74,7 @@ KLIBCWARNFLAGS := -W -Wall -Wno-sign-compare -Wno-unused-parameter
KLIBCSHAREDFLAGS :=
KLIBCBITSIZE :=
KLIBCLDFLAGS :=
-KLIBCCFLAGS :=
+KLIBCCFLAGS := -D__EXPORTED_HEADERS__
# Defaults for arch to override
KLIBCARCHINCFLAGS = -I$(KLIBCKERNELOBJ)/arch/$(KLIBCARCH)/include
--
1.7.3.1
More information about the klibc
mailing list