mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
rhashtable: unexport and make rht_obj() static
No need to export rht_obj(), all inner to outer object translations occur internally. It was intended to be used with rht_for_each() which now primarily serves as the iterator for rhashtable_remove_pprev() to effectively flush and free the full table. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5300fdcb7b
commit
c91eee56dc
2 changed files with 1 additions and 8 deletions
|
@ -117,7 +117,6 @@ void rhashtable_destroy(const struct rhashtable *ht);
|
|||
#define rht_dereference_rcu(p, ht) \
|
||||
rcu_dereference_check(p, lockdep_rht_mutex_is_held(ht))
|
||||
|
||||
/* Internal, use rht_obj() instead */
|
||||
#define rht_entry(ptr, type, member) container_of(ptr, type, member)
|
||||
#define rht_entry_safe(ptr, type, member) \
|
||||
({ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue