mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
sched/wdog: Remove MAX_WDOGPARMS and related stuff
since the variable arguments are error prone and seldom used. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
@@ -171,7 +171,7 @@ static inline void lo_netmask(FAR struct net_driver_s *dev);
|
||||
static int lo_loopback(FAR struct net_driver_s *dev);
|
||||
static void lo_loopback_work(FAR void *arg);
|
||||
static void lo_poll_work(FAR void *arg);
|
||||
static void lo_poll_expiry(int argc, wdparm_t arg, ...);
|
||||
static void lo_poll_expiry(wdparm_t arg);
|
||||
|
||||
/* NuttX callback functions */
|
||||
|
||||
@@ -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, (wdparm_t)priv);
|
||||
wd_start(&priv->lo_polldog, LO_WDDELAY, lo_poll_expiry, (wdparm_t)priv);
|
||||
net_unlock();
|
||||
}
|
||||
|
||||
@@ -502,8 +502,7 @@ static void lo_poll_work(FAR void *arg)
|
||||
* Periodic timer handler. Called from the timer interrupt handler.
|
||||
*
|
||||
* Input Parameters:
|
||||
* argc - The number of available arguments
|
||||
* arg - The first argument
|
||||
* arg - The argument
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
@@ -513,7 +512,7 @@ static void lo_poll_work(FAR void *arg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void lo_poll_expiry(int argc, wdparm_t arg, ...)
|
||||
static void lo_poll_expiry(wdparm_t arg)
|
||||
{
|
||||
FAR struct lo_driver_s *priv = (FAR struct lo_driver_s *)arg;
|
||||
|
||||
@@ -595,7 +594,7 @@ 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);
|
||||
lo_poll_expiry, (wdparm_t)priv);
|
||||
|
||||
priv->lo_bifup = true;
|
||||
return OK;
|
||||
|
||||
@@ -200,7 +200,7 @@ static int macnet_rxframe(FAR struct macnet_driver_s *maccb,
|
||||
|
||||
static int macnet_txpoll_callback(FAR struct net_driver_s *dev);
|
||||
static void macnet_txpoll_work(FAR void *arg);
|
||||
static void macnet_txpoll_expiry(int argc, wdparm_t arg, ...);
|
||||
static void macnet_txpoll_expiry(wdparm_t arg);
|
||||
|
||||
/* IOCTL support */
|
||||
|
||||
@@ -591,7 +591,7 @@ 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);
|
||||
macnet_txpoll_expiry, (wdparm_t)priv);
|
||||
net_unlock();
|
||||
}
|
||||
|
||||
@@ -602,8 +602,7 @@ static void macnet_txpoll_work(FAR void *arg)
|
||||
* Periodic timer handler. Called from the timer interrupt handler.
|
||||
*
|
||||
* Input Parameters:
|
||||
* argc - The number of available arguments
|
||||
* arg - The first argument
|
||||
* arg - The argument
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
@@ -613,7 +612,7 @@ static void macnet_txpoll_work(FAR void *arg)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
static void macnet_txpoll_expiry(int argc, wdparm_t arg, ...)
|
||||
static void macnet_txpoll_expiry(wdparm_t arg)
|
||||
{
|
||||
FAR struct macnet_driver_s *priv = (FAR struct macnet_driver_s *)arg;
|
||||
|
||||
@@ -779,7 +778,7 @@ 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);
|
||||
macnet_txpoll_expiry, (wdparm_t)priv);
|
||||
|
||||
ret = OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user