Retrieve the permalink for the feed of the search results.
<?php echo get_search_feed_link( $search_query, $feed ) ?>
If you don't echo the function you're simply going to get a permalink to the page with no RSS feed for the search results.
Since: 2.5.0
get_search_feed_link() is located in wp-includes/link-template.php
.