diff options
| author | Keith Owens <kaos@ocs.com.au> | 2005-01-20 16:06:19 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-20 16:06:19 -0800 |
| commit | e63585926bedccf96aff1ea1119d8e51d5d18dbf (patch) | |
| tree | 8ef581715f2a2aaf40286335618087f5879bbcce /scripts | |
| parent | c2cf1ccf5414a1970aeba561ea575f502201bc82 (diff) | |
[PATCH] scripts/reference*.pl - treat built-in.o as conglomerate
scripts/reference*.pl - treat built-in.o as conglomerate. Ignore
references from altinstructions to init text/data.
Signed-off-by: Keith Owens <kaos@ocs.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/reference_discarded.pl | 2 | ||||
| -rw-r--r-- | scripts/reference_init.pl | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/reference_discarded.pl b/scripts/reference_discarded.pl index 8f80364fc280..d694208ef46e 100644 --- a/scripts/reference_discarded.pl +++ b/scripts/reference_discarded.pl @@ -62,7 +62,7 @@ foreach $object (keys(%object)) { $l = read(OBJECT, $comment, $size); die "read $size bytes from $object .comment failed" if ($l != $size); close(OBJECT); - if ($comment =~ /GCC\:.*GCC\:/m) { + if ($comment =~ /GCC\:.*GCC\:/m || $object =~ /built-in\.o/) { ++$ignore; delete($object{$object}); } diff --git a/scripts/reference_init.pl b/scripts/reference_init.pl index e4c57a371fba..8a379bf38756 100644 --- a/scripts/reference_init.pl +++ b/scripts/reference_init.pl @@ -70,7 +70,7 @@ foreach $object (keys(%object)) { $l = read(OBJECT, $comment, $size); die "read $size bytes from $object .comment failed" if ($l != $size); close(OBJECT); - if ($comment =~ /GCC\:.*GCC\:/m) { + if ($comment =~ /GCC\:.*GCC\:/m || $object =~ /built-in\.o/) { ++$ignore; delete($object{$object}); } @@ -96,6 +96,7 @@ foreach $object (sort(keys(%object))) { $from !~ /\.pci_fixup_header$/ && $from !~ /\.pci_fixup_final$/ && $from !~ /\__param$/ && + $from !~ /\.altinstructions/ && $from !~ /\.debug_/)) { printf("Error: %s %s refers to %s\n", $object, $from, $line); } |
