https://github.com/torvalds/linux
Revision 5477d0face8a3ba4e9a1e7283692fff9c92f8e5e authored by Jens Axboe on 29 April 2010, 18:33:35 UTC, committed by Jens Axboe on 29 April 2010, 18:33:35 UTC
When CONFIG_BLOCK is set, it ends up getting backing-dev.h included.
But for !CONFIG_BLOCK, it isn't so lucky. The proper thing to do is
include <linux/backing-dev.h> directly from the file it's used from,
so do that.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
1 parent 79dba2e
Raw File
Tip revision: 5477d0face8a3ba4e9a1e7283692fff9c92f8e5e authored by Jens Axboe on 29 April 2010, 18:33:35 UTC
fs: fs/super.c needs to include backing-dev.h for !CONFIG_BLOCK
Tip revision: 5477d0f
profile2linkerlist.pl
#!/usr/bin/perl

#
# Takes a (sorted) output of readprofile and turns it into a list suitable for
# linker scripts
#
# usage:
#	 readprofile | sort -rn | perl profile2linkerlist.pl > functionlist
#

while (<>) {
  my $line = $_;

  $_ =~ /\W*[0-9]+\W*([a-zA-Z\_0-9]+)\W*[0-9]+/;

  if ( ($line =~ /unknown/) || ($line =~ /total/)) {

  } else {
    print "*(.text.$1)\n";
  }
}
back to top