Skip to contentSkip to conversation

i40e: correct i40e_addr_to_hkey() name in kdoc

PATCH In review Simon Horman 2 participants 2 messages Jul 5, 2024

Subsystems (3)
lore
Share & tools
lore

Simon Horman

author reviewer
#0 lore raw

PATCH 1/1 i40e: correct i40e_addr_to_hkey() name in kdoc

Correct name of i40e_addr_to_hkey() in it's kdoc.

kernel-doc -none reports:

drivers/net/ethernet/intel/i40e/i40e.h:739: warning: expecting prototype for i40e_mac_to_hkey(). Prototype was for i40e_addr_to_hkey() instead

---
 drivers/net/ethernet/intel/i40e/i40e.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
index bca2084cc54b..d546567e0286 100644
@@ -735,7 +735,7 @@ __i40e_pf_next_veb(struct i40e_pf *pf, int *idx)
 	     _i++, _veb = __i40e_pf_next_veb(_pf, &_i))
 
 /**
- * i40e_mac_to_hkey - Convert a 6-byte MAC Address to a u64 hash key
+ * i40e_addr_to_hkey - Convert a 6-byte MAC Address to a u64 hash key
  * @macaddr: the MAC Address as the base key
  *
  * Simply copies the address and returns it as a u64 for hashing
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Simon Horman

Correct name of i40e_addr_to_hkey() in it's kdoc.

kernel-doc -none reports:

drivers/net/ethernet/intel/i40e/i40e.h:739: warning: expecting prototype for i40e_mac_to_hkey(). Prototype was for i40e_addr_to_hkey() instead

thank you,

(unrelated digression below)

Quoted 10 lines
---
  drivers/net/ethernet/intel/i40e/i40e.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40e/i40e.h +0 -0
index bca2084cc54b..d546567e0286 100644

drivers/net/ethernet/intel/i40e/i40e.h __i40e_pf_next_veb(struct i40e_pf *pf, int *idx) · line 741

Quoted 8 lines
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
@@ -735,7 +735,7 @@ __i40e_pf_next_veb(struct i40e_pf *pf, int *idx)
  	     _i++, _veb = __i40e_pf_next_veb(_pf, &_i))
 
  /**
- * i40e_mac_to_hkey - Convert a 6-byte MAC Address to a u64 hash key
+ * i40e_addr_to_hkey - Convert a 6-byte MAC Address to a u64 hash key
   * @macaddr: the MAC Address as the base key
   *
   * Simply copies the address and returns it as a u64 for hashing

I really look forward to the day that sender will be able to add metadata to the patch displaying options - here changing context to 5 would make review an instant thing, as now there is no signature line:
static inline u64 i40e_addr_to_hkey(const u8 *macaddr).
But if Simon will send like that, this will be lost when applied to Tony's tree.

I'm picking such trivial patch to bring the topic to don't derail any which will have it's own on-topic discussion, but this is for the benefit of reviewers of bigger changes of course.