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:
Xiang Xiao
2020-08-10 02:29:35 +08:00
committed by patacongo
parent 7252275e15
commit acca9fcc3b
128 changed files with 728 additions and 977 deletions
+10 -12
View File
@@ -415,10 +415,10 @@ static int ez80emac_sysinterrupt(int irq, FAR void *context,
/* Watchdog timer expirations */
static void ez80emac_txtimeout_work(FAR void *arg);
static void ez80emac_txtimeout_expiry(int argc, wdparm_t arg, ...);
static void ez80emac_txtimeout_expiry(wdparm_t arg);
static void ez80emac_poll_work(FAR void *arg);
static void ez80emac_poll_expiry(int argc, wdparm_t arg, ...);
static void ez80emac_poll_expiry(wdparm_t arg);
/* NuttX callback functions */
@@ -1135,7 +1135,7 @@ static int ez80emac_transmit(struct ez80emac_driver_s *priv)
/* Setup the TX timeout watchdog (perhaps restarting the timer) */
wd_start(&priv->txtimeout, EMAC_TXTIMEOUT,
ez80emac_txtimeout_expiry, 1, (wdparm_t)priv);
ez80emac_txtimeout_expiry, (wdparm_t)priv);
return OK;
}
@@ -1940,8 +1940,7 @@ static void ez80emac_txtimeout_work(FAR void *arg)
* The last TX never completed. Reset the hardware and start again.
*
* Input Parameters:
* argc - The number of available arguments
* arg - The first argument
* arg - The argument
*
* Returned Value:
* None
@@ -1951,7 +1950,7 @@ static void ez80emac_txtimeout_work(FAR void *arg)
*
****************************************************************************/
static void ez80emac_txtimeout_expiry(int argc, wdparm_t arg, ...)
static void ez80emac_txtimeout_expiry(wdparm_t arg)
{
FAR struct ez80emac_driver_s *priv = (FAR struct ez80emac_driver_s *)arg;
@@ -1996,7 +1995,7 @@ static void ez80emac_poll_work(FAR void *arg)
/* Setup the watchdog poll timer again */
wd_start(&priv->txpoll, EMAC_WDDELAY,
ez80emac_poll_expiry, 1, (wdparm_t)priv);
ez80emac_poll_expiry, (wdparm_t)priv);
net_unlock();
}
@@ -2007,8 +2006,7 @@ static void ez80emac_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
@@ -2018,7 +2016,7 @@ static void ez80emac_poll_work(FAR void *arg)
*
****************************************************************************/
static void ez80emac_poll_expiry(int argc, wdparm_t arg, ...)
static void ez80emac_poll_expiry(wdparm_t arg)
{
FAR struct ez80emac_driver_s *priv = (FAR struct ez80emac_driver_s *)arg;
@@ -2039,7 +2037,7 @@ static void ez80emac_poll_expiry(int argc, wdparm_t arg, ...)
*/
wd_start(&priv->txpoll, EMAC_WDDELAY,
ez80emac_poll_expiry, 1, (wdparm_t)arg);
ez80emac_poll_expiry, (wdparm_t)arg);
}
}
@@ -2131,7 +2129,7 @@ static int ez80emac_ifup(FAR struct net_driver_s *dev)
/* Set and activate a timer process */
wd_start(&priv->txpoll, EMAC_WDDELAY,
ez80emac_poll_expiry, 1, (wdparm_t)priv);
ez80emac_poll_expiry, (wdparm_t)priv);
/* Enable the Ethernet interrupts */