Lines Matching refs:prototype

268 my ($newsection, $newcontents, $prototype, $brcount, %source_map);
1724 my ($prototype, $file) = @_;
2074 my $prototype = shift;
2078 $prototype =~ s/^static +//;
2079 $prototype =~ s/^extern +//;
2080 $prototype =~ s/^asmlinkage +//;
2081 $prototype =~ s/^inline +//;
2082 $prototype =~ s/^__inline__ +//;
2083 $prototype =~ s/^__inline +//;
2084 $prototype =~ s/^__always_inline +//;
2085 $prototype =~ s/^noinline +//;
2086 $prototype =~ s/__init +//;
2087 $prototype =~ s/__init_or_module +//;
2088 $prototype =~ s/__meminit +//;
2089 $prototype =~ s/__must_check +//;
2090 $prototype =~ s/__weak +//;
2091 my $define = $prototype =~ s/^#\s*define\s+//; #ak added
2092 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
2110 if ($define && $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s+/) {
2118 } elsif ($prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2119 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2120 $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2121 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2122 $prototype =~ m/^(\w+\s+\w+\s*\*+)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2123 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2124 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\(]*)\)/ ||
2125 $prototype =~ m/^()([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2126 $prototype =~ m/^(\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2127 $prototype =~ m/^(\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2128 $prototype =~ m/^(\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2129 $prototype =~ m/^(\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2130 $prototype =~ m/^(\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2131 $prototype =~ m/^(\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2132 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+)\s+([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2133 $prototype =~ m/^(\w+\s+\w+\s+\w+\s+\w+\s*\*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/ ||
2134 $prototype =~ m/^(\w+\s+\w+\s*\*\s*\w+\s*\*\s*)\s*([a-zA-Z0-9_~:]+)\s*\(([^\{]*)\)/) {
2141 print STDERR "Warning(${file}:$.): cannot understand function prototype: '$prototype'\n";
2181 $prototype = "";
2191 if ($prototype =~ m/TRACE_EVENT\((.*?),/) {
2194 if ($prototype =~ m/DEFINE_SINGLE_EVENT\((.*?),/) {
2197 if ($prototype =~ m/DEFINE_EVENT\((.*?),(.*?),/) {
2201 if ($prototype =~ m/TP_PROTO\((.*?)\)/) {
2206 "$prototype\n";
2208 $prototype = "static inline void trace_$tracepointname($tracepointargs)";
2215 $prototype =~ s@[\r\n\t]+@ @gos; # strip newlines/CR's/tabs
2217 if ($prototype =~ m/SYSCALL_DEFINE0/) {
2222 $prototype =~ s/SYSCALL_DEFINE.*\(/long sys_/; # fix return type & func name
2223 if ($prototype =~ m/long (sys_.*?),/) {
2224 $prototype =~ s/,/\(/;
2226 $prototype =~ s/\)/\(void\)/;
2232 my $len = length($prototype);
2237 if (substr($prototype, $ix, 1) eq ',') {
2240 substr($prototype, $ix, 1) = ' ';
2256 $prototype .= $1;
2260 $prototype =~ s@/\*.*?\*/@@gos; # strip comments.
2261 $prototype =~ s@[\r\n]+@ @gos; # strip newlines/cr's.
2262 $prototype =~ s@^\s+@@gos; # strip leading spaces
2263 if ($prototype =~ /SYSCALL_DEFINE/) {
2266 if ($prototype =~ /TRACE_EVENT/ || $prototype =~ /DEFINE_EVENT/ ||
2267 $prototype =~ /DEFINE_SINGLE_EVENT/)
2271 dump_function($prototype, $file);
2292 $prototype .= $1 . $2;
2296 dump_declaration($prototype, $file);
2302 $prototype .= $x;
2468 $prototype = "";
2515 $prototype = "";
2533 $prototype = "";