Lines Matching refs:prototype
176 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1071 my ($prototype, $file) = @_;
1646 my $prototype = shift;
1652 $prototype =~ s/^static +//;
1653 $prototype =~ s/^extern +//;
1654 $prototype =~ s/^asmlinkage +//;
1655 $prototype =~ s/^inline +//;
1656 $prototype =~ s/^__inline__ +//;
1657 $prototype =~ s/^__inline +//;
1658 $prototype =~ s/^__always_inline +//;
1659 $prototype =~ s/^noinline +//;
1660 $prototype =~ s/__init +//;
1661 $prototype =~ s/__init_or_module +//;
1662 $prototype =~ s/__deprecated +//;
1663 $prototype =~ s/__flatten +//;
1664 $prototype =~ s/__meminit +//;
1665 $prototype =~ s/__must_check +//;
1666 $prototype =~ s/__weak +//;
1667 $prototype =~ s/__sched +//;
1668 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1669 $prototype =~ s/__alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
1670 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1671 $prototype =~ s/__attribute_const__ +//;
1672 $prototype =~ s/__attribute__\s*\(\(
1702 if ($define && $prototype =~ m/^()($name)\s+/) {
1710 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1711 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1712 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1719 emit_warning("${file}:$.", "cannot understand function prototype: '$prototype'\n");
1781 $prototype = "";
1792 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1795 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1798 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1802 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1807 "$prototype\n");
1809 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1817 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1819 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1824 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1825 if ($prototype =~ m/long (sys_.*?),/) {
1826 $prototype =~ s/,/\(/;
1828 $prototype =~ s/\)/\(void\)/;
1834 my $len = length($prototype);
1839 if (substr($prototype, $ix, 1) eq ',') {
1842 substr($prototype, $ix, 1) = ' ';
1858 $prototype .= $1;
1862 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1863 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1864 $prototype =~ s@^\s+@@gos; # strip leading spaces
1868 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1870 if ($prototype =~ /SYSCALL_DEFINE/) {
1873 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1874 $prototype =~ /DEFINE_SINGLE_EVENT/)
1878 dump_function($prototype, $file);
1899 if( length $prototype ) {
1900 $prototype .= " "
1902 $prototype .= $1 . $2;
1906 dump_declaration($prototype, $file);
1912 $prototype .= $x;
2126 $prototype = "";
2213 $prototype = "";