Merge tag 'kbuild-fixes-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/masah...
[linux-2.6-microblaze.git] / scripts / get_abi.pl
index 6212f58..1389db7 100755 (executable)
@@ -92,6 +92,7 @@ sub parse_abi {
        my $mode = (stat($file))[2];
        return if ($mode & S_IFDIR);
        return if ($file =~ m,/README,);
+       return if ($file =~ m,/\.,);
 
        my $name = $file;
        $name =~ s,.*/,,;
@@ -326,7 +327,7 @@ sub output_rest {
                my @filepath = split / /, $data{$what}->{filepath};
 
                if ($enable_lineno) {
-                       printf "#define LINENO %s%s#%s\n\n",
+                       printf ".. LINENO %s%s#%s\n\n",
                               $prefix, $file[0],
                               $data{$what}->{line_no};
                }
@@ -987,7 +988,7 @@ abi_book.pl - parse the Linux ABI files and produce a ReST book.
 B<abi_book.pl> [--debug <level>] [--enable-lineno] [--man] [--help]
               [--(no-)rst-source] [--dir=<dir>] [--show-hints]
               [--search-string <regex>]
-              <COMAND> [<ARGUMENT>]
+              <COMMAND> [<ARGUMENT>]
 
 Where B<COMMAND> can be:
 
@@ -1022,7 +1023,7 @@ logic (B<--no-rst-source>).
 
 =item B<--enable-lineno>
 
-Enable output of #define LINENO lines.
+Enable output of .. LINENO lines.
 
 =item B<--debug> I<debug level>