Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24 /scripts/export_report.pl

Filename:/scripts/export_report.pl
Lines Added:5
Lines Deleted:5
Also changed in: (Previous) 2.6.24-rc8  2.6.24-rc7  2.6.24-rc6  2.6.24-rc5  2.6.24-rc4  2.6.24-rc3 
(Following)

Location
[  2.6.24
  [  scripts
     o  export_report.pl

Patch

diff --git a/scripts/export_report.pl b/scripts/export_report.pl
index 9ed00d9..705b5ba 100644
--- a/scripts/export_report.pl
+++ b/scripts/export_report.pl
@@ -103,16 +103,16 @@ foreach my $thismod (@allcfiles) {
    my $state=0;
    while ( <MODULE_MODULE> ) {
       chomp;
-      if ($state eq 0) {
+      if ($state == 0) {
          $state = 1 if ($_ =~ /static const struct modversion_info/);
          next;
       }
-      if ($state eq 1) {
+      if ($state == 1) {
          $state = 2 if ($_ =~ /__attribute__\(\(section\("__versions"\)\)\)/);
          next;
       }
-      if ($state eq 2) {
-         if ( $_ !~ /0x[0-9a-f]{7,8},/ ) {
+      if ($state == 2) {
+         if ( $_ !~ /0x[0-9a-f]+,/ ) {
             next;
          }
          my $sym = (split /([,"])/,)[4];
@@ -121,7 +121,7 @@ foreach my $thismod (@allcfiles) {
          push(@{$MODULE{$thismod}} , $sym);
       }
    }
-   if ($state ne 2) {
+   if ($state != 2) {
       print "WARNING:$thismod is not built with CONFIG_MODVERSION enabled\n";
    }
    close(MODULE_MODULE);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.