Messages in this thread Patch in this message | | | From | Sam Ravnborg <> | Subject | [PATCH 17/39] kbuild: fix header export when __ASSEMBLY__ is used | Date | Sat, 6 Jun 2009 01:42:35 +0200 |
| |
unifdef got confused by:
Because it does not know __ASSEMBLY__ it does not detect that htis is not for userspace. This caused too much code to be exported, and headers_check barfed over this code.
For arm this fixes following "make headers_check" warning: /usr/include/asm/hwcap.h:29: extern's make no sense in userspace
Russell King suggested to undefine __ASSEMBLY__ to fix this warning.
Cc: Russell King <rmk+lkml@arm.linux.org.uk> Cc: Jaswinder Singh Rajput <jaswinder@kernel.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> --- scripts/headers_install.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl index c6ae405..bc70ea6 100644 --- a/scripts/headers_install.pl +++ b/scripts/headers_install.pl @@ -20,7 +20,7 @@ use strict; my ($readdir, $installdir, $arch, @files) = @ARGV; -my $unifdef = "scripts/unifdef -U__KERNEL__"; +my $unifdef = "scripts/unifdef -U__KERNEL__ -U__ASSEMBLY__"; foreach my $file (@files) { local *INFILE; -- 1.6.3.rc3.40.g75b44
| |