Skip to content

Commit

Permalink
l3mdev: Correct function names in the kerneldoc comments
Browse files Browse the repository at this point in the history
Fix the following W=1 kernel build warning(s):

 net/l3mdev/l3mdev.c:111: warning: expecting prototype for l3mdev_master_ifindex(). Prototype was for l3mdev_master_ifindex_rcu() instead
 net/l3mdev/l3mdev.c:145: warning: expecting prototype for l3mdev_master_upper_ifindex_by_index(). Prototype was for l3mdev_master_upper_ifindex_by_index_rcu() instead

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
fenghusthu authored and davem330 committed Mar 29, 2021
1 parent 4732315 commit 3756928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/l3mdev/l3mdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ int l3mdev_ifindex_lookup_by_table_id(enum l3mdev_type l3type,
EXPORT_SYMBOL_GPL(l3mdev_ifindex_lookup_by_table_id);

/**
* l3mdev_master_ifindex - get index of L3 master device
* l3mdev_master_ifindex_rcu - get index of L3 master device
* @dev: targeted interface
*/

Expand Down Expand Up @@ -136,7 +136,7 @@ int l3mdev_master_ifindex_rcu(const struct net_device *dev)
EXPORT_SYMBOL_GPL(l3mdev_master_ifindex_rcu);

/**
* l3mdev_master_upper_ifindex_by_index - get index of upper l3 master
* l3mdev_master_upper_ifindex_by_index_rcu - get index of upper l3 master
* device
* @net: network namespace for device index lookup
* @ifindex: targeted interface
Expand Down

0 comments on commit 3756928

Please sign in to comment.