Lines Matching refs:prototype
326 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1200 my ($prototype, $file) = @_;
1779 my $prototype = shift;
1785 $prototype =~ s/^static +//;
1786 $prototype =~ s/^extern +//;
1787 $prototype =~ s/^asmlinkage +//;
1788 $prototype =~ s/^inline +//;
1789 $prototype =~ s/^__inline__ +//;
1790 $prototype =~ s/^__inline +//;
1791 $prototype =~ s/^__always_inline +//;
1792 $prototype =~ s/^noinline +//;
1793 $prototype =~ s/__init +//;
1794 $prototype =~ s/__init_or_module +//;
1795 $prototype =~ s/__deprecated +//;
1796 $prototype =~ s/__flatten +//;
1797 $prototype =~ s/__meminit +//;
1798 $prototype =~ s/__must_check +//;
1799 $prototype =~ s/__weak +//;
1800 $prototype =~ s/__sched +//;
1801 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1802 $prototype =~ s/__alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
1803 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1804 $prototype =~ s/__attribute_const__ +//;
1805 $prototype =~ s/__attribute__\s*\(\(
1835 if ($define && $prototype =~ m/^()($name)\s+/) {
1843 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1844 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1845 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1852 print STDERR "${file}:$.: warning: cannot understand function prototype: '$prototype'\n";
1914 $prototype = "";
1925 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1928 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1931 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1935 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1940 "$prototype\n";
1942 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1950 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1952 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1957 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1958 if ($prototype =~ m/long (sys_.*?),/) {
1959 $prototype =~ s/,/\(/;
1961 $prototype =~ s/\)/\(void\)/;
1967 my $len = length($prototype);
1972 if (substr($prototype, $ix, 1) eq ',') {
1975 substr($prototype, $ix, 1) = ' ';
1991 $prototype .= $1;
1995 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1996 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1997 $prototype =~ s@^\s+@@gos; # strip leading spaces
2001 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
2003 if ($prototype =~ /SYSCALL_DEFINE/) {
2006 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
2007 $prototype =~ /DEFINE_SINGLE_EVENT/)
2011 dump_function($prototype, $file);
2032 if( length $prototype ) {
2033 $prototype .= " "
2035 $prototype .= $1 . $2;
2039 dump_declaration($prototype, $file);
2045 $prototype .= $x;
2270 $prototype = "";
2358 $prototype = "";