Lines Matching refs:prototype
176 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1084 my ($prototype, $file) = @_;
1661 my $prototype = shift;
1667 $prototype =~ s/^static +//;
1668 $prototype =~ s/^extern +//;
1669 $prototype =~ s/^asmlinkage +//;
1670 $prototype =~ s/^inline +//;
1671 $prototype =~ s/^__inline__ +//;
1672 $prototype =~ s/^__inline +//;
1673 $prototype =~ s/^__always_inline +//;
1674 $prototype =~ s/^noinline +//;
1675 $prototype =~ s/^__FORTIFY_INLINE +//;
1676 $prototype =~ s/__init +//;
1677 $prototype =~ s/__init_or_module +//;
1678 $prototype =~ s/__deprecated +//;
1679 $prototype =~ s/__flatten +//;
1680 $prototype =~ s/__meminit +//;
1681 $prototype =~ s/__must_check +//;
1682 $prototype =~ s/__weak +//;
1683 $prototype =~ s/__sched +//;
1684 $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
1685 $prototype =~ s/__(?:re)?alloc_size\s*\(\s*\d+\s*(?:,\s*\d+\s*)?\) +//;
1686 $prototype =~ s/__diagnose_as\s*\(\s*\S+\s*(?:,\s*\d+\s*)*\) +//;
1687 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
1688 $prototype =~ s/__attribute_const__ +//;
1689 $prototype =~ s/__attribute__\s*\(\(
1719 if ($define && $prototype =~ m/^()($name)\s+/) {
1727 } elsif ($prototype =~ m/^()($name)\s*$prototype_end/ ||
1728 $prototype =~ m/^($type1)\s+($name)\s*$prototype_end/ ||
1729 $prototype =~ m/^($type2+)\s*($name)\s*$prototype_end/) {
1736 emit_warning("${file}:$.", "cannot understand function prototype: '$prototype'\n");
1798 $prototype = "";
1809 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
1812 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
1815 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
1819 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
1824 "$prototype\n");
1826 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
1834 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/CR's
1836 if ($prototype =~ m/SYSCALL_DEFINE0/) {
1841 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
1842 if ($prototype =~ m/long (sys_.*?),/) {
1843 $prototype =~ s/,/\(/;
1845 $prototype =~ s/\)/\(void\)/;
1851 my $len = length($prototype);
1856 if (substr($prototype, $ix, 1) eq ',') {
1859 substr($prototype, $ix, 1) = ' ';
1875 $prototype .= $1;
1879 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
1880 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
1881 $prototype =~ s@^\s+@@gos; # strip leading spaces
1885 $prototype =~ s@^(\S+\s+)\(\s*\*(\S+)\)@$1$2@gos;
1887 if ($prototype =~ /SYSCALL_DEFINE/) {
1890 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
1891 $prototype =~ /DEFINE_SINGLE_EVENT/)
1895 dump_function($prototype, $file);
1916 if( length $prototype ) {
1917 $prototype .= " "
1919 $prototype .= $1 . $2;
1923 dump_declaration($prototype, $file);
1929 $prototype .= $x;
2136 $prototype = "";
2223 $prototype = "";