Skip to content
Snippets Groups Projects
  1. May 14, 2017
    • Kamil Rytarowski's avatar
      scripts: Switch to more portable Perl shebang · cb77f0d6
      Kamil Rytarowski authored
      
      The default NetBSD package manager is pkgsrc and it installs Perl
      along other third party programs under custom and configurable prefix.
      The default prefix for binary prebuilt packages is /usr/pkg, and the
      Perl executable lands in /usr/pkg/bin/perl.
      
      This change switches "/usr/bin/perl" to "/usr/bin/env perl" as it's
      the most portable solution that should work for almost everybody.
      Perl's executable is detected automatically.
      
      This change switches -w option passed to the executable with more
      modern "use warnings;" approach. There is no functional change to the
      default behavior.
      
      While there, drop "require 5" from scripts/namespace.pl (Perl from 1994?).
      
      Signed-off-by: default avatarKamil Rytarowski <n54@gmx.com>
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      cb77f0d6
  2. Aug 20, 2014
  3. May 24, 2011
    • Jim Cromie's avatar
      export_report: use warn() to issue WARNING, so they go to stderr · ca995cbf
      Jim Cromie authored
      
      Also count CONFIG_MODVERSIONS warnings, and print a NOTE at start of
      SECTION 2 if any were issued.  Section 2 will be empty if the build is
      lacking this CONFIG_ item, and user may have missed the warnings, as
      they're off screen.
      
      Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      ca995cbf
    • Jim Cromie's avatar
      export_report: sort SECTION 2 output · bdabc7a3
      Jim Cromie authored
      
      Sort SECTION 2 modules by name.  Within those module listings, sort
      the symbol providers by name, and remove the count, as it is
      misleading; its the kernel-wide count of uses of that symbol, not the
      count pertaining to the module being outlined.  (this can be seen by
      grepping the output for a single symbol).  The count is still used to
      sort the symbols.
      
      Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      bdabc7a3
    • Jim Cromie's avatar
      export_report: do collectcfiles work in perl itself · de7b0b41
      Jim Cromie authored
      
      Avoid spawning a shell pipeline doing cat, grep, sed, and do it all
      inside perl.  The <*.c> globbing construct works at least as far back
      as 5.8.9
      
      Note that this is not just an optimization; the sed command
      in the pipeline was unterminated, due to lack of escape on the
      end-of-line (\$) in the regex, resulting in this:
      
          $ perl ../linux-2.6/scripts/export_report.pl  > /dev/null
          sed: -e expression #1, char 5: unterminated `s' command
          sh: .mod.c/: not found
      
      Comments on an earlier patch sought an all-perl implementation.
      
      Signed-off-by: default avatarJim Cromie <jim.cromie@gmail.com>
      cc: Michal Marek <mmarek@suse.cz>,
      cc: linux-kbuild@vger.kernel.org
      cc: Arnaud Lacombe lacombar@gmail.com
      cc: Stephen Hemminger shemminger@vyatta.com
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      de7b0b41
  4. Mar 07, 2010
  5. Oct 12, 2007
  6. Jun 24, 2006
    • Ram Pai's avatar
      kbuild: export-symbol usage report generator · c5e30033
      Ram Pai authored
      
      The following patch provides the ability to generate a report of
      	(1) All the exported symbols and their in-kernel-module usage count
      	(2) For each module, lists the modules and their exported symbols, on
      	                  which it depends.
      
      	the report can be generated by executing:
      	perl scripts/export_report
      
      The tool warns if the modules are not build using MODVERSIONING.
      
      Signed-off-by: default avatarRam Pai <linuxram@us.ibm.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      c5e30033
Loading