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 -13
View File
@@ -335,9 +335,9 @@ static int enc_interrupt(int irq, FAR void *context, FAR void *arg);
/* Watchdog timer expirations */
static void enc_toworker(FAR void *arg);
static void enc_txtimeout(int argc, wdparm_t arg, ...);
static void enc_txtimeout(wdparm_t arg);
static void enc_pollworker(FAR void *arg);
static void enc_polltimer(int argc, wdparm_t arg, ...);
static void enc_polltimer(wdparm_t arg);
/* NuttX callback functions */
@@ -1159,7 +1159,7 @@ static int enc_transmit(FAR struct enc_driver_s *priv)
*/
wd_start(&priv->txtimeout, ENC_TXTIMEOUT,
enc_txtimeout, 1, (wdparm_t)priv);
enc_txtimeout, (wdparm_t)priv);
return OK;
}
@@ -1932,8 +1932,7 @@ static void enc_toworker(FAR void *arg)
* The last TX never completed. Perform work on the worker thread.
*
* Input Parameters:
* argc - The number of available arguments
* arg - The first argument
* arg - The argument
*
* Returned Value:
* None
@@ -1942,7 +1941,7 @@ static void enc_toworker(FAR void *arg)
*
****************************************************************************/
static void enc_txtimeout(int argc, wdparm_t arg, ...)
static void enc_txtimeout(wdparm_t arg)
{
FAR struct enc_driver_s *priv = (FAR struct enc_driver_s *)arg;
int ret;
@@ -1972,8 +1971,7 @@ static void enc_txtimeout(int argc, wdparm_t arg, ...)
* Periodic timer handler continuation.
*
* Input Parameters:
* argc - The number of available arguments
* arg - The first argument
* arg - The argument
*
* Returned Value:
* None
@@ -2017,7 +2015,7 @@ static void enc_pollworker(FAR void *arg)
/* Setup the watchdog poll timer again */
wd_start(&priv->txpoll, ENC_WDDELAY,
enc_polltimer, 1, (wdparm_t)arg);
enc_polltimer, (wdparm_t)arg);
}
/****************************************************************************
@@ -2027,8 +2025,7 @@ static void enc_pollworker(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
@@ -2037,7 +2034,7 @@ static void enc_pollworker(FAR void *arg)
*
****************************************************************************/
static void enc_polltimer(int argc, wdparm_t arg, ...)
static void enc_polltimer(wdparm_t arg)
{
FAR struct enc_driver_s *priv = (FAR struct enc_driver_s *)arg;
int ret;
@@ -2117,7 +2114,7 @@ static int enc_ifup(struct net_driver_s *dev)
/* Set and activate a timer process */
wd_start(&priv->txpoll, ENC_WDDELAY,
enc_polltimer, 1, (wdparm_t)priv);
enc_polltimer, (wdparm_t)priv);
/* Mark the interface up and enable the Ethernet interrupt at the
* controller