OSDN Git Service

net: core: Correct function name dev_uc_flush() in the kerneldoc
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Sat, 27 Mar 2021 08:15:50 +0000 (16:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 00:56:56 +0000 (17:56 -0700)
Fix the following W=1 kernel build warning(s):

 net/core/dev_addr_lists.c:732: warning: expecting prototype for dev_uc_flush(). Prototype was for dev_uc_init() instead

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev_addr_lists.c

index 1e5bde2..45ae6ee 100644 (file)
@@ -723,7 +723,7 @@ void dev_uc_flush(struct net_device *dev)
 EXPORT_SYMBOL(dev_uc_flush);
 
 /**
- *     dev_uc_flush - Init unicast address list
+ *     dev_uc_init - Init unicast address list
  *     @dev: device
  *
  *     Init unicast address list.