mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 00:35:01 +00:00
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>
This commit is contained in:
parent
fac04efc5c
commit
d67393f4d2
@ -78,7 +78,7 @@ quiet_cmd_hdrtest = HDRTEST $<
|
|||||||
cmd_hdrtest = \
|
cmd_hdrtest = \
|
||||||
$(CC) $(c_flags) -fsyntax-only -x c /dev/null \
|
$(CC) $(c_flags) -fsyntax-only -x c /dev/null \
|
||||||
$(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \
|
$(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \
|
||||||
$(PERL) $(src)/headers_check.pl $(obj) $(SRCARCH) $<; \
|
$(PERL) $(src)/headers_check.pl $(obj) $<; \
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(obj)/%.hdrtest: $(obj)/%.h FORCE
|
$(obj)/%.hdrtest: $(obj)/%.h FORCE
|
||||||
|
@ -3,9 +3,8 @@
|
|||||||
#
|
#
|
||||||
# headers_check.pl execute a number of trivial consistency checks
|
# headers_check.pl execute a number of trivial consistency checks
|
||||||
#
|
#
|
||||||
# Usage: headers_check.pl dir arch [files...]
|
# Usage: headers_check.pl dir [files...]
|
||||||
# dir: dir to look for included files
|
# dir: dir to look for included files
|
||||||
# arch: architecture
|
|
||||||
# files: list of files to check
|
# files: list of files to check
|
||||||
#
|
#
|
||||||
# The script reads the supplied files line by line and:
|
# The script reads the supplied files line by line and:
|
||||||
@ -23,7 +22,7 @@ use warnings;
|
|||||||
use strict;
|
use strict;
|
||||||
use File::Basename;
|
use File::Basename;
|
||||||
|
|
||||||
my ($dir, $arch, @files) = @ARGV;
|
my ($dir, @files) = @ARGV;
|
||||||
|
|
||||||
my $ret = 0;
|
my $ret = 0;
|
||||||
my $line;
|
my $line;
|
||||||
@ -54,10 +53,6 @@ sub check_include
|
|||||||
my $inc = $1;
|
my $inc = $1;
|
||||||
my $found;
|
my $found;
|
||||||
$found = stat($dir . "/" . $inc);
|
$found = stat($dir . "/" . $inc);
|
||||||
if (!$found) {
|
|
||||||
$inc =~ s#asm/#asm-$arch/#;
|
|
||||||
$found = stat($dir . "/" . $inc);
|
|
||||||
}
|
|
||||||
if (!$found) {
|
if (!$found) {
|
||||||
printf STDERR "$filename:$lineno: included file '$inc' is not exported\n";
|
printf STDERR "$filename:$lineno: included file '$inc' is not exported\n";
|
||||||
$ret = 1;
|
$ret = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user