Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kbuild: Drop support for include/asm-<arch> in headers_check.pl

"include/asm-<arch>" was replaced by "arch/<arch>/include/asm" a long
time ago. All assembler header files are now included using
"#include <asm/*>", so there is no longer a need to rewrite paths.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Geert Uytterhoeven and committed by
Masahiro Yamada
d67393f4 fac04efc

+3 -8
+1 -1
usr/include/Makefile
··· 78 cmd_hdrtest = \ 79 $(CC) $(c_flags) -fsyntax-only -x c /dev/null \ 80 $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \ 81 - $(PERL) $(src)/headers_check.pl $(obj) $(SRCARCH) $<; \ 82 touch $@ 83 84 $(obj)/%.hdrtest: $(obj)/%.h FORCE
··· 78 cmd_hdrtest = \ 79 $(CC) $(c_flags) -fsyntax-only -x c /dev/null \ 80 $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \ 81 + $(PERL) $(src)/headers_check.pl $(obj) $<; \ 82 touch $@ 83 84 $(obj)/%.hdrtest: $(obj)/%.h FORCE
+2 -7
usr/include/headers_check.pl
··· 3 # 4 # headers_check.pl execute a number of trivial consistency checks 5 # 6 - # Usage: headers_check.pl dir arch [files...] 7 # dir: dir to look for included files 8 - # arch: architecture 9 # files: list of files to check 10 # 11 # The script reads the supplied files line by line and: ··· 22 use strict; 23 use File::Basename; 24 25 - my ($dir, $arch, @files) = @ARGV; 26 27 my $ret = 0; 28 my $line; ··· 53 my $inc = $1; 54 my $found; 55 $found = stat($dir . "/" . $inc); 56 - if (!$found) { 57 - $inc =~ s#asm/#asm-$arch/#; 58 - $found = stat($dir . "/" . $inc); 59 - } 60 if (!$found) { 61 printf STDERR "$filename:$lineno: included file '$inc' is not exported\n"; 62 $ret = 1;
··· 3 # 4 # headers_check.pl execute a number of trivial consistency checks 5 # 6 + # Usage: headers_check.pl dir [files...] 7 # dir: dir to look for included files 8 # files: list of files to check 9 # 10 # The script reads the supplied files line by line and: ··· 23 use strict; 24 use File::Basename; 25 26 + my ($dir, @files) = @ARGV; 27 28 my $ret = 0; 29 my $line; ··· 54 my $inc = $1; 55 my $found; 56 $found = stat($dir . "/" . $inc); 57 if (!$found) { 58 printf STDERR "$filename:$lineno: included file '$inc' is not exported\n"; 59 $ret = 1;