Remove type casting to wdentry_t (arch/)

This commit is contained in:
Nakamura, Yuuichi 2020-04-07 00:10:56 +09:00 committed by patacongo
parent 2ca9681b00
commit e264484c16
29 changed files with 84 additions and 84 deletions

View File

@ -256,7 +256,7 @@ static int cxd56_rtc_interrupt(int irq, FAR void *context, FAR void *arg)
*
************************************************************************************/
static void cxd56_rtc_initialize(int argc, uint32_t arg)
static void cxd56_rtc_initialize(int argc, uint32_t arg, ...)
{
struct timespec ts;
#ifdef CONFIG_CXD56_RTC_LATEINIT
@ -285,7 +285,7 @@ static void cxd56_rtc_initialize(int argc, uint32_t arg)
rtcinfo("retry count: %d\n", s_retry);
if (OK == wd_start(s_wdog, MSEC2TICK(RTC_CLOCK_CHECK_INTERVAL),
(wdentry_t)cxd56_rtc_initialize, 1, (wdparm_t)NULL))
cxd56_rtc_initialize, 1, (wdparm_t)NULL))
{
/* Again, this function is called recursively */

View File

@ -392,7 +392,7 @@ static void cxd56_dataconfig(struct cxd56_sdiodev_s *priv, bool bwrite,
static void cxd56_datadisable(void);
static void cxd56_transmit(struct cxd56_sdiodev_s *priv);
static void cxd56_receive(struct cxd56_sdiodev_s *priv);
static void cxd56_eventtimeout(int argc, uint32_t arg);
static void cxd56_eventtimeout(int argc, uint32_t arg, ...);
static void cxd56_endwait(struct cxd56_sdiodev_s *priv,
sdio_eventset_t wkupevent);
static void cxd56_endtransfer(struct cxd56_sdiodev_s *priv,
@ -1021,7 +1021,7 @@ static void cxd56_receive(struct cxd56_sdiodev_s *priv)
*
****************************************************************************/
static void cxd56_eventtimeout(int argc, uint32_t arg)
static void cxd56_eventtimeout(int argc, uint32_t arg, ...)
{
struct cxd56_sdiodev_s *priv = (struct cxd56_sdiodev_s *)arg;
@ -2651,7 +2651,7 @@ static sdio_eventset_t cxd56_sdio_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)cxd56_eventtimeout,
ret = wd_start(priv->waitwdog, delay, cxd56_eventtimeout,
1, (uint32_t)priv);
if (ret != OK)
{

View File

@ -288,7 +288,7 @@ static void imxrt_transmit(struct imxrt_dev_s *priv);
static void imxrt_receive(struct imxrt_dev_s *priv);
#endif
static void imxrt_eventtimeout(int argc, uint32_t arg);
static void imxrt_eventtimeout(int argc, uint32_t arg, ...);
static void imxrt_endwait(struct imxrt_dev_s *priv,
sdio_eventset_t wkupevent);
static void imxrt_endtransfer(struct imxrt_dev_s *priv,
@ -1017,7 +1017,7 @@ static void imxrt_receive(struct imxrt_dev_s *priv)
*
****************************************************************************/
static void imxrt_eventtimeout(int argc, uint32_t arg)
static void imxrt_eventtimeout(int argc, uint32_t arg, ...)
{
struct imxrt_dev_s *priv = (struct imxrt_dev_s *)arg;
@ -2708,7 +2708,7 @@ static sdio_eventset_t imxrt_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t) imxrt_eventtimeout,
ret = wd_start(priv->waitwdog, delay, imxrt_eventtimeout,
1, (uint32_t) priv);
if (ret < 0)

View File

@ -264,7 +264,7 @@ static void kinetis_datadisable(void);
static void kinetis_transmit(struct kinetis_dev_s *priv);
static void kinetis_receive(struct kinetis_dev_s *priv);
#endif
static void kinetis_eventtimeout(int argc, uint32_t arg);
static void kinetis_eventtimeout(int argc, uint32_t arg, ...);
static void kinetis_endwait(struct kinetis_dev_s *priv,
sdio_eventset_t wkupevent);
static void kinetis_endtransfer(struct kinetis_dev_s *priv,
@ -934,7 +934,7 @@ static void kinetis_receive(struct kinetis_dev_s *priv)
*
****************************************************************************/
static void kinetis_eventtimeout(int argc, uint32_t arg)
static void kinetis_eventtimeout(int argc, uint32_t arg, ...)
{
struct kinetis_dev_s *priv = (struct kinetis_dev_s *)arg;
@ -2507,7 +2507,7 @@ static sdio_eventset_t kinetis_eventwait(FAR struct sdio_dev_s *dev,
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay,
(wdentry_t)kinetis_eventtimeout,
kinetis_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -347,7 +347,7 @@ static void lpc17_40_dataconfig(uint32_t timeout, uint32_t dlen,
static void lpc17_40_datadisable(void);
static void lpc17_40_sendfifo(struct lpc17_40_dev_s *priv);
static void lpc17_40_recvfifo(struct lpc17_40_dev_s *priv);
static void lpc17_40_eventtimeout(int argc, uint32_t arg);
static void lpc17_40_eventtimeout(int argc, uint32_t arg, ...);
static void lpc17_40_endwait(struct lpc17_40_dev_s *priv,
sdio_eventset_t wkupevent);
static void lpc17_40_endtransfer(struct lpc17_40_dev_s *priv,
@ -1088,7 +1088,7 @@ static void lpc17_40_recvfifo(struct lpc17_40_dev_s *priv)
*
****************************************************************************/
static void lpc17_40_eventtimeout(int argc, uint32_t arg)
static void lpc17_40_eventtimeout(int argc, uint32_t arg, ...)
{
struct lpc17_40_dev_s *priv = (struct lpc17_40_dev_s *)arg;
@ -2345,7 +2345,7 @@ static sdio_eventset_t lpc17_40_eventwait(FAR struct sdio_dev_s *dev,
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay,
(wdentry_t) lpc17_40_eventtimeout,
lpc17_40_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -291,7 +291,7 @@ static void lpc43_config_dmaints(struct lpc43_dev_s *priv, uint32_t xfrmask,
/* Data Transfer Helpers ****************************************************/
static void lpc43_eventtimeout(int argc, uint32_t arg);
static void lpc43_eventtimeout(int argc, uint32_t arg, ...);
static void lpc43_endwait(struct lpc43_dev_s *priv,
sdio_eventset_t wkupevent);
static void lpc43_endtransfer(struct lpc43_dev_s *priv,
@ -838,7 +838,7 @@ static void lpc43_config_dmaints(struct lpc43_dev_s *priv, uint32_t xfrmask,
*
****************************************************************************/
static void lpc43_eventtimeout(int argc, uint32_t arg)
static void lpc43_eventtimeout(int argc, uint32_t arg, ...)
{
struct lpc43_dev_s *priv = (struct lpc43_dev_s *)arg;
@ -2313,7 +2313,7 @@ static sdio_eventset_t lpc43_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)lpc43_eventtimeout,
ret = wd_start(priv->waitwdog, delay, lpc43_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -295,7 +295,7 @@ static void lpc54_config_dmaints(struct lpc54_dev_s *priv, uint32_t xfrmask,
/* Data Transfer Helpers ****************************************************/
static void lpc54_eventtimeout(int argc, uint32_t arg);
static void lpc54_eventtimeout(int argc, uint32_t arg, ...);
static void lpc54_endwait(struct lpc54_dev_s *priv,
sdio_eventset_t wkupevent);
static void lpc54_endtransfer(struct lpc54_dev_s *priv,
@ -838,7 +838,7 @@ static void lpc54_config_dmaints(struct lpc54_dev_s *priv, uint32_t xfrmask,
*
****************************************************************************/
static void lpc54_eventtimeout(int argc, uint32_t arg)
static void lpc54_eventtimeout(int argc, uint32_t arg, ...)
{
struct lpc54_dev_s *priv = (struct lpc54_dev_s *)arg;
@ -2313,7 +2313,7 @@ static sdio_eventset_t lpc54_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)lpc54_eventtimeout,
ret = wd_start(priv->waitwdog, delay, lpc54_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -448,7 +448,7 @@ static void sam_dmacallback(DMA_HANDLE handle, void *arg, int result);
/* Data Transfer Helpers ****************************************************/
static void sam_eventtimeout(int argc, uint32_t arg);
static void sam_eventtimeout(int argc, uint32_t arg, ...);
static void sam_endwait(struct sam_dev_s *priv, sdio_eventset_t wkupevent);
static void sam_endtransfer(struct sam_dev_s *priv,
sdio_eventset_t wkupevent);
@ -1088,7 +1088,7 @@ static void sam_dmacallback(DMA_HANDLE handle, void *arg, int result)
*
****************************************************************************/
static void sam_eventtimeout(int argc, uint32_t arg)
static void sam_eventtimeout(int argc, uint32_t arg, ...)
{
struct sam_dev_s *priv = (struct sam_dev_s *)arg;
@ -2328,7 +2328,7 @@ static sdio_eventset_t sam_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)sam_eventtimeout,
ret = wd_start(priv->waitwdog, delay, sam_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -735,7 +735,7 @@ static void spi_dma_sampledone(struct sam_spics_s *spics)
****************************************************************************/
#ifdef CONFIG_SAM34_SPI_DMA
static void spi_dmatimeout(int argc, uint32_t arg)
static void spi_dmatimeout(int argc, uint32_t arg, ...)
{
struct sam_spics_s *spics = (struct sam_spics_s *)arg;
DEBUGASSERT(spics != NULL);
@ -1585,7 +1585,7 @@ static void spi_exchange(struct spi_dev_s *dev, const void *txbuffer,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(spics->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)spi_dmatimeout, 1, (uint32_t)spics);
spi_dmatimeout, 1, (uint32_t)spics);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -527,7 +527,7 @@ static inline uintptr_t hsmci_physregaddr(struct sam_dev_s *priv,
/* Data Transfer Helpers ****************************************************/
static void sam_eventtimeout(int argc, uint32_t arg);
static void sam_eventtimeout(int argc, uint32_t arg, ...);
static void sam_endwait(struct sam_dev_s *priv, sdio_eventset_t wkupevent);
static void sam_endtransfer(struct sam_dev_s *priv,
sdio_eventset_t wkupevent);
@ -1310,7 +1310,7 @@ static inline uintptr_t hsmci_physregaddr(struct sam_dev_s *priv,
*
****************************************************************************/
static void sam_eventtimeout(int argc, uint32_t arg)
static void sam_eventtimeout(int argc, uint32_t arg, ...)
{
struct sam_dev_s *priv = (struct sam_dev_s *)arg;
@ -2755,7 +2755,7 @@ static sdio_eventset_t sam_eventwait(FAR struct sdio_dev_s *dev,
}
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)sam_eventtimeout,
ret = wd_start(priv->waitwdog, delay, sam_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -723,7 +723,7 @@ static void spi_dma_sampledone(struct sam_spics_s *spics)
****************************************************************************/
#ifdef CONFIG_SAMA5_SPI_DMA
static void spi_dmatimeout(int argc, uint32_t arg)
static void spi_dmatimeout(int argc, uint32_t arg, ...)
{
struct sam_spics_s *spics = (struct sam_spics_s *)arg;
DEBUGASSERT(spics != NULL);
@ -1511,7 +1511,7 @@ static void spi_exchange(struct spi_dev_s *dev, const void *txbuffer,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(spics->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)spi_dmatimeout, 1, (uint32_t)spics);
spi_dmatimeout, 1, (uint32_t)spics);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -578,14 +578,14 @@ static void ssc_txdma_sampledone(struct sam_ssc_s *priv, int result);
#endif
#ifdef SSC_HAVE_RX
static void ssc_rxdma_timeout(int argc, uint32_t arg);
static void ssc_rxdma_timeout(int argc, uint32_t arg, ...);
static int ssc_rxdma_setup(struct sam_ssc_s *priv);
static void ssc_rx_worker(void *arg);
static void ssc_rx_schedule(struct sam_ssc_s *priv, int result);
static void ssc_rxdma_callback(DMA_HANDLE handle, void *arg, int result);
#endif
#ifdef SSC_HAVE_TX
static void ssc_txdma_timeout(int argc, uint32_t arg);
static void ssc_txdma_timeout(int argc, uint32_t arg, ...);
static int ssc_txdma_setup(struct sam_ssc_s *priv);
static void ssc_tx_worker(void *arg);
static void ssc_tx_schedule(struct sam_ssc_s *priv, int result);
@ -1193,7 +1193,7 @@ static void ssc_txdma_sampledone(struct sam_ssc_s *priv, int result)
****************************************************************************/
#ifdef SSC_HAVE_RX
static void ssc_rxdma_timeout(int argc, uint32_t arg)
static void ssc_rxdma_timeout(int argc, uint32_t arg, ...)
{
struct sam_ssc_s *priv = (struct sam_ssc_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1340,7 +1340,7 @@ static int ssc_rxdma_setup(struct sam_ssc_s *priv)
if (!notimeout)
{
ret = wd_start(priv->rx.dog, timeout, (wdentry_t)ssc_rxdma_timeout,
ret = wd_start(priv->rx.dog, timeout, ssc_rxdma_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note
@ -1605,7 +1605,7 @@ static void ssc_rxdma_callback(DMA_HANDLE handle, void *arg, int result)
****************************************************************************/
#ifdef SSC_HAVE_TX
static void ssc_txdma_timeout(int argc, uint32_t arg)
static void ssc_txdma_timeout(int argc, uint32_t arg, ...)
{
struct sam_ssc_s *priv = (struct sam_ssc_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1753,7 +1753,7 @@ static int ssc_txdma_setup(struct sam_ssc_s *priv)
if (!notimeout)
{
ret = wd_start(priv->tx.dog, timeout, (wdentry_t)ssc_txdma_timeout,
ret = wd_start(priv->tx.dog, timeout, ssc_txdma_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note

View File

@ -462,7 +462,7 @@ static inline uintptr_t hsmci_regaddr(struct sam_dev_s *priv,
/* Data Transfer Helpers ****************************************************/
static void sam_eventtimeout(int argc, uint32_t arg);
static void sam_eventtimeout(int argc, uint32_t arg, ...);
static void sam_endwait(struct sam_dev_s *priv, sdio_eventset_t wkupevent);
static void sam_endtransfer(struct sam_dev_s *priv,
sdio_eventset_t wkupevent);
@ -1246,7 +1246,7 @@ static inline uintptr_t hsmci_regaddr(struct sam_dev_s *priv,
*
****************************************************************************/
static void sam_eventtimeout(int argc, uint32_t arg)
static void sam_eventtimeout(int argc, uint32_t arg, ...)
{
struct sam_dev_s *priv = (struct sam_dev_s *)arg;
@ -2803,7 +2803,7 @@ static sdio_eventset_t sam_eventwait(FAR struct sdio_dev_s *dev,
}
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)sam_eventtimeout,
ret = wd_start(priv->waitwdog, delay, sam_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -585,7 +585,7 @@ static void qspi_dma_sampledone(struct sam_qspidev_s *priv)
****************************************************************************/
#ifdef CONFIG_SAMV7_QSPI_DMA
static void qspi_dma_timeout(int argc, uint32_t arg)
static void qspi_dma_timeout(int argc, uint32_t arg, ...)
{
struct sam_qspidev_s *priv = (struct sam_qspidev_s *)arg;
DEBUGASSERT(priv != NULL);
@ -883,7 +883,7 @@ static int qspi_memory_dma(struct sam_qspidev_s *priv,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(priv->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)qspi_dma_timeout, 1, (uint32_t)priv);
qspi_dma_timeout, 1, (uint32_t)priv);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -762,7 +762,7 @@ static void spi_dma_sampledone(struct sam_spics_s *spics)
****************************************************************************/
#ifdef CONFIG_SAMV7_SPI_DMA
static void spi_dmatimeout(int argc, uint32_t arg)
static void spi_dmatimeout(int argc, uint32_t arg, ...)
{
struct sam_spics_s *spics = (struct sam_spics_s *)arg;
DEBUGASSERT(spics != NULL);
@ -1858,7 +1858,7 @@ static void spi_exchange(struct spi_dev_s *dev, const void *txbuffer,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(spics->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)spi_dmatimeout, 1, (uint32_t)spics);
spi_dmatimeout, 1, (uint32_t)spics);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -553,14 +553,14 @@ static void ssc_txdma_sampledone(struct sam_ssc_s *priv, int result);
#endif
#ifdef SSC_HAVE_RX
static void ssc_rxdma_timeout(int argc, uint32_t arg);
static void ssc_rxdma_timeout(int argc, uint32_t arg, ...);
static int ssc_rxdma_setup(struct sam_ssc_s *priv);
static void ssc_rx_worker(void *arg);
static void ssc_rx_schedule(struct sam_ssc_s *priv, int result);
static void ssc_rxdma_callback(DMA_HANDLE handle, void *arg, int result);
#endif
#ifdef SSC_HAVE_TX
static void ssc_txdma_timeout(int argc, uint32_t arg);
static void ssc_txdma_timeout(int argc, uint32_t arg, ...);
static int ssc_txdma_setup(struct sam_ssc_s *priv);
static void ssc_tx_worker(void *arg);
static void ssc_tx_schedule(struct sam_ssc_s *priv, int result);
@ -1168,7 +1168,7 @@ static void ssc_txdma_sampledone(struct sam_ssc_s *priv, int result)
****************************************************************************/
#ifdef SSC_HAVE_RX
static void ssc_rxdma_timeout(int argc, uint32_t arg)
static void ssc_rxdma_timeout(int argc, uint32_t arg, ...)
{
struct sam_ssc_s *priv = (struct sam_ssc_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1317,7 +1317,7 @@ static int ssc_rxdma_setup(struct sam_ssc_s *priv)
if (!notimeout)
{
ret = wd_start(priv->rx.dog, timeout, (wdentry_t)ssc_rxdma_timeout,
ret = wd_start(priv->rx.dog, timeout, ssc_rxdma_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note
@ -1582,7 +1582,7 @@ static void ssc_rxdma_callback(DMA_HANDLE handle, void *arg, int result)
****************************************************************************/
#ifdef SSC_HAVE_TX
static void ssc_txdma_timeout(int argc, uint32_t arg)
static void ssc_txdma_timeout(int argc, uint32_t arg, ...)
{
struct sam_ssc_s *priv = (struct sam_ssc_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1734,7 +1734,7 @@ static int ssc_txdma_setup(struct sam_ssc_s *priv)
if (!notimeout)
{
ret = wd_start(priv->tx.dog, timeout, (wdentry_t)ssc_txdma_timeout,
ret = wd_start(priv->tx.dog, timeout, ssc_txdma_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note

View File

@ -411,7 +411,7 @@ static void i2s_txdma_sampledone(struct stm32_i2s_s *priv, int result);
#endif
#ifdef I2S_HAVE_RX
static void i2s_rxdma_timeout(int argc, uint32_t arg);
static void i2s_rxdma_timeout(int argc, uint32_t arg, ...);
static int i2s_rxdma_setup(struct stm32_i2s_s *priv);
static void i2s_rx_worker(void *arg);
static void i2s_rx_schedule(struct stm32_i2s_s *priv, int result);
@ -419,7 +419,7 @@ static void i2s_rxdma_callback(DMA_HANDLE handle, uint8_t result,
void *arg);
#endif
#ifdef I2S_HAVE_TX
static void i2s_txdma_timeout(int argc, uint32_t arg);
static void i2s_txdma_timeout(int argc, uint32_t arg, ...);
static int i2s_txdma_setup(struct stm32_i2s_s *priv);
static void i2s_tx_worker(void *arg);
static void i2s_tx_schedule(struct stm32_i2s_s *priv, int result);
@ -959,7 +959,7 @@ static void i2s_txdma_sampledone(struct stm32_i2s_s *priv, int result)
****************************************************************************/
#ifdef I2S_HAVE_RX
static void i2s_rxdma_timeout(int argc, uint32_t arg)
static void i2s_rxdma_timeout(int argc, uint32_t arg, ...)
{
struct stm32_i2s_s *priv = (struct stm32_i2s_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1095,7 +1095,7 @@ static int i2s_rxdma_setup(struct stm32_i2s_s *priv)
if (!notimeout)
{
ret = wd_start(priv->rx.dog, timeout, (wdentry_t)i2s_rxdma_timeout,
ret = wd_start(priv->rx.dog, timeout, i2s_rxdma_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note
@ -1355,7 +1355,7 @@ static void i2s_rxdma_callback(DMA_HANDLE handle, uint8_t result, void *arg)
****************************************************************************/
#ifdef I2S_HAVE_TX
static void i2s_txdma_timeout(int argc, uint32_t arg)
static void i2s_txdma_timeout(int argc, uint32_t arg, ...)
{
struct stm32_i2s_s *priv = (struct stm32_i2s_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1491,7 +1491,7 @@ static int i2s_txdma_setup(struct stm32_i2s_s *priv)
if (!notimeout)
{
ret = wd_start(priv->tx.dog, timeout, (wdentry_t)i2s_txdma_timeout,
ret = wd_start(priv->tx.dog, timeout, i2s_txdma_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note

View File

@ -416,7 +416,7 @@ static void stm32_dataconfig(uint32_t timeout, uint32_t dlen,
static void stm32_datadisable(void);
static void stm32_sendfifo(struct stm32_dev_s *priv);
static void stm32_recvfifo(struct stm32_dev_s *priv);
static void stm32_eventtimeout(int argc, uint32_t arg);
static void stm32_eventtimeout(int argc, uint32_t arg, ...);
static void stm32_endwait(struct stm32_dev_s *priv,
sdio_eventset_t wkupevent);
static void stm32_endtransfer(struct stm32_dev_s *priv,
@ -1201,7 +1201,7 @@ static void stm32_recvfifo(struct stm32_dev_s *priv)
*
****************************************************************************/
static void stm32_eventtimeout(int argc, uint32_t arg)
static void stm32_eventtimeout(int argc, uint32_t arg, ...)
{
struct stm32_dev_s *priv = (struct stm32_dev_s *)arg;
@ -2545,7 +2545,7 @@ static sdio_eventset_t stm32_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)stm32_eventtimeout,
ret = wd_start(priv->waitwdog, delay, stm32_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -1337,7 +1337,7 @@ static int qspi0_interrupt(int irq, void *context, FAR void *arg)
*
****************************************************************************/
static void qspi_dma_timeout(int argc, uint32_t arg)
static void qspi_dma_timeout(int argc, uint32_t arg, ...)
{
struct stm32f7_qspidev_s *priv = (struct stm32f7_qspidev_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1511,7 +1511,7 @@ static int qspi_memory_dma(struct stm32f7_qspidev_s *priv,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(priv->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)qspi_dma_timeout, 1, (uint32_t)priv);
qspi_dma_timeout, 1, (uint32_t)priv);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -835,7 +835,7 @@ static void sai_mckdivider(struct stm32f7_sai_s *priv)
*
****************************************************************************/
static void sai_timeout(int argc, uint32_t arg)
static void sai_timeout(int argc, uint32_t arg, ...)
{
struct stm32f7_sai_s *priv = (struct stm32f7_sai_s *)arg;
DEBUGASSERT(priv != NULL);
@ -978,7 +978,7 @@ static int sai_dma_setup(struct stm32f7_sai_s *priv)
if (bfcontainer->timeout > 0)
{
ret = wd_start(priv->dog, bfcontainer->timeout, (wdentry_t)sai_timeout,
ret = wd_start(priv->dog, bfcontainer->timeout, sai_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note

View File

@ -509,7 +509,7 @@ static void stm32_dataconfig(struct stm32_dev_s *priv, uint32_t timeout,
static void stm32_datadisable(struct stm32_dev_s *priv);
static void stm32_sendfifo(struct stm32_dev_s *priv);
static void stm32_recvfifo(struct stm32_dev_s *priv);
static void stm32_eventtimeout(int argc, uint32_t arg);
static void stm32_eventtimeout(int argc, uint32_t arg, ...);
static void stm32_endwait(struct stm32_dev_s *priv,
sdio_eventset_t wkupevent);
static void stm32_endtransfer(struct stm32_dev_s *priv,
@ -1452,7 +1452,7 @@ static void stm32_recvfifo(struct stm32_dev_s *priv)
*
****************************************************************************/
static void stm32_eventtimeout(int argc, uint32_t arg)
static void stm32_eventtimeout(int argc, uint32_t arg, ...)
{
struct stm32_dev_s *priv = (struct stm32_dev_s *)arg;
@ -2827,7 +2827,7 @@ static sdio_eventset_t stm32_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)stm32_eventtimeout,
ret = wd_start(priv->waitwdog, delay, stm32_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -1391,7 +1391,7 @@ static int qspi0_interrupt(int irq, void *context, FAR void *arg)
*
****************************************************************************/
static void qspi_dma_timeout(int argc, uint32_t arg)
static void qspi_dma_timeout(int argc, uint32_t arg, ...)
{
struct stm32h7_qspidev_s *priv = (struct stm32h7_qspidev_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1565,7 +1565,7 @@ static int qspi_memory_dma(struct stm32h7_qspidev_s *priv,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(priv->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)qspi_dma_timeout, 1, (uint32_t)priv);
qspi_dma_timeout, 1, (uint32_t)priv);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -430,7 +430,7 @@ static void stm32_datadisable(struct stm32_dev_s *priv);
static void stm32_sendfifo(struct stm32_dev_s *priv);
static void stm32_recvfifo(struct stm32_dev_s *priv);
#endif
static void stm32_eventtimeout(int argc, uint32_t arg);
static void stm32_eventtimeout(int argc, uint32_t arg, ...);
static void stm32_endwait(struct stm32_dev_s *priv,
sdio_eventset_t wkupevent);
static void stm32_endtransfer(struct stm32_dev_s *priv,
@ -1275,7 +1275,7 @@ static void stm32_recvfifo(struct stm32_dev_s *priv)
*
****************************************************************************/
static void stm32_eventtimeout(int argc, uint32_t arg)
static void stm32_eventtimeout(int argc, uint32_t arg, ...)
{
struct stm32_dev_s *priv = (struct stm32_dev_s *)arg;
@ -2729,7 +2729,7 @@ static sdio_eventset_t stm32_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)stm32_eventtimeout,
ret = wd_start(priv->waitwdog, delay, stm32_eventtimeout,
1, (uint32_t)priv);
if (ret < OK)
{

View File

@ -1281,7 +1281,7 @@ static int qspi0_interrupt(int irq, void *context, FAR void *arg)
*
****************************************************************************/
static void qspi_dma_timeout(int argc, uint32_t arg)
static void qspi_dma_timeout(int argc, uint32_t arg, ...)
{
struct stm32l4_qspidev_s *priv = (struct stm32l4_qspidev_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1452,7 +1452,7 @@ static int qspi_memory_dma(struct stm32l4_qspidev_s *priv,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(priv->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)qspi_dma_timeout, 1, (uint32_t)priv);
qspi_dma_timeout, 1, (uint32_t)priv);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -512,7 +512,7 @@ static void sai_mckdivider(struct stm32l4_sai_s *priv)
*
****************************************************************************/
static void sai_timeout(int argc, uint32_t arg)
static void sai_timeout(int argc, uint32_t arg, ...)
{
struct stm32l4_sai_s *priv = (struct stm32l4_sai_s *)arg;
DEBUGASSERT(priv != NULL);
@ -655,7 +655,7 @@ static int sai_dma_setup(struct stm32l4_sai_s *priv)
if (bfcontainer->timeout > 0)
{
ret = wd_start(priv->dog, bfcontainer->timeout, (wdentry_t)sai_timeout,
ret = wd_start(priv->dog, bfcontainer->timeout, sai_timeout,
1, (uint32_t)priv);
/* Check if we have successfully started the watchdog timer. Note

View File

@ -446,7 +446,7 @@ static void stm32_dataconfig(struct stm32_dev_s *priv, uint32_t timeout,
static void stm32_datadisable(struct stm32_dev_s *priv);
static void stm32_sendfifo(struct stm32_dev_s *priv);
static void stm32_recvfifo(struct stm32_dev_s *priv);
static void stm32_eventtimeout(int argc, uint32_t arg);
static void stm32_eventtimeout(int argc, uint32_t arg, ...);
static void stm32_endwait(struct stm32_dev_s *priv,
sdio_eventset_t wkupevent);
static void stm32_endtransfer(struct stm32_dev_s *priv,
@ -1332,7 +1332,7 @@ static void stm32_recvfifo(struct stm32_dev_s *priv)
*
****************************************************************************/
static void stm32_eventtimeout(int argc, uint32_t arg)
static void stm32_eventtimeout(int argc, uint32_t arg, ...)
{
struct stm32_dev_s *priv = (struct stm32_dev_s *)arg;
@ -2631,7 +2631,7 @@ static sdio_eventset_t stm32_eventwait(FAR struct sdio_dev_s *dev,
/* Start the watchdog timer */
delay = MSEC2TICK(timeout);
ret = wd_start(priv->waitwdog, delay, (wdentry_t)stm32_eventtimeout,
ret = wd_start(priv->waitwdog, delay, stm32_eventtimeout,
1, (uint32_t)priv);
if (ret < 0)
{

View File

@ -911,7 +911,7 @@ static void spi_dma_sampledone(struct xmc4_spics_s *spics)
****************************************************************************/
#ifdef CONFIG_XMC4_SPI_DMA
static void spi_dmatimeout(int argc, uint32_t arg)
static void spi_dmatimeout(int argc, uint32_t arg, ...)
{
struct xmc4_spics_s *spics = (struct xmc4_spics_s *)arg;
@ -1661,7 +1661,7 @@ static void spi_exchange(struct spi_dev_s *dev, const void *txbuffer,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(spics->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)spi_dmatimeout, 1, (uint32_t)spics);
spi_dmatimeout, 1, (uint32_t)spics);
if (ret != OK)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -218,7 +218,7 @@ static void spi_dma_sampledone(FAR struct pic32mz_dev_s *priv);
# endif
static void spi_dmarxcallback(DMA_HANDLE handle, uint8_t status, void *arg);
static void spi_dmatxcallback(DMA_HANDLE handle, uint8_t status, void *arg);
static void spi_dmatimeout(int argc, uint32_t arg);
static void spi_dmatimeout(int argc, uint32_t arg, ...);
#endif
/* SPI methods */
@ -995,7 +995,7 @@ static void spi_dmatxcallback(DMA_HANDLE handle, uint8_t status, void *arg)
****************************************************************************/
#ifdef CONFIG_PIC32MZ_SPI_DMA
static void spi_dmatimeout(int argc, uint32_t arg)
static void spi_dmatimeout(int argc, uint32_t arg, ...)
{
struct pic32mz_dev_s *priv = (struct pic32mz_dev_s *)arg;
DEBUGASSERT(priv != NULL);
@ -1773,7 +1773,7 @@ static void spi_exchange(FAR struct spi_dev_s *dev, FAR const void *txbuffer,
/* Start (or re-start) the watchdog timeout */
ret = wd_start(priv->dmadog, DMA_TIMEOUT_TICKS,
(wdentry_t)spi_dmatimeout, 1, (uint32_t)priv);
spi_dmatimeout, 1, (uint32_t)priv);
if (ret < 0)
{
spierr("ERROR: wd_start failed: %d\n", ret);

View File

@ -767,7 +767,7 @@ static void sim_interrupt_work(void *arg)
/* Re-start the poll timer */
ret = wd_start(priv->wdog, SIM_POLLDELAY, (wdentry_t)sim_interrupt,
ret = wd_start(priv->wdog, SIM_POLLDELAY, sim_interrupt,
1, (wdparm_t)priv);
if (ret < 0)
{
@ -854,7 +854,7 @@ FAR struct ioexpander_dev_s *sim_ioexpander_initialize(void)
priv->wdog = wd_create();
DEBUGASSERT(priv->wdog != NULL);
ret = wd_start(priv->wdog, SIM_POLLDELAY, (wdentry_t)sim_interrupt,
ret = wd_start(priv->wdog, SIM_POLLDELAY, sim_interrupt,
1, (wdparm_t)priv);
if (ret < 0)
{