mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
sched/wdog: Replace all callback argument from uint32_t to wdparm_t
and alwasy cast the argument of wd_start to wdparm_t Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
3b76666a1e
commit
4c706771c3
@@ -549,8 +549,8 @@ static void btnet_txpoll_work(FAR void *arg)
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
wd_start(priv->bd_txpoll, TXPOLL_WDDELAY, btnet_txpoll_expiry, 1,
|
||||
(wdparm_t)priv);
|
||||
wd_start(priv->bd_txpoll, TXPOLL_WDDELAY,
|
||||
btnet_txpoll_expiry, 1, (wdparm_t)priv);
|
||||
net_unlock();
|
||||
}
|
||||
|
||||
@@ -629,8 +629,8 @@ static int btnet_ifup(FAR struct net_driver_s *netdev)
|
||||
|
||||
/* Set and activate a timer process */
|
||||
|
||||
wd_start(priv->bd_txpoll, TXPOLL_WDDELAY, btnet_txpoll_expiry,
|
||||
1, (wdparm_t)priv);
|
||||
wd_start(priv->bd_txpoll, TXPOLL_WDDELAY,
|
||||
btnet_txpoll_expiry, 1, (wdparm_t)priv);
|
||||
|
||||
/* The interface is now up */
|
||||
|
||||
|
||||
@@ -491,7 +491,7 @@ static void lo_poll_work(FAR void *arg)
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY, lo_poll_expiry, 1, priv);
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY, lo_poll_expiry, 1, (wdparm_t)priv);
|
||||
net_unlock();
|
||||
}
|
||||
|
||||
@@ -594,8 +594,8 @@ static int lo_ifup(FAR struct net_driver_s *dev)
|
||||
|
||||
/* Set and activate a timer process */
|
||||
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY, lo_poll_expiry,
|
||||
1, (wdparm_t)priv);
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY,
|
||||
lo_poll_expiry, 1, (wdparm_t)priv);
|
||||
|
||||
priv->lo_bifup = true;
|
||||
return OK;
|
||||
|
||||
@@ -590,8 +590,8 @@ static void macnet_txpoll_work(FAR void *arg)
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
wd_start(priv->md_txpoll, TXPOLL_WDDELAY, macnet_txpoll_expiry, 1,
|
||||
(wdparm_t)priv);
|
||||
wd_start(priv->md_txpoll, TXPOLL_WDDELAY,
|
||||
macnet_txpoll_expiry, 1, (wdparm_t)priv);
|
||||
net_unlock();
|
||||
}
|
||||
|
||||
@@ -778,8 +778,8 @@ static int macnet_ifup(FAR struct net_driver_s *dev)
|
||||
|
||||
/* Set and activate a timer process */
|
||||
|
||||
wd_start(priv->md_txpoll, TXPOLL_WDDELAY, macnet_txpoll_expiry,
|
||||
1, (wdparm_t)priv);
|
||||
wd_start(priv->md_txpoll, TXPOLL_WDDELAY,
|
||||
macnet_txpoll_expiry, 1, (wdparm_t)priv);
|
||||
|
||||
ret = OK;
|
||||
}
|
||||
|
||||
@@ -449,7 +449,7 @@ static void lo_poll_work(FAR void *arg)
|
||||
|
||||
/* Setup the watchdog poll timer again */
|
||||
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY, lo_poll_expiry, 1, priv);
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY, lo_poll_expiry, 1, (wdparm_t)priv);
|
||||
net_unlock();
|
||||
}
|
||||
|
||||
@@ -533,8 +533,8 @@ static int lo_ifup(FAR struct net_driver_s *dev)
|
||||
|
||||
/* Set and activate a timer process */
|
||||
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY, lo_poll_expiry,
|
||||
1, (wdparm_t)priv);
|
||||
wd_start(priv->lo_polldog, LO_WDDELAY,
|
||||
lo_poll_expiry, 1, (wdparm_t)priv);
|
||||
|
||||
priv->lo_bifup = true;
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user