aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorH. Peter Anvin <[email protected]>2012-03-22 18:08:18 +0000
committerH. Peter Anvin <[email protected]>2012-03-22 19:42:51 +0000
commit446e1c86d51d0823e003a43a2b85c430efce2733 (patch)
treea51969c3537002c1be427dd1f76a337bc97f87b8 /lib/string_helpers.c
parentx86-32: Fix typo for mq_getsetattr in syscall table (diff)
downloadkernel-446e1c86d51d0823e003a43a2b85c430efce2733.tar.gz
kernel-446e1c86d51d0823e003a43a2b85c430efce2733.zip
x86, boot: Correct CFLAGS for hostprogs
This is a partial revert of commit: d40f833 "Restrict CFLAGS for hostprogs" The endian-manipulation macros in tools/include need <linux/types.h>, but the hostprogs in arch/x86/boot need several headers from the kernel build tree, which means we have to add the kernel headers to the include path. This picks up <linux/types.h> from the kernel tree, which gives a warning. Since this use of <linux/types.h> is intentional, add -D__EXPORTED_HEADERS__ to the command line to silence the warning. A better way to fix this would be to always install the exported kernel headers into $(objtree)/usr/include as a standard part of the kernel build, but that is a lot more involved. Reported-by: Linus Torvalds <[email protected]> Acked-by: Matt Fleming <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions