Skip to content

Commit

Permalink
sunrpc/cache: remove the exporting of cache_seq_next
Browse files Browse the repository at this point in the history
The function cache_seq_next is declared static and marked
EXPORT_SYMBOL_GPL, which is at best an odd combination. Because the
function is not used outside of the net/sunrpc/cache.c file it is
defined in, this commit removes the EXPORT_SYMBOL_GPL() marking.

Fixes: d48cf35 ("SUNRPC: Remove non-RCU protected lookup")
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Denis Efremov authored and J. Bruce Fields committed Jul 8, 2019
1 parent 7912344 commit a57caf8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/sunrpc/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,6 @@ static void *cache_seq_next(struct seq_file *m, void *p, loff_t *pos)
hlist_first_rcu(&cd->hash_table[hash])),
struct cache_head, cache_list);
}
EXPORT_SYMBOL_GPL(cache_seq_next);

void *cache_seq_start_rcu(struct seq_file *m, loff_t *pos)
__acquires(RCU)
Expand Down

0 comments on commit a57caf8

Please sign in to comment.