Commit de2b541b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by David S. Miller

net: fix a new kernel-doc warning at dev.c

kernel-doc expects the function prototype to be just after
the kernel-doc markup, as otherwise it will get it all wrong:

	./net/core/dev.c:10036: warning: Excess function parameter 'dev' description in 'WAIT_REFS_MIN_MSECS'

Fixes: 0e4be9e5 ("net: use exponential backoff in netdev_wait_allrefs")
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Reviewed-by: default avatarFrancesco Ruggeri <fruggeri@arista.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 774e9ea6
...@@ -10021,6 +10021,8 @@ int netdev_refcnt_read(const struct net_device *dev) ...@@ -10021,6 +10021,8 @@ int netdev_refcnt_read(const struct net_device *dev)
} }
EXPORT_SYMBOL(netdev_refcnt_read); EXPORT_SYMBOL(netdev_refcnt_read);
#define WAIT_REFS_MIN_MSECS 1
#define WAIT_REFS_MAX_MSECS 250
/** /**
* netdev_wait_allrefs - wait until all references are gone. * netdev_wait_allrefs - wait until all references are gone.
* @dev: target net_device * @dev: target net_device
...@@ -10033,8 +10035,6 @@ EXPORT_SYMBOL(netdev_refcnt_read); ...@@ -10033,8 +10035,6 @@ EXPORT_SYMBOL(netdev_refcnt_read);
* We can get stuck here if buggy protocols don't correctly * We can get stuck here if buggy protocols don't correctly
* call dev_put. * call dev_put.
*/ */
#define WAIT_REFS_MIN_MSECS 1
#define WAIT_REFS_MAX_MSECS 250
static void netdev_wait_allrefs(struct net_device *dev) static void netdev_wait_allrefs(struct net_device *dev)
{ {
unsigned long rebroadcast_time, warning_time; unsigned long rebroadcast_time, warning_time;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment