exit 1
fi
cd "$kernel_src"
-grep_res="$(grep -R -n "\(^\| \)$method_symbol *\($\|(\)" "$symbol_file")"
+grep_res="$(grep -R -n "^\(\|\S.* \)$method_symbol *\($\|(\)" "$symbol_file")"
if [ -z "$grep_res" ]; then
echo "error: can't find method in source"
exit 1
echo "$grep_res"
if [ "$(echo "$grep_res"|wc -l)" -gt 1 ]; then
echo "error: too many results"
+ exit 1
fi
symbol_line="$(echo "$grep_res" | cut -d':' -f1)"
echo "symbol is in $symbol_file, line $symbol_line"