Skip to contentSkip to conversation

rhashtable: Document the right function parameters

PATCH Applied Jonathan Neuschäfer 3 participants 3 messages Mar 5, 2020 – Mar 7, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rhashtable: Document the right function parameters

rhashtable_lookup_get_insert_key doesn't have a parameter data. It does have a parameter key, however.

---
 include/linux/rhashtable.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rhashtable.h +1 -1
index beb9a9da1699..70ebef866cc8 100644
@@ -972,9 +972,9 @@ static inline int rhashtable_lookup_insert_key(
 /**
  * rhashtable_lookup_get_insert_key - lookup and insert object into hash table
  * @ht:		hash table
+ * @key:	key
  * @obj:	pointer to hash head inside object
  * @params:	hash table parameters
- * @data:	pointer to element data already in hashes
  *
  * Just like rhashtable_lookup_insert_key(), but this function returns the
  * object if it exists, NULL if it does not and the insertion was successful,

--
2.20.1