diff --git a/arch/arm/src/a1x/a1x_serial.c b/arch/arm/src/a1x/a1x_serial.c index 3fc7455366..0bd511f2c2 100644 --- a/arch/arm/src/a1x/a1x_serial.c +++ b/arch/arm/src/a1x/a1x_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/am335x/am335x_i2c.c b/arch/arm/src/am335x/am335x_i2c.c index e787d833cb..90f2df48f3 100644 --- a/arch/arm/src/am335x/am335x_i2c.c +++ b/arch/arm/src/am335x/am335x_i2c.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include @@ -455,21 +454,7 @@ static inline void am335x_i2c_modifyreg(FAR struct am335x_i2c_priv_s *priv, static inline void am335x_i2c_sem_wait(FAR struct am335x_i2c_priv_s *priv) { - int ret; - - do - { - /* Take the semaphore (perhaps waiting) */ - - ret = nxsem_wait(&priv->sem_excl); - - /* The only case that an error should occur here is if the wait was - * awakened by a signal. - */ - - DEBUGASSERT(ret == OK || ret == -EINTR); - } - while (ret == -EINTR); + nxsem_wait_uninterruptible(&priv->sem_excl); } /**************************************************************************** @@ -1226,7 +1211,7 @@ static int am335x_i2c_isr_process(struct am335x_i2c_priv_s *priv) * and wake it up */ - sem_post(&priv->sem_isr); + nxsem_post(&priv->sem_isr); priv->intstate = INTSTATE_DONE; } #else @@ -1261,7 +1246,7 @@ static int am335x_i2c_isr_process(struct am335x_i2c_priv_s *priv) * and wake it up */ - sem_post(&priv->sem_isr); + nxsem_post(&priv->sem_isr); priv->intstate = INTSTATE_DONE; } #else diff --git a/arch/arm/src/am335x/am335x_lcdc.c b/arch/arm/src/am335x/am335x_lcdc.c index b3cd35cb4f..2420564642 100644 --- a/arch/arm/src/am335x/am335x_lcdc.c +++ b/arch/arm/src/am335x/am335x_lcdc.c @@ -48,11 +48,11 @@ #include #include -#include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/am335x/am335x_serial.c b/arch/arm/src/am335x/am335x_serial.c index 3260cb7748..2926fcf315 100644 --- a/arch/arm/src/am335x/am335x_serial.c +++ b/arch/arm/src/am335x/am335x_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/c5471/c5471_serial.c b/arch/arm/src/c5471/c5471_serial.c index 7ae1c2874a..1b47bcd627 100644 --- a/arch/arm/src/c5471/c5471_serial.c +++ b/arch/arm/src/c5471/c5471_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_dmac.c b/arch/arm/src/cxd56xx/cxd56_dmac.c index 1554c7535e..03a737b02d 100644 --- a/arch/arm/src/cxd56xx/cxd56_dmac.c +++ b/arch/arm/src/cxd56xx/cxd56_dmac.c @@ -40,11 +40,11 @@ #include #include #include -#include #include #include #include +#include #include "cxd56_dmac.h" diff --git a/arch/arm/src/cxd56xx/cxd56_emmc.c b/arch/arm/src/cxd56xx/cxd56_emmc.c index 494649c283..e0659b78cc 100644 --- a/arch/arm/src/cxd56xx/cxd56_emmc.c +++ b/arch/arm/src/cxd56xx/cxd56_emmc.c @@ -36,7 +36,6 @@ #include #include -#include #include #include #include @@ -45,6 +44,7 @@ #include #include #include +#include #include diff --git a/arch/arm/src/cxd56xx/cxd56_ge2d.c b/arch/arm/src/cxd56xx/cxd56_ge2d.c index b5e6e7f349..19460b4a1a 100644 --- a/arch/arm/src/cxd56xx/cxd56_ge2d.c +++ b/arch/arm/src/cxd56xx/cxd56_ge2d.c @@ -42,8 +42,9 @@ #include #include #include +#include + #include -#include #include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_icc.c b/arch/arm/src/cxd56xx/cxd56_icc.c index 802297a9d3..f54200b14e 100644 --- a/arch/arm/src/cxd56xx/cxd56_icc.c +++ b/arch/arm/src/cxd56xx/cxd56_icc.c @@ -42,8 +42,9 @@ #include #include #include +#include + #include -#include #include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_scu.c b/arch/arm/src/cxd56xx/cxd56_scu.c index 28721e9f29..f4cdb4d963 100644 --- a/arch/arm/src/cxd56xx/cxd56_scu.c +++ b/arch/arm/src/cxd56xx/cxd56_scu.c @@ -40,12 +40,12 @@ #include #include #include +#include #include #include #include #include -#include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_sdhci.c b/arch/arm/src/cxd56xx/cxd56_sdhci.c index d4bf5499bf..0e71ffe030 100644 --- a/arch/arm/src/cxd56xx/cxd56_sdhci.c +++ b/arch/arm/src/cxd56xx/cxd56_sdhci.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -59,6 +58,7 @@ #include #include #include +#include #include diff --git a/arch/arm/src/cxd56xx/cxd56_serial.c b/arch/arm/src/cxd56xx/cxd56_serial.c index 2a318118f6..d6d29600d8 100644 --- a/arch/arm/src/cxd56xx/cxd56_serial.c +++ b/arch/arm/src/cxd56xx/cxd56_serial.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_sfc.c b/arch/arm/src/cxd56xx/cxd56_sfc.c index 91c7c6918a..1c53725abe 100644 --- a/arch/arm/src/cxd56xx/cxd56_sfc.c +++ b/arch/arm/src/cxd56xx/cxd56_sfc.c @@ -37,7 +37,7 @@ #include #include -#include + #include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_sph.c b/arch/arm/src/cxd56xx/cxd56_sph.c index c08a317192..83299f8ce2 100644 --- a/arch/arm/src/cxd56xx/cxd56_sph.c +++ b/arch/arm/src/cxd56xx/cxd56_sph.c @@ -42,7 +42,8 @@ #include #include #include -#include +#include + #include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_spi.c b/arch/arm/src/cxd56xx/cxd56_spi.c index 8d40e1e427..7b57443ff1 100644 --- a/arch/arm/src/cxd56xx/cxd56_spi.c +++ b/arch/arm/src/cxd56xx/cxd56_spi.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -51,6 +50,7 @@ #include #include #include +#include #include #include "up_internal.h" @@ -1315,7 +1315,7 @@ void cxd56_spi_dmaconfig(int port, int chtype, DMA_HANDLE handle, if (!priv->dmaenable) { - sem_init(&priv->dmasem, 0, 0); + nxsem_init(&priv->dmasem, 0, 0); priv->dmaenable = true; } } @@ -1328,7 +1328,7 @@ void cxd56_spi_dmaconfig(int port, int chtype, DMA_HANDLE handle, if (!priv->dmaenable) { - sem_init(&priv->dmasem, 0, 0); + nxsem_init(&priv->dmasem, 0, 0); priv->dmaenable = true; } } diff --git a/arch/arm/src/cxd56xx/cxd56_sysctl.c b/arch/arm/src/cxd56xx/cxd56_sysctl.c index def7d5cc41..01ebda5859 100644 --- a/arch/arm/src/cxd56xx/cxd56_sysctl.c +++ b/arch/arm/src/cxd56xx/cxd56_sysctl.c @@ -38,11 +38,12 @@ #include #include #include +#include + #include #include #include #include -#include #include "cxd56_icc.h" #include "cxd56_sysctl.h" diff --git a/arch/arm/src/cxd56xx/cxd56_uart0.c b/arch/arm/src/cxd56xx/cxd56_uart0.c index 3ca4943c7a..2dcbb92010 100644 --- a/arch/arm/src/cxd56xx/cxd56_uart0.c +++ b/arch/arm/src/cxd56xx/cxd56_uart0.c @@ -42,8 +42,9 @@ #include #include #include +#include + #include -#include #include #include #include diff --git a/arch/arm/src/cxd56xx/cxd56_udmac.c b/arch/arm/src/cxd56xx/cxd56_udmac.c index 258c50a3f5..47cac8fbd8 100644 --- a/arch/arm/src/cxd56xx/cxd56_udmac.c +++ b/arch/arm/src/cxd56xx/cxd56_udmac.c @@ -44,12 +44,12 @@ #include #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "cxd56_clock.h" diff --git a/arch/arm/src/dm320/dm320_serial.c b/arch/arm/src/dm320/dm320_serial.c index 8492cf754f..f45fc7aeec 100644 --- a/arch/arm/src/dm320/dm320_serial.c +++ b/arch/arm/src/dm320/dm320_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/efm32/efm32_adc.c b/arch/arm/src/efm32/efm32_adc.c index 888fdcbc83..25a9005b6f 100644 --- a/arch/arm/src/efm32/efm32_adc.c +++ b/arch/arm/src/efm32/efm32_adc.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/efm32/efm32_dma.c b/arch/arm/src/efm32/efm32_dma.c index 8bb9cb72dd..64db22d0a6 100644 --- a/arch/arm/src/efm32/efm32_dma.c +++ b/arch/arm/src/efm32/efm32_dma.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "hardware/efm32_cmu.h" diff --git a/arch/arm/src/efm32/efm32_i2c.c b/arch/arm/src/efm32/efm32_i2c.c index 74f6c37d3d..7504aa0e36 100644 --- a/arch/arm/src/efm32/efm32_i2c.c +++ b/arch/arm/src/efm32/efm32_i2c.c @@ -65,7 +65,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/efm32/efm32_leserial.c b/arch/arm/src/efm32/efm32_leserial.c index 3c48b5c3de..fcd876056e 100644 --- a/arch/arm/src/efm32/efm32_leserial.c +++ b/arch/arm/src/efm32/efm32_leserial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/efm32/efm32_serial.c b/arch/arm/src/efm32/efm32_serial.c index db5c48a78c..286f498abb 100644 --- a/arch/arm/src/efm32/efm32_serial.c +++ b/arch/arm/src/efm32/efm32_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/efm32/efm32_spi.c b/arch/arm/src/efm32/efm32_spi.c index 929c84a1fc..9c4a619fc9 100644 --- a/arch/arm/src/efm32/efm32_spi.c +++ b/arch/arm/src/efm32/efm32_spi.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/efm32/efm32_usbhost.c b/arch/arm/src/efm32/efm32_usbhost.c index 0dbe111c60..347b592045 100644 --- a/arch/arm/src/efm32/efm32_usbhost.c +++ b/arch/arm/src/efm32/efm32_usbhost.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/imx1/imx_serial.c b/arch/arm/src/imx1/imx_serial.c index ab0f500895..8bd3072439 100644 --- a/arch/arm/src/imx1/imx_serial.c +++ b/arch/arm/src/imx1/imx_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/imx1/imx_spi.c b/arch/arm/src/imx1/imx_spi.c index 13747991e6..1296b549ec 100644 --- a/arch/arm/src/imx1/imx_spi.c +++ b/arch/arm/src/imx1/imx_spi.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/imx6/imx_ecspi.c b/arch/arm/src/imx6/imx_ecspi.c index a1631e345d..97e53adc9c 100644 --- a/arch/arm/src/imx6/imx_ecspi.c +++ b/arch/arm/src/imx6/imx_ecspi.c @@ -46,7 +46,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/imx6/imx_serial.c b/arch/arm/src/imx6/imx_serial.c index 41bae86cc8..d8ee7d22ad 100644 --- a/arch/arm/src/imx6/imx_serial.c +++ b/arch/arm/src/imx6/imx_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -52,6 +51,7 @@ #include #include #include +#include #include #include "chip.h" diff --git a/arch/arm/src/imxrt/imxrt_edma.c b/arch/arm/src/imxrt/imxrt_edma.c index 7d69c4a712..c28b8fd5a7 100644 --- a/arch/arm/src/imxrt/imxrt_edma.c +++ b/arch/arm/src/imxrt/imxrt_edma.c @@ -49,13 +49,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/imxrt/imxrt_ehci.c b/arch/arm/src/imxrt/imxrt_ehci.c index 3005066bea..a01444da8f 100644 --- a/arch/arm/src/imxrt/imxrt_ehci.c +++ b/arch/arm/src/imxrt/imxrt_ehci.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/imxrt/imxrt_enc.c b/arch/arm/src/imxrt/imxrt_enc.c index b8463c1ca9..336608f7d4 100644 --- a/arch/arm/src/imxrt/imxrt_enc.c +++ b/arch/arm/src/imxrt/imxrt_enc.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/arch/arm/src/imxrt/imxrt_lpi2c.c b/arch/arm/src/imxrt/imxrt_lpi2c.c index 2209f82deb..c1a2e08e8f 100644 --- a/arch/arm/src/imxrt/imxrt_lpi2c.c +++ b/arch/arm/src/imxrt/imxrt_lpi2c.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/imxrt/imxrt_lpspi.c b/arch/arm/src/imxrt/imxrt_lpspi.c index efd66b1672..6cfa9af17d 100644 --- a/arch/arm/src/imxrt/imxrt_lpspi.c +++ b/arch/arm/src/imxrt/imxrt_lpspi.c @@ -68,7 +68,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/imxrt/imxrt_serial.c b/arch/arm/src/imxrt/imxrt_serial.c index e05afd7e16..7d1e1bd8d3 100644 --- a/arch/arm/src/imxrt/imxrt_serial.c +++ b/arch/arm/src/imxrt/imxrt_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/imxrt/imxrt_usdhc.c b/arch/arm/src/imxrt/imxrt_usdhc.c index 4debdd378a..e98548b885 100644 --- a/arch/arm/src/imxrt/imxrt_usdhc.c +++ b/arch/arm/src/imxrt/imxrt_usdhc.c @@ -43,7 +43,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/kinetis/kinetis_lpserial.c b/arch/arm/src/kinetis/kinetis_lpserial.c index 9c4d9dc956..3b2cbcd890 100644 --- a/arch/arm/src/kinetis/kinetis_lpserial.c +++ b/arch/arm/src/kinetis/kinetis_lpserial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/kinetis/kinetis_sdhc.c b/arch/arm/src/kinetis/kinetis_sdhc.c index 4ebcd4d7a2..3ae1fd4eda 100644 --- a/arch/arm/src/kinetis/kinetis_sdhc.c +++ b/arch/arm/src/kinetis/kinetis_sdhc.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/kinetis/kinetis_serial.c b/arch/arm/src/kinetis/kinetis_serial.c index b26eee2cac..09c06ada6a 100644 --- a/arch/arm/src/kinetis/kinetis_serial.c +++ b/arch/arm/src/kinetis/kinetis_serial.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/kinetis/kinetis_spi.c b/arch/arm/src/kinetis/kinetis_spi.c index 4b0a75e2f6..82f2412d3e 100644 --- a/arch/arm/src/kinetis/kinetis_spi.c +++ b/arch/arm/src/kinetis/kinetis_spi.c @@ -68,7 +68,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/kl/kl_serial.c b/arch/arm/src/kl/kl_serial.c index 7fa7afe126..7072286ec2 100644 --- a/arch/arm/src/kl/kl_serial.c +++ b/arch/arm/src/kl/kl_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/kl/kl_spi.c b/arch/arm/src/kl/kl_spi.c index 33baeff40e..59c712e2bc 100644 --- a/arch/arm/src/kl/kl_spi.c +++ b/arch/arm/src/kl/kl_spi.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/lc823450/lc823450_adc.c b/arch/arm/src/lc823450/lc823450_adc.c index 518651d2fb..c6df309ec2 100644 --- a/arch/arm/src/lc823450/lc823450_adc.c +++ b/arch/arm/src/lc823450/lc823450_adc.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include #include @@ -61,6 +60,7 @@ #include #include #include +#include #include "up_arch.h" #include "lc823450_adc.h" diff --git a/arch/arm/src/lc823450/lc823450_dma.c b/arch/arm/src/lc823450/lc823450_dma.c index 9780264b08..bb5222852d 100644 --- a/arch/arm/src/lc823450/lc823450_dma.c +++ b/arch/arm/src/lc823450/lc823450_dma.c @@ -39,11 +39,11 @@ #include #include +#include #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lc823450/lc823450_i2c.c b/arch/arm/src/lc823450/lc823450_i2c.c index 62e1ed34ae..2d14b91e6d 100644 --- a/arch/arm/src/lc823450/lc823450_i2c.c +++ b/arch/arm/src/lc823450/lc823450_i2c.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lc823450/lc823450_i2s.c b/arch/arm/src/lc823450/lc823450_i2s.c index d55a61d6ac..e04bf4f671 100644 --- a/arch/arm/src/lc823450/lc823450_i2s.c +++ b/arch/arm/src/lc823450/lc823450_i2s.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/arch/arm/src/lc823450/lc823450_mtd.c b/arch/arm/src/lc823450/lc823450_mtd.c index db4b4999d2..4e26b64e87 100644 --- a/arch/arm/src/lc823450/lc823450_mtd.c +++ b/arch/arm/src/lc823450/lc823450_mtd.c @@ -48,11 +48,11 @@ #include #include #include -#include #include #include #include +#include #include #include "lc823450_mtd.h" diff --git a/arch/arm/src/lc823450/lc823450_sddrv_dep.c b/arch/arm/src/lc823450/lc823450_sddrv_dep.c index 06b27b3572..4ebe294d69 100644 --- a/arch/arm/src/lc823450/lc823450_sddrv_dep.c +++ b/arch/arm/src/lc823450/lc823450_sddrv_dep.c @@ -42,7 +42,6 @@ #include -#include #include #include #include @@ -51,6 +50,7 @@ #include #include #include +#include #include #include "up_arch.h" @@ -62,7 +62,6 @@ #include "lc823450_timer.h" #ifdef CONFIG_LC823450_SDC_DMA -# include # include "lc823450_dma.h" #endif /* CONFIG_LC823450_SDC_DMA */ diff --git a/arch/arm/src/lc823450/lc823450_serial.c b/arch/arm/src/lc823450/lc823450_serial.c index a518ea7697..781a9ff966 100644 --- a/arch/arm/src/lc823450/lc823450_serial.c +++ b/arch/arm/src/lc823450/lc823450_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -53,6 +52,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm/src/lc823450/lc823450_spi.c b/arch/arm/src/lc823450/lc823450_spi.c index df0aff70ef..cd7797540e 100644 --- a/arch/arm/src/lc823450/lc823450_spi.c +++ b/arch/arm/src/lc823450/lc823450_spi.c @@ -44,12 +44,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_adc.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_adc.c index 9c4bde71aa..6ba1d446e3 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_adc.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_adc.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_can.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_can.c index c3a0154e0d..e7888ac498 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_can.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_can.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c index 158d59e296..e9f2069737 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_dac.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_gpdma.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_gpdma.c index 0651bc6dc9..15c69b0267 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_gpdma.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_gpdma.c @@ -42,13 +42,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c index 9bcd260e0d..5e087aa049 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c index 26c1689dc5..8f8e03c0bd 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_spi.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_spi.c index 76f5cbb705..0d367adea1 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_spi.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_spi.c @@ -43,13 +43,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_ssp.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_ssp.c index f6ab07c16b..48f6c7c031 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_ssp.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_ssp.c @@ -42,13 +42,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/lpc17xx_40xx/lpc17_40_usbhost.c b/arch/arm/src/lpc17xx_40xx/lpc17_40_usbhost.c index 682c170d9d..3dcd11a645 100644 --- a/arch/arm/src/lpc17xx_40xx/lpc17_40_usbhost.c +++ b/arch/arm/src/lpc17xx_40xx/lpc17_40_usbhost.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc214x/lpc214x_serial.c b/arch/arm/src/lpc214x/lpc214x_serial.c index af2993865a..26c764293c 100644 --- a/arch/arm/src/lpc214x/lpc214x_serial.c +++ b/arch/arm/src/lpc214x/lpc214x_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc2378/lpc23xx_serial.c b/arch/arm/src/lpc2378/lpc23xx_serial.c index 32c5c1630b..e9fd113c30 100644 --- a/arch/arm/src/lpc2378/lpc23xx_serial.c +++ b/arch/arm/src/lpc2378/lpc23xx_serial.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc2378/lpc23xx_spi.c b/arch/arm/src/lpc2378/lpc23xx_spi.c index c1e3bfdb34..251b9bf886 100644 --- a/arch/arm/src/lpc2378/lpc23xx_spi.c +++ b/arch/arm/src/lpc2378/lpc23xx_spi.c @@ -47,13 +47,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/lpc31xx/lpc31_ehci.c b/arch/arm/src/lpc31xx/lpc31_ehci.c index 7e778e87b6..1c351b3e1a 100644 --- a/arch/arm/src/lpc31xx/lpc31_ehci.c +++ b/arch/arm/src/lpc31xx/lpc31_ehci.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc31xx/lpc31_serial.c b/arch/arm/src/lpc31xx/lpc31_serial.c index a4f93d56fe..3ca5ae0fe2 100644 --- a/arch/arm/src/lpc31xx/lpc31_serial.c +++ b/arch/arm/src/lpc31xx/lpc31_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc31xx/lpc31_spi.c b/arch/arm/src/lpc31xx/lpc31_spi.c index e9b4906b30..48bb1ea501 100644 --- a/arch/arm/src/lpc31xx/lpc31_spi.c +++ b/arch/arm/src/lpc31xx/lpc31_spi.c @@ -43,11 +43,11 @@ #include #include #include -#include #include #include #include +#include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_adc.c b/arch/arm/src/lpc43xx/lpc43_adc.c index 921364d6a9..52ae52b764 100644 --- a/arch/arm/src/lpc43xx/lpc43_adc.c +++ b/arch/arm/src/lpc43xx/lpc43_adc.c @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_aes.c b/arch/arm/src/lpc43xx/lpc43_aes.c index da22ed2abd..e231a99176 100644 --- a/arch/arm/src/lpc43xx/lpc43_aes.c +++ b/arch/arm/src/lpc43xx/lpc43_aes.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_can.c b/arch/arm/src/lpc43xx/lpc43_can.c index b744609a3f..e210c56323 100644 --- a/arch/arm/src/lpc43xx/lpc43_can.c +++ b/arch/arm/src/lpc43xx/lpc43_can.c @@ -41,7 +41,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_dac.c b/arch/arm/src/lpc43xx/lpc43_dac.c index 582c8f69cf..4a19d89cda 100644 --- a/arch/arm/src/lpc43xx/lpc43_dac.c +++ b/arch/arm/src/lpc43xx/lpc43_dac.c @@ -53,7 +53,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_ehci.c b/arch/arm/src/lpc43xx/lpc43_ehci.c index 6999614987..3c652e875e 100644 --- a/arch/arm/src/lpc43xx/lpc43_ehci.c +++ b/arch/arm/src/lpc43xx/lpc43_ehci.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_sdmmc.c b/arch/arm/src/lpc43xx/lpc43_sdmmc.c index ff5ce44ec0..09fae538d2 100644 --- a/arch/arm/src/lpc43xx/lpc43_sdmmc.c +++ b/arch/arm/src/lpc43xx/lpc43_sdmmc.c @@ -47,7 +47,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_serial.c b/arch/arm/src/lpc43xx/lpc43_serial.c index 664aa74173..8344e1a0c3 100644 --- a/arch/arm/src/lpc43xx/lpc43_serial.c +++ b/arch/arm/src/lpc43xx/lpc43_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc43xx/lpc43_spi.c b/arch/arm/src/lpc43xx/lpc43_spi.c index c8c5a96d34..dcd6474366 100644 --- a/arch/arm/src/lpc43xx/lpc43_spi.c +++ b/arch/arm/src/lpc43xx/lpc43_spi.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/lpc43xx/lpc43_ssp.c b/arch/arm/src/lpc43xx/lpc43_ssp.c index fe5433bae6..1370cabd04 100644 --- a/arch/arm/src/lpc43xx/lpc43_ssp.c +++ b/arch/arm/src/lpc43xx/lpc43_ssp.c @@ -42,13 +42,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/lpc54xx/lpc54_sdmmc.c b/arch/arm/src/lpc54xx/lpc54_sdmmc.c index bf3952d611..5823344ebc 100644 --- a/arch/arm/src/lpc54xx/lpc54_sdmmc.c +++ b/arch/arm/src/lpc54xx/lpc54_sdmmc.c @@ -52,7 +52,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc54xx/lpc54_serial.c b/arch/arm/src/lpc54xx/lpc54_serial.c index 2c93bae4f1..701e6992c4 100644 --- a/arch/arm/src/lpc54xx/lpc54_serial.c +++ b/arch/arm/src/lpc54xx/lpc54_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/lpc54xx/lpc54_spi_master.c b/arch/arm/src/lpc54xx/lpc54_spi_master.c index dd2755d862..99821ae76d 100644 --- a/arch/arm/src/lpc54xx/lpc54_spi_master.c +++ b/arch/arm/src/lpc54xx/lpc54_spi_master.c @@ -52,12 +52,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/lpc54xx/lpc54_usb0_ohci.c b/arch/arm/src/lpc54xx/lpc54_usb0_ohci.c index 6582216985..64f28bac4c 100644 --- a/arch/arm/src/lpc54xx/lpc54_usb0_ohci.c +++ b/arch/arm/src/lpc54xx/lpc54_usb0_ohci.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/max326xx/max32660/max32660_serial.c b/arch/arm/src/max326xx/max32660/max32660_serial.c index c61f4dc939..e951bc2b24 100644 --- a/arch/arm/src/max326xx/max32660/max32660_serial.c +++ b/arch/arm/src/max326xx/max32660/max32660_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/max326xx/max32660/max32660_spim.c b/arch/arm/src/max326xx/max32660/max32660_spim.c index cf7fbc25a8..29fd55dadd 100644 --- a/arch/arm/src/max326xx/max32660/max32660_spim.c +++ b/arch/arm/src/max326xx/max32660/max32660_spim.c @@ -66,7 +66,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/nrf52/nrf52832_errdata.c b/arch/arm/src/nrf52/nrf52832_errdata.c index ee0f79233b..128da9ae71 100644 --- a/arch/arm/src/nrf52/nrf52832_errdata.c +++ b/arch/arm/src/nrf52/nrf52832_errdata.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/nrf52/nrf52_i2c.c b/arch/arm/src/nrf52/nrf52_i2c.c index d5291f31f7..679f462f82 100644 --- a/arch/arm/src/nrf52/nrf52_i2c.c +++ b/arch/arm/src/nrf52/nrf52_i2c.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/arch/arm/src/nrf52/nrf52_serial.c b/arch/arm/src/nrf52/nrf52_serial.c index 70c8e7644d..06306070b3 100644 --- a/arch/arm/src/nrf52/nrf52_serial.c +++ b/arch/arm/src/nrf52/nrf52_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/nrf52/nrf52_spi.c b/arch/arm/src/nrf52/nrf52_spi.c index c5a1aaabee..4cff4ff83a 100644 --- a/arch/arm/src/nrf52/nrf52_spi.c +++ b/arch/arm/src/nrf52/nrf52_spi.c @@ -480,24 +480,11 @@ static int nrf52_spi_lock(FAR struct spi_dev_s *dev, bool lock) if (lock) { - /* Take the semaphore (perhaps waiting) */ - - do - { - ret = nxsem_wait(&priv->exclsem); - - /* The only case that an error should occur here is if the wait - * was awakened by a signal. - */ - - DEBUGASSERT(ret == OK || ret == -EINTR); - } - while (ret == -EINTR); + ret = nxsem_wait_uninterruptible(&priv->exclsem); } else { - (void)nxsem_post(&priv->exclsem); - ret = OK; + ret = nxsem_post(&priv->exclsem); } return ret; diff --git a/arch/arm/src/nuc1xx/nuc_serial.c b/arch/arm/src/nuc1xx/nuc_serial.c index 797920f563..a56ab6e373 100644 --- a/arch/arm/src/nuc1xx/nuc_serial.c +++ b/arch/arm/src/nuc1xx/nuc_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/s32k1xx/s32k1xx_edma.c b/arch/arm/src/s32k1xx/s32k1xx_edma.c index 2efaf4be7c..1726940f94 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_edma.c +++ b/arch/arm/src/s32k1xx/s32k1xx_edma.c @@ -49,13 +49,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c b/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c index eff2fadce9..135697291f 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c +++ b/arch/arm/src/s32k1xx/s32k1xx_lpi2c.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/s32k1xx/s32k1xx_lpspi.c b/arch/arm/src/s32k1xx/s32k1xx_lpspi.c index 5c79610769..f9e7d1e3bf 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_lpspi.c +++ b/arch/arm/src/s32k1xx/s32k1xx_lpspi.c @@ -67,7 +67,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/s32k1xx/s32k1xx_serial.c b/arch/arm/src/s32k1xx/s32k1xx_serial.c index 678383fadc..041915f874 100644 --- a/arch/arm/src/s32k1xx/s32k1xx_serial.c +++ b/arch/arm/src/s32k1xx/s32k1xx_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sam34/sam4cm_tc.c b/arch/arm/src/sam34/sam4cm_tc.c index 614180356f..91050f7e86 100644 --- a/arch/arm/src/sam34/sam4cm_tc.c +++ b/arch/arm/src/sam34/sam4cm_tc.c @@ -53,12 +53,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/sam34/sam_aes.c b/arch/arm/src/sam34/sam_aes.c index 3eabf7f4b0..cee3d83300 100644 --- a/arch/arm/src/sam34/sam_aes.c +++ b/arch/arm/src/sam34/sam_aes.c @@ -43,12 +43,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/sam34/sam_dmac.c b/arch/arm/src/sam34/sam_dmac.c index 892a659aa6..f8f1995f1b 100644 --- a/arch/arm/src/sam34/sam_dmac.c +++ b/arch/arm/src/sam34/sam_dmac.c @@ -43,12 +43,12 @@ #include #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/sam34/sam_hsmci.c b/arch/arm/src/sam34/sam_hsmci.c index 483c8f3b31..064e334383 100644 --- a/arch/arm/src/sam34/sam_hsmci.c +++ b/arch/arm/src/sam34/sam_hsmci.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/sam34/sam_serial.c b/arch/arm/src/sam34/sam_serial.c index a54c97058d..00dae5bdc9 100644 --- a/arch/arm/src/sam34/sam_serial.c +++ b/arch/arm/src/sam34/sam_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sam34/sam_spi.c b/arch/arm/src/sam34/sam_spi.c index d0aaa7dda0..53b7915fd7 100644 --- a/arch/arm/src/sam34/sam_spi.c +++ b/arch/arm/src/sam34/sam_spi.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_adc.c b/arch/arm/src/sama5/sam_adc.c index cbb3ec6b74..9b0fcfe968 100644 --- a/arch/arm/src/sama5/sam_adc.c +++ b/arch/arm/src/sama5/sam_adc.c @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include @@ -66,6 +65,7 @@ #include #include #include +#include #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/sama5/sam_can.c b/arch/arm/src/sama5/sam_can.c index fb60e08483..874c059034 100644 --- a/arch/arm/src/sama5/sam_can.c +++ b/arch/arm/src/sama5/sam_can.c @@ -54,13 +54,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/sama5/sam_dbgu.c b/arch/arm/src/sama5/sam_dbgu.c index 81294c4ab0..ce0dca13b2 100644 --- a/arch/arm/src/sama5/sam_dbgu.c +++ b/arch/arm/src/sama5/sam_dbgu.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_dmac.c b/arch/arm/src/sama5/sam_dmac.c index 54c7d94760..22834d86f4 100644 --- a/arch/arm/src/sama5/sam_dmac.c +++ b/arch/arm/src/sama5/sam_dmac.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/sama5/sam_ehci.c b/arch/arm/src/sama5/sam_ehci.c index b2b3050cca..8f933d1a20 100644 --- a/arch/arm/src/sama5/sam_ehci.c +++ b/arch/arm/src/sama5/sam_ehci.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_flexcom_serial.c b/arch/arm/src/sama5/sam_flexcom_serial.c index 54076cad30..b9645c3261 100644 --- a/arch/arm/src/sama5/sam_flexcom_serial.c +++ b/arch/arm/src/sama5/sam_flexcom_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_hsmci.c b/arch/arm/src/sama5/sam_hsmci.c index f51c184ca5..b4116fae05 100644 --- a/arch/arm/src/sama5/sam_hsmci.c +++ b/arch/arm/src/sama5/sam_hsmci.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_nand.c b/arch/arm/src/sama5/sam_nand.c index d6219f8ead..230b05492d 100644 --- a/arch/arm/src/sama5/sam_nand.c +++ b/arch/arm/src/sama5/sam_nand.c @@ -52,13 +52,11 @@ #include #include #include -#include #include #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_nand.h b/arch/arm/src/sama5/sam_nand.h index 6d7101ad29..2f6c70a733 100644 --- a/arch/arm/src/sama5/sam_nand.h +++ b/arch/arm/src/sama5/sam_nand.h @@ -45,10 +45,10 @@ #include #include -#include #include #include +#include #include "up_arch.h" #include "chip.h" diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index fb3da59dda..24c16ee7fa 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_pmecc.c b/arch/arm/src/sama5/sam_pmecc.c index f9b6661e73..b3d7d7bf24 100644 --- a/arch/arm/src/sama5/sam_pmecc.c +++ b/arch/arm/src/sama5/sam_pmecc.c @@ -52,13 +52,13 @@ #include #include -#include #include #include #include #include #include +#include #include "sam_pmecc.h" #include "sam_nand.h" diff --git a/arch/arm/src/sama5/sam_serial.c b/arch/arm/src/sama5/sam_serial.c index 4b1e3b50aa..0338862759 100644 --- a/arch/arm/src/sama5/sam_serial.c +++ b/arch/arm/src/sama5/sam_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -55,6 +54,7 @@ #include #include #include +#include #include #include diff --git a/arch/arm/src/sama5/sam_spi.c b/arch/arm/src/sama5/sam_spi.c index a1058c4503..f6da1faa4d 100644 --- a/arch/arm/src/sama5/sam_spi.c +++ b/arch/arm/src/sama5/sam_spi.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_ssc.c b/arch/arm/src/sama5/sam_ssc.c index a01bc11ba2..b4750d1785 100644 --- a/arch/arm/src/sama5/sam_ssc.c +++ b/arch/arm/src/sama5/sam_ssc.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -59,6 +58,7 @@ #include #include #include +#include #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/sama5/sam_tc.c b/arch/arm/src/sama5/sam_tc.c index ef104c1202..f219207097 100644 --- a/arch/arm/src/sama5/sam_tc.c +++ b/arch/arm/src/sama5/sam_tc.c @@ -53,12 +53,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/sama5/sam_trng.c b/arch/arm/src/sama5/sam_trng.c index 8b4cb77ac2..6ba33ffe21 100644 --- a/arch/arm/src/sama5/sam_trng.c +++ b/arch/arm/src/sama5/sam_trng.c @@ -52,9 +52,9 @@ #include #include -#include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/sama5/sam_tsd.c b/arch/arm/src/sama5/sam_tsd.c index 7d2952a843..0f44420ab8 100644 --- a/arch/arm/src/sama5/sam_tsd.c +++ b/arch/arm/src/sama5/sam_tsd.c @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/sama5/sam_xdmac.c b/arch/arm/src/sama5/sam_xdmac.c index 490353e1e9..2467c634b5 100644 --- a/arch/arm/src/sama5/sam_xdmac.c +++ b/arch/arm/src/sama5/sam_xdmac.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/samd2l2/sam_adc.c b/arch/arm/src/samd2l2/sam_adc.c index bf626fd5c5..9467c00de9 100644 --- a/arch/arm/src/samd2l2/sam_adc.c +++ b/arch/arm/src/samd2l2/sam_adc.c @@ -45,14 +45,12 @@ #include #include #include -#include #include #include #include #include #include -#include #include #include #include diff --git a/arch/arm/src/samd2l2/sam_dmac.c b/arch/arm/src/samd2l2/sam_dmac.c index 799c3ca5b6..5ee49f98b8 100644 --- a/arch/arm/src/samd2l2/sam_dmac.c +++ b/arch/arm/src/samd2l2/sam_dmac.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/samd2l2/sam_serial.c b/arch/arm/src/samd2l2/sam_serial.c index dbf57a4fa7..95f23c3074 100644 --- a/arch/arm/src/samd2l2/sam_serial.c +++ b/arch/arm/src/samd2l2/sam_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/samd2l2/sam_spi.c b/arch/arm/src/samd2l2/sam_spi.c index 230ac61be8..a92975baa1 100644 --- a/arch/arm/src/samd2l2/sam_spi.c +++ b/arch/arm/src/samd2l2/sam_spi.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include @@ -57,6 +56,7 @@ #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/samd5e5/sam_dmac.c b/arch/arm/src/samd5e5/sam_dmac.c index 1b6b69bc2e..cdbf6fe586 100644 --- a/arch/arm/src/samd5e5/sam_dmac.c +++ b/arch/arm/src/samd5e5/sam_dmac.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/samd5e5/sam_serial.c b/arch/arm/src/samd5e5/sam_serial.c index 7afeeed3ab..880dfb583f 100644 --- a/arch/arm/src/samd5e5/sam_serial.c +++ b/arch/arm/src/samd5e5/sam_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/samd5e5/sam_spi.c b/arch/arm/src/samd5e5/sam_spi.c index 8edb2e3694..ad61eaa329 100644 --- a/arch/arm/src/samd5e5/sam_spi.c +++ b/arch/arm/src/samd5e5/sam_spi.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -53,6 +52,7 @@ #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/samv7/sam_dac.c b/arch/arm/src/samv7/sam_dac.c index 1cf795d81e..6c61c75a41 100644 --- a/arch/arm/src/samv7/sam_dac.c +++ b/arch/arm/src/samv7/sam_dac.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/samv7/sam_hsmci.c b/arch/arm/src/samv7/sam_hsmci.c index dda5464c94..59b78949bf 100644 --- a/arch/arm/src/samv7/sam_hsmci.c +++ b/arch/arm/src/samv7/sam_hsmci.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/samv7/sam_mcan.c b/arch/arm/src/samv7/sam_mcan.c index ab67d5f0df..e36a9a3336 100644 --- a/arch/arm/src/samv7/sam_mcan.c +++ b/arch/arm/src/samv7/sam_mcan.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/samv7/sam_progmem.c b/arch/arm/src/samv7/sam_progmem.c index de8feda2b2..8045869b3e 100644 --- a/arch/arm/src/samv7/sam_progmem.c +++ b/arch/arm/src/samv7/sam_progmem.c @@ -40,10 +40,10 @@ #include #include -#include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/samv7/sam_qspi.c b/arch/arm/src/samv7/sam_qspi.c index 5197cff5ea..1be3523899 100644 --- a/arch/arm/src/samv7/sam_qspi.c +++ b/arch/arm/src/samv7/sam_qspi.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/samv7/sam_serial.c b/arch/arm/src/samv7/sam_serial.c index c57bc55713..170b814dfd 100644 --- a/arch/arm/src/samv7/sam_serial.c +++ b/arch/arm/src/samv7/sam_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/samv7/sam_spi.c b/arch/arm/src/samv7/sam_spi.c index bbcaf64a9b..118f86d910 100644 --- a/arch/arm/src/samv7/sam_spi.c +++ b/arch/arm/src/samv7/sam_spi.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/samv7/sam_spi_slave.c b/arch/arm/src/samv7/sam_spi_slave.c index b0605e80b0..6b53aef14b 100644 --- a/arch/arm/src/samv7/sam_spi_slave.c +++ b/arch/arm/src/samv7/sam_spi_slave.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include @@ -50,6 +49,7 @@ #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/samv7/sam_ssc.c b/arch/arm/src/samv7/sam_ssc.c index 9cf024dc8d..4c2987c1ef 100644 --- a/arch/arm/src/samv7/sam_ssc.c +++ b/arch/arm/src/samv7/sam_ssc.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -59,6 +58,7 @@ #include #include #include +#include #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/samv7/sam_tc.c b/arch/arm/src/samv7/sam_tc.c index 1e6821599e..b153d52c05 100644 --- a/arch/arm/src/samv7/sam_tc.c +++ b/arch/arm/src/samv7/sam_tc.c @@ -54,12 +54,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/samv7/sam_xdmac.c b/arch/arm/src/samv7/sam_xdmac.c index 24e4d5f69a..79bb30090a 100644 --- a/arch/arm/src/samv7/sam_xdmac.c +++ b/arch/arm/src/samv7/sam_xdmac.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/stm32/stm32_1wire.c b/arch/arm/src/stm32/stm32_1wire.c index fe2a1d68d4..ddd9e04b33 100644 --- a/arch/arm/src/stm32/stm32_1wire.c +++ b/arch/arm/src/stm32/stm32_1wire.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_adc.c b/arch/arm/src/stm32/stm32_adc.c index f1f3cf3512..c911231139 100644 --- a/arch/arm/src/stm32/stm32_adc.c +++ b/arch/arm/src/stm32/stm32_adc.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include @@ -60,6 +59,7 @@ #include #include #include +#include #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/stm32/stm32_aes.c b/arch/arm/src/stm32/stm32_aes.c index 7115bdf8a2..d37c41342f 100644 --- a/arch/arm/src/stm32/stm32_aes.c +++ b/arch/arm/src/stm32/stm32_aes.c @@ -43,13 +43,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/stm32/stm32_can.c b/arch/arm/src/stm32/stm32_can.c index 1f3a4cf512..6a3863d841 100644 --- a/arch/arm/src/stm32/stm32_can.c +++ b/arch/arm/src/stm32/stm32_can.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_capture.c b/arch/arm/src/stm32/stm32_capture.c index 9d6089b51e..f2077e684d 100644 --- a/arch/arm/src/stm32/stm32_capture.c +++ b/arch/arm/src/stm32/stm32_capture.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_dac.c b/arch/arm/src/stm32/stm32_dac.c index 41e7b4660a..5368a141e6 100644 --- a/arch/arm/src/stm32/stm32_dac.c +++ b/arch/arm/src/stm32/stm32_dac.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_dma2d.c b/arch/arm/src/stm32/stm32_dma2d.c index 5b67a628b5..d0a2697e7e 100644 --- a/arch/arm/src/stm32/stm32_dma2d.c +++ b/arch/arm/src/stm32/stm32_dma2d.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_dma_v1.c b/arch/arm/src/stm32/stm32_dma_v1.c index 600b07502e..8dce8b7709 100644 --- a/arch/arm/src/stm32/stm32_dma_v1.c +++ b/arch/arm/src/stm32/stm32_dma_v1.c @@ -41,12 +41,12 @@ #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/stm32/stm32_dma_v2.c b/arch/arm/src/stm32/stm32_dma_v2.c index d8c9723aea..329c2edb26 100644 --- a/arch/arm/src/stm32/stm32_dma_v2.c +++ b/arch/arm/src/stm32/stm32_dma_v2.c @@ -41,12 +41,12 @@ #include #include -#include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/stm32/stm32_hciuart.c b/arch/arm/src/stm32/stm32_hciuart.c index bf0ec808fb..51d9301880 100644 --- a/arch/arm/src/stm32/stm32_hciuart.c +++ b/arch/arm/src/stm32/stm32_hciuart.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32/stm32_i2c.c b/arch/arm/src/stm32/stm32_i2c.c index 2100d2f91a..a12e835c3f 100644 --- a/arch/arm/src/stm32/stm32_i2c.c +++ b/arch/arm/src/stm32/stm32_i2c.c @@ -78,7 +78,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_i2c_alt.c b/arch/arm/src/stm32/stm32_i2c_alt.c index ad35866f9d..9f7a8a30c5 100644 --- a/arch/arm/src/stm32/stm32_i2c_alt.c +++ b/arch/arm/src/stm32/stm32_i2c_alt.c @@ -85,7 +85,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_i2c_v2.c b/arch/arm/src/stm32/stm32_i2c_v2.c index 47f74fdae9..46ae6de58d 100644 --- a/arch/arm/src/stm32/stm32_i2c_v2.c +++ b/arch/arm/src/stm32/stm32_i2c_v2.c @@ -221,7 +221,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_i2s.c b/arch/arm/src/stm32/stm32_i2s.c index c0d99942cf..ac5af48c21 100644 --- a/arch/arm/src/stm32/stm32_i2s.c +++ b/arch/arm/src/stm32/stm32_i2s.c @@ -64,13 +64,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/arch/arm/src/stm32/stm32_ltdc.h b/arch/arm/src/stm32/stm32_ltdc.h index c35cc68957..d224adf19f 100644 --- a/arch/arm/src/stm32/stm32_ltdc.h +++ b/arch/arm/src/stm32/stm32_ltdc.h @@ -44,7 +44,6 @@ #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_otgfshost.c b/arch/arm/src/stm32/stm32_otgfshost.c index da3245cead..9d55997d6e 100644 --- a/arch/arm/src/stm32/stm32_otgfshost.c +++ b/arch/arm/src/stm32/stm32_otgfshost.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32/stm32_otghshost.c b/arch/arm/src/stm32/stm32_otghshost.c index 76fa756e85..9e992a9123 100644 --- a/arch/arm/src/stm32/stm32_otghshost.c +++ b/arch/arm/src/stm32/stm32_otghshost.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32/stm32_sdadc.c b/arch/arm/src/stm32/stm32_sdadc.c index a7f1fa0866..281df35e42 100644 --- a/arch/arm/src/stm32/stm32_sdadc.c +++ b/arch/arm/src/stm32/stm32_sdadc.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c index 0f9a75441a..6607b7b481 100644 --- a/arch/arm/src/stm32/stm32_sdio.c +++ b/arch/arm/src/stm32/stm32_sdio.c @@ -42,7 +42,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32/stm32_serial.c b/arch/arm/src/stm32/stm32_serial.c index c1075d50ce..c7efe3c9c3 100644 --- a/arch/arm/src/stm32/stm32_serial.c +++ b/arch/arm/src/stm32/stm32_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32/stm32_spi.c b/arch/arm/src/stm32/stm32_spi.c index 930c4be6ff..8a636f4d2f 100644 --- a/arch/arm/src/stm32/stm32_spi.c +++ b/arch/arm/src/stm32/stm32_spi.c @@ -64,7 +64,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32_tim.c b/arch/arm/src/stm32/stm32_tim.c index bacc0e13e9..91944cbe37 100644 --- a/arch/arm/src/stm32/stm32_tim.c +++ b/arch/arm/src/stm32/stm32_tim.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32f10xxf30xx_flash.c b/arch/arm/src/stm32/stm32f10xxf30xx_flash.c index 5e79faeb82..8af8e7c5f7 100644 --- a/arch/arm/src/stm32/stm32f10xxf30xx_flash.c +++ b/arch/arm/src/stm32/stm32f10xxf30xx_flash.c @@ -47,9 +47,9 @@ #include #include +#include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32f20xxf40xx_flash.c b/arch/arm/src/stm32/stm32f20xxf40xx_flash.c index 83c88a0fd5..f43ff48b24 100644 --- a/arch/arm/src/stm32/stm32f20xxf40xx_flash.c +++ b/arch/arm/src/stm32/stm32f20xxf40xx_flash.c @@ -47,9 +47,9 @@ #include #include +#include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32f40xxx_i2c.c b/arch/arm/src/stm32/stm32f40xxx_i2c.c index 90b6c105ac..2a3028d49e 100644 --- a/arch/arm/src/stm32/stm32f40xxx_i2c.c +++ b/arch/arm/src/stm32/stm32f40xxx_i2c.c @@ -77,7 +77,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32/stm32l15xx_flash.c b/arch/arm/src/stm32/stm32l15xx_flash.c index 67b7dda933..672112e240 100644 --- a/arch/arm/src/stm32/stm32l15xx_flash.c +++ b/arch/arm/src/stm32/stm32l15xx_flash.c @@ -50,9 +50,9 @@ #include #include +#include #include -#include #include #include diff --git a/arch/arm/src/stm32f0l0g0/stm32_adc.c b/arch/arm/src/stm32f0l0g0/stm32_adc.c index ef8019edb5..88aa511794 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_adc.c +++ b/arch/arm/src/stm32f0l0g0/stm32_adc.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include @@ -56,6 +55,7 @@ #include #include #include +#include #include "up_internal.h" #include "up_arch.h" diff --git a/arch/arm/src/stm32f0l0g0/stm32_aes.c b/arch/arm/src/stm32f0l0g0/stm32_aes.c index 70284a07c6..73bffb7d24 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_aes.c +++ b/arch/arm/src/stm32f0l0g0/stm32_aes.c @@ -43,13 +43,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/arm/src/stm32f0l0g0/stm32_dma_v1.c b/arch/arm/src/stm32f0l0g0/stm32_dma_v1.c index 6ff4061fe8..c7e74d71d1 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_dma_v1.c +++ b/arch/arm/src/stm32f0l0g0/stm32_dma_v1.c @@ -42,12 +42,12 @@ #include #include -#include #include #include #include #include +#include #include diff --git a/arch/arm/src/stm32f0l0g0/stm32_i2c.c b/arch/arm/src/stm32f0l0g0/stm32_i2c.c index edcf891a6d..c4e3b11dbc 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_i2c.c +++ b/arch/arm/src/stm32f0l0g0/stm32_i2c.c @@ -221,7 +221,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f0l0g0/stm32_serial_v1.c b/arch/arm/src/stm32f0l0g0/stm32_serial_v1.c index 66d40c4298..5bbbf35be6 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_serial_v1.c +++ b/arch/arm/src/stm32f0l0g0/stm32_serial_v1.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f0l0g0/stm32_serial_v2.c b/arch/arm/src/stm32f0l0g0/stm32_serial_v2.c index 66e5e87588..db90e59592 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_serial_v2.c +++ b/arch/arm/src/stm32f0l0g0/stm32_serial_v2.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f0l0g0/stm32_spi.c b/arch/arm/src/stm32f0l0g0/stm32_spi.c index 69aefaea6f..fb782f19ab 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_spi.c +++ b/arch/arm/src/stm32f0l0g0/stm32_spi.c @@ -72,7 +72,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f0l0g0/stm32_tim.c b/arch/arm/src/stm32f0l0g0/stm32_tim.c index 2f68ee01b0..ed0821cbfc 100644 --- a/arch/arm/src/stm32f0l0g0/stm32_tim.c +++ b/arch/arm/src/stm32f0l0g0/stm32_tim.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_adc.c b/arch/arm/src/stm32f7/stm32_adc.c index 7262f8c552..50fd4efbde 100644 --- a/arch/arm/src/stm32f7/stm32_adc.c +++ b/arch/arm/src/stm32f7/stm32_adc.c @@ -52,7 +52,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f7/stm32_can.c b/arch/arm/src/stm32f7/stm32_can.c index bc5606c09d..31092b535d 100644 --- a/arch/arm/src/stm32f7/stm32_can.c +++ b/arch/arm/src/stm32f7/stm32_can.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_capture.c b/arch/arm/src/stm32f7/stm32_capture.c index faf2cf8288..3f8cead607 100644 --- a/arch/arm/src/stm32f7/stm32_capture.c +++ b/arch/arm/src/stm32f7/stm32_capture.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_dma.c b/arch/arm/src/stm32f7/stm32_dma.c index 092aa1a1c0..4a4f252be7 100644 --- a/arch/arm/src/stm32f7/stm32_dma.c +++ b/arch/arm/src/stm32f7/stm32_dma.c @@ -42,12 +42,12 @@ #include #include -#include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/arm/src/stm32f7/stm32_dma2d.c b/arch/arm/src/stm32f7/stm32_dma2d.c index 26d634a46e..713742ce35 100644 --- a/arch/arm/src/stm32f7/stm32_dma2d.c +++ b/arch/arm/src/stm32f7/stm32_dma2d.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_flash.c b/arch/arm/src/stm32f7/stm32_flash.c index 075a3950ab..68f583d578 100644 --- a/arch/arm/src/stm32f7/stm32_flash.c +++ b/arch/arm/src/stm32f7/stm32_flash.c @@ -52,9 +52,9 @@ #include #include +#include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_i2c.c b/arch/arm/src/stm32f7/stm32_i2c.c index 2a3cfcb1e6..7629b9a7c2 100644 --- a/arch/arm/src/stm32f7/stm32_i2c.c +++ b/arch/arm/src/stm32f7/stm32_i2c.c @@ -233,7 +233,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_ltdc.h b/arch/arm/src/stm32f7/stm32_ltdc.h index 27dcd7957a..c2cebe4155 100644 --- a/arch/arm/src/stm32f7/stm32_ltdc.h +++ b/arch/arm/src/stm32f7/stm32_ltdc.h @@ -44,7 +44,6 @@ #include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_otghost.c b/arch/arm/src/stm32f7/stm32_otghost.c index fd4f877550..bbf61b391f 100644 --- a/arch/arm/src/stm32f7/stm32_otghost.c +++ b/arch/arm/src/stm32f7/stm32_otghost.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f7/stm32_qspi.c b/arch/arm/src/stm32f7/stm32_qspi.c index ec9dd7c75f..0605915b49 100644 --- a/arch/arm/src/stm32f7/stm32_qspi.c +++ b/arch/arm/src/stm32f7/stm32_qspi.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f7/stm32_sai.c b/arch/arm/src/stm32f7/stm32_sai.c index 9894643ace..e25e4c19c9 100644 --- a/arch/arm/src/stm32f7/stm32_sai.c +++ b/arch/arm/src/stm32f7/stm32_sai.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index 0f9c9e51df..3a763147d8 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -43,7 +43,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f7/stm32_serial.c b/arch/arm/src/stm32f7/stm32_serial.c index 2b36ab2655..3c7505fc7f 100644 --- a/arch/arm/src/stm32f7/stm32_serial.c +++ b/arch/arm/src/stm32f7/stm32_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32f7/stm32_spi.c b/arch/arm/src/stm32f7/stm32_spi.c index d81db34b51..8fbbaa23f9 100644 --- a/arch/arm/src/stm32f7/stm32_spi.c +++ b/arch/arm/src/stm32f7/stm32_spi.c @@ -67,7 +67,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32f7/stm32_tim.c b/arch/arm/src/stm32f7/stm32_tim.c index 8ad9fd1f8d..2b624e2f79 100644 --- a/arch/arm/src/stm32f7/stm32_tim.c +++ b/arch/arm/src/stm32f7/stm32_tim.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32h7/stm32_flash.c b/arch/arm/src/stm32h7/stm32_flash.c index 0ab7263580..e6766977d8 100644 --- a/arch/arm/src/stm32h7/stm32_flash.c +++ b/arch/arm/src/stm32h7/stm32_flash.c @@ -58,9 +58,9 @@ #include #include +#include #include -#include #include #include diff --git a/arch/arm/src/stm32h7/stm32_i2c.c b/arch/arm/src/stm32h7/stm32_i2c.c index ca1797e414..858094aa06 100644 --- a/arch/arm/src/stm32h7/stm32_i2c.c +++ b/arch/arm/src/stm32h7/stm32_i2c.c @@ -204,7 +204,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32h7/stm32_otghost.c b/arch/arm/src/stm32h7/stm32_otghost.c index 3fc1123727..82269221c8 100644 --- a/arch/arm/src/stm32h7/stm32_otghost.c +++ b/arch/arm/src/stm32h7/stm32_otghost.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32h7/stm32_qspi.c b/arch/arm/src/stm32h7/stm32_qspi.c index 81d9c67171..5b4edc7809 100644 --- a/arch/arm/src/stm32h7/stm32_qspi.c +++ b/arch/arm/src/stm32h7/stm32_qspi.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32h7/stm32_sdmmc.c b/arch/arm/src/stm32h7/stm32_sdmmc.c index a395a7751a..8abf6e0777 100644 --- a/arch/arm/src/stm32h7/stm32_sdmmc.c +++ b/arch/arm/src/stm32h7/stm32_sdmmc.c @@ -43,7 +43,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32h7/stm32_serial.c b/arch/arm/src/stm32h7/stm32_serial.c index 47d9ff3f5a..ecc3f320de 100644 --- a/arch/arm/src/stm32h7/stm32_serial.c +++ b/arch/arm/src/stm32h7/stm32_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32h7/stm32_spi.c b/arch/arm/src/stm32h7/stm32_spi.c index b14220317b..c1b9026b09 100644 --- a/arch/arm/src/stm32h7/stm32_spi.c +++ b/arch/arm/src/stm32h7/stm32_spi.c @@ -68,7 +68,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32h7/stm32_tim.c b/arch/arm/src/stm32h7/stm32_tim.c index 57d28a4413..a81b6c1f82 100644 --- a/arch/arm/src/stm32h7/stm32_tim.c +++ b/arch/arm/src/stm32h7/stm32_tim.c @@ -51,7 +51,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_1wire.c b/arch/arm/src/stm32l4/stm32l4_1wire.c index a3320bde4b..d9478f4a8e 100644 --- a/arch/arm/src/stm32l4/stm32l4_1wire.c +++ b/arch/arm/src/stm32l4/stm32l4_1wire.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_can.c b/arch/arm/src/stm32l4/stm32l4_can.c index d50b99a5e7..1e252dc3ac 100644 --- a/arch/arm/src/stm32l4/stm32l4_can.c +++ b/arch/arm/src/stm32l4/stm32l4_can.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_dac.c b/arch/arm/src/stm32l4/stm32l4_dac.c index 69dfe16f71..43dee04238 100644 --- a/arch/arm/src/stm32l4/stm32l4_dac.c +++ b/arch/arm/src/stm32l4/stm32l4_dac.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_flash.c b/arch/arm/src/stm32l4/stm32l4_flash.c index dcb75e60aa..fc4488a1e8 100644 --- a/arch/arm/src/stm32l4/stm32l4_flash.c +++ b/arch/arm/src/stm32l4/stm32l4_flash.c @@ -51,8 +51,8 @@ #include #include #include +#include -#include #include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_i2c.c b/arch/arm/src/stm32l4/stm32l4_i2c.c index f3b65708f3..1c970f95a7 100644 --- a/arch/arm/src/stm32l4/stm32l4_i2c.c +++ b/arch/arm/src/stm32l4/stm32l4_i2c.c @@ -259,7 +259,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_otgfshost.c b/arch/arm/src/stm32l4/stm32l4_otgfshost.c index b6675055cd..99b7824eb8 100644 --- a/arch/arm/src/stm32l4/stm32l4_otgfshost.c +++ b/arch/arm/src/stm32l4/stm32l4_otgfshost.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_qspi.c b/arch/arm/src/stm32l4/stm32l4_qspi.c index 0d7671319e..ad47d50b4f 100644 --- a/arch/arm/src/stm32l4/stm32l4_qspi.c +++ b/arch/arm/src/stm32l4/stm32l4_qspi.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_sai.c b/arch/arm/src/stm32l4/stm32l4_sai.c index 5f63414127..bfa19837dc 100644 --- a/arch/arm/src/stm32l4/stm32l4_sai.c +++ b/arch/arm/src/stm32l4/stm32l4_sai.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -56,6 +55,7 @@ #include #include #include +#include #include "stm32l4_dma.h" #include "stm32l4_gpio.h" diff --git a/arch/arm/src/stm32l4/stm32l4_sdmmc.c b/arch/arm/src/stm32l4/stm32l4_sdmmc.c index 3320a0ba05..e8115793fc 100644 --- a/arch/arm/src/stm32l4/stm32l4_sdmmc.c +++ b/arch/arm/src/stm32l4/stm32l4_sdmmc.c @@ -43,7 +43,6 @@ #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_serial.c b/arch/arm/src/stm32l4/stm32l4_serial.c index c3bd0f25d0..4d64efe5cb 100644 --- a/arch/arm/src/stm32l4/stm32l4_serial.c +++ b/arch/arm/src/stm32l4/stm32l4_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_spi.c b/arch/arm/src/stm32l4/stm32l4_spi.c index 5286f308c8..3c31aa6603 100644 --- a/arch/arm/src/stm32l4/stm32l4_spi.c +++ b/arch/arm/src/stm32l4/stm32l4_spi.c @@ -72,7 +72,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4_tim.c b/arch/arm/src/stm32l4/stm32l4_tim.c index 0556916ff2..46e6063641 100644 --- a/arch/arm/src/stm32l4/stm32l4_tim.c +++ b/arch/arm/src/stm32l4/stm32l4_tim.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/stm32l4/stm32l4x6xx_dma.c b/arch/arm/src/stm32l4/stm32l4x6xx_dma.c index 69d07e66e1..78a1c0a7d2 100644 --- a/arch/arm/src/stm32l4/stm32l4x6xx_dma.c +++ b/arch/arm/src/stm32l4/stm32l4x6xx_dma.c @@ -43,13 +43,13 @@ #include #include -#include #include #include #include #include #include +#include #include "up_arch.h" #include "up_internal.h" diff --git a/arch/arm/src/str71x/str71x_serial.c b/arch/arm/src/str71x/str71x_serial.c index 49429bfd3f..d2d40b9438 100644 --- a/arch/arm/src/str71x/str71x_serial.c +++ b/arch/arm/src/str71x/str71x_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/tiva/common/tiva_adclow.c b/arch/arm/src/tiva/common/tiva_adclow.c index ba4dee3160..b3de3921b8 100644 --- a/arch/arm/src/tiva/common/tiva_adclow.c +++ b/arch/arm/src/tiva/common/tiva_adclow.c @@ -64,7 +64,6 @@ #include #include #include -#include #include #include #include @@ -74,6 +73,7 @@ #include #include #include +#include #include diff --git a/arch/arm/src/tiva/common/tiva_hciuart.c b/arch/arm/src/tiva/common/tiva_hciuart.c index 266b865e49..837e0c6658 100644 --- a/arch/arm/src/tiva/common/tiva_hciuart.c +++ b/arch/arm/src/tiva/common/tiva_hciuart.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/tiva/common/tiva_i2c.c b/arch/arm/src/tiva/common/tiva_i2c.c index 5ccbf47e2d..047e91f65b 100644 --- a/arch/arm/src/tiva/common/tiva_i2c.c +++ b/arch/arm/src/tiva/common/tiva_i2c.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/tiva/common/tiva_serial.c b/arch/arm/src/tiva/common/tiva_serial.c index 539f18fc21..c852c8b17c 100644 --- a/arch/arm/src/tiva/common/tiva_serial.c +++ b/arch/arm/src/tiva/common/tiva_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/tiva/common/tiva_ssi.c b/arch/arm/src/tiva/common/tiva_ssi.c index abe534ba97..68874f7acd 100644 --- a/arch/arm/src/tiva/common/tiva_ssi.c +++ b/arch/arm/src/tiva/common/tiva_ssi.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/src/tms570/tms570_serial.c b/arch/arm/src/tms570/tms570_serial.c index 3ab2808d98..0d711e9833 100644 --- a/arch/arm/src/tms570/tms570_serial.c +++ b/arch/arm/src/tms570/tms570_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/xmc4/xmc4_serial.c b/arch/arm/src/xmc4/xmc4_serial.c index 59ca8f9c0a..697c328728 100644 --- a/arch/arm/src/xmc4/xmc4_serial.c +++ b/arch/arm/src/xmc4/xmc4_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/src/xmc4/xmc4_spi.c b/arch/arm/src/xmc4/xmc4_spi.c index 19ef76f627..26e1fa8a8f 100644 --- a/arch/arm/src/xmc4/xmc4_spi.c +++ b/arch/arm/src/xmc4/xmc4_spi.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/avr/src/at32uc3/at32uc3_serial.c b/arch/avr/src/at32uc3/at32uc3_serial.c index 11dd635332..a4d02d609d 100644 --- a/arch/avr/src/at32uc3/at32uc3_serial.c +++ b/arch/avr/src/at32uc3/at32uc3_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/avr/src/at90usb/at90usb_serial.c b/arch/avr/src/at90usb/at90usb_serial.c index e9e4df84e0..fad319d199 100644 --- a/arch/avr/src/at90usb/at90usb_serial.c +++ b/arch/avr/src/at90usb/at90usb_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/avr/src/atmega/atmega_serial.c b/arch/avr/src/atmega/atmega_serial.c index 69466d8799..b3bfa804f9 100644 --- a/arch/avr/src/atmega/atmega_serial.c +++ b/arch/avr/src/atmega/atmega_serial.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/avr/src/avr/up_spi.c b/arch/avr/src/avr/up_spi.c index accc86d57f..d9f8a9760e 100644 --- a/arch/avr/src/avr/up_spi.c +++ b/arch/avr/src/avr/up_spi.c @@ -42,13 +42,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/arch/mips/src/pic32mx/pic32mx-serial.c b/arch/mips/src/pic32mx/pic32mx-serial.c index ae6336951a..a4f47b2a15 100644 --- a/arch/mips/src/pic32mx/pic32mx-serial.c +++ b/arch/mips/src/pic32mx/pic32mx-serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/mips/src/pic32mx/pic32mx-spi.c b/arch/mips/src/pic32mx/pic32mx-spi.c index df13e599aa..4f8070ddeb 100644 --- a/arch/mips/src/pic32mx/pic32mx-spi.c +++ b/arch/mips/src/pic32mx/pic32mx-spi.c @@ -42,13 +42,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/mips/src/pic32mz/pic32mz-i2c.c b/arch/mips/src/pic32mz/pic32mz-i2c.c index b67772c4be..6371606ef1 100644 --- a/arch/mips/src/pic32mz/pic32mz-i2c.c +++ b/arch/mips/src/pic32mz/pic32mz-i2c.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/arch/mips/src/pic32mz/pic32mz-serial.c b/arch/mips/src/pic32mz/pic32mz-serial.c index 7f1452d67f..a2670c0a3f 100644 --- a/arch/mips/src/pic32mz/pic32mz-serial.c +++ b/arch/mips/src/pic32mz/pic32mz-serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/mips/src/pic32mz/pic32mz-spi.c b/arch/mips/src/pic32mz/pic32mz-spi.c index 3c700da0dc..64042a6342 100644 --- a/arch/mips/src/pic32mz/pic32mz-spi.c +++ b/arch/mips/src/pic32mz/pic32mz-spi.c @@ -43,13 +43,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/arch/mips/src/pic32mz/pic32mz-timer.c b/arch/mips/src/pic32mz/pic32mz-timer.c index c7c38d6bfd..50b2ed187c 100644 --- a/arch/mips/src/pic32mz/pic32mz-timer.c +++ b/arch/mips/src/pic32mz/pic32mz-timer.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include diff --git a/arch/misoc/src/common/misoc_serial.c b/arch/misoc/src/common/misoc_serial.c index 75077d3496..e23d86defa 100644 --- a/arch/misoc/src/common/misoc_serial.c +++ b/arch/misoc/src/common/misoc_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/or1k/src/mor1kx/mor1kx_serial.c b/arch/or1k/src/mor1kx/mor1kx_serial.c index 2966725cd3..8398002bc2 100644 --- a/arch/or1k/src/mor1kx/mor1kx_serial.c +++ b/arch/or1k/src/mor1kx/mor1kx_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/renesas/src/m16c/m16c_serial.c b/arch/renesas/src/m16c/m16c_serial.c index dc618adfe5..c26c1816ed 100644 --- a/arch/renesas/src/m16c/m16c_serial.c +++ b/arch/renesas/src/m16c/m16c_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/renesas/src/rx65n/rx65n_serial.c b/arch/renesas/src/rx65n/rx65n_serial.c index 689d0237f0..dff998cfd1 100644 --- a/arch/renesas/src/rx65n/rx65n_serial.c +++ b/arch/renesas/src/rx65n/rx65n_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/renesas/src/sh1/sh1_serial.c b/arch/renesas/src/sh1/sh1_serial.c index a314af965b..59954dff52 100644 --- a/arch/renesas/src/sh1/sh1_serial.c +++ b/arch/renesas/src/sh1/sh1_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/risc-v/src/gap8/gap8_uart.c b/arch/risc-v/src/gap8/gap8_uart.c index e7a985830d..54cc57762a 100644 --- a/arch/risc-v/src/gap8/gap8_uart.c +++ b/arch/risc-v/src/gap8/gap8_uart.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/risc-v/src/nr5m100/nr5_serial.c b/arch/risc-v/src/nr5m100/nr5_serial.c index 93583f9ed3..ad75be2d3d 100644 --- a/arch/risc-v/src/nr5m100/nr5_serial.c +++ b/arch/risc-v/src/nr5m100/nr5_serial.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/sim/src/sim/up_ioexpander.c b/arch/sim/src/sim/up_ioexpander.c index 138403845d..7f9180bfab 100644 --- a/arch/sim/src/sim/up_ioexpander.c +++ b/arch/sim/src/sim/up_ioexpander.c @@ -39,7 +39,6 @@ #include -#include #include #include #include diff --git a/arch/sim/src/sim/up_qspiflash.c b/arch/sim/src/sim/up_qspiflash.c index d887ced396..bffc36e3b7 100644 --- a/arch/sim/src/sim/up_qspiflash.c +++ b/arch/sim/src/sim/up_qspiflash.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/sim/src/sim/up_simsmp.c b/arch/sim/src/sim/up_simsmp.c index 1135ac91c3..3dbd975aa4 100644 --- a/arch/sim/src/sim/up_simsmp.c +++ b/arch/sim/src/sim/up_simsmp.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/arch/sim/src/sim/up_spiflash.c b/arch/sim/src/sim/up_spiflash.c index d81822d0ae..e97e08859e 100644 --- a/arch/sim/src/sim/up_spiflash.c +++ b/arch/sim/src/sim/up_spiflash.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/sim/src/sim/up_touchscreen.c b/arch/sim/src/sim/up_touchscreen.c index bcfff4d7dc..7bf2628fba 100644 --- a/arch/sim/src/sim/up_touchscreen.c +++ b/arch/sim/src/sim/up_touchscreen.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/sim/src/sim/up_uartwait.c b/arch/sim/src/sim/up_uartwait.c index 3052b41b70..f35abc832c 100644 --- a/arch/sim/src/sim/up_uartwait.c +++ b/arch/sim/src/sim/up_uartwait.c @@ -37,8 +37,6 @@ * Included Files ****************************************************************************/ -#include - #include #include "up_internal.h" diff --git a/arch/x86/src/qemu/qemu_keypad.c b/arch/x86/src/qemu/qemu_keypad.c index 0af9879d25..f694f9a62e 100644 --- a/arch/x86/src/qemu/qemu_keypad.c +++ b/arch/x86/src/qemu/qemu_keypad.c @@ -44,7 +44,6 @@ #include #include -#include #include #include #include diff --git a/arch/xtensa/src/esp32/esp32_serial.c b/arch/xtensa/src/esp32/esp32_serial.c index 64c5640dcc..f44e89ac72 100644 --- a/arch/xtensa/src/esp32/esp32_serial.c +++ b/arch/xtensa/src/esp32/esp32_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/z16/src/z16f/z16f_espi.c b/arch/z16/src/z16f/z16f_espi.c index a04d9fe65e..e433c4f7c6 100644 --- a/arch/z16/src/z16f/z16f_espi.c +++ b/arch/z16/src/z16f/z16f_espi.c @@ -41,13 +41,13 @@ #include #include -#include #include #include #include #include #include +#include #include #include "up_arch.h" diff --git a/arch/z16/src/z16f/z16f_serial.c b/arch/z16/src/z16f/z16f_serial.c index 5210f7276b..46122e4470 100644 --- a/arch/z16/src/z16f/z16f_serial.c +++ b/arch/z16/src/z16f/z16f_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/z80/src/ez80/ez80_i2c.c b/arch/z80/src/ez80/ez80_i2c.c index b5ef5adb07..91d2557edb 100644 --- a/arch/z80/src/ez80/ez80_i2c.c +++ b/arch/z80/src/ez80/ez80_i2c.c @@ -43,11 +43,11 @@ #include #include #include -#include #include #include #include +#include #include #include #include diff --git a/arch/z80/src/ez80/ez80_serial.c b/arch/z80/src/ez80/ez80_serial.c index 6f37011adc..edd56aa730 100644 --- a/arch/z80/src/ez80/ez80_serial.c +++ b/arch/z80/src/ez80/ez80_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/z80/src/ez80/ez80_spi.c b/arch/z80/src/ez80/ez80_spi.c index 1f64e1e37d..27af964ae0 100644 --- a/arch/z80/src/ez80/ez80_spi.c +++ b/arch/z80/src/ez80/ez80_spi.c @@ -42,13 +42,13 @@ #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/arch/z80/src/z180/z180_scc.c b/arch/z80/src/z180/z180_scc.c index 2e2e6426c1..22b8207953 100644 --- a/arch/z80/src/z180/z180_scc.c +++ b/arch/z80/src/z180/z180_scc.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/z80/src/z8/z8_i2c.c b/arch/z80/src/z8/z8_i2c.c index 883e717775..3ec07fe43e 100644 --- a/arch/z80/src/z8/z8_i2c.c +++ b/arch/z80/src/z8/z8_i2c.c @@ -42,11 +42,11 @@ #include #include #include -#include #include #include #include +#include #include #include #include diff --git a/arch/z80/src/z8/z8_serial.c b/arch/z80/src/z8/z8_serial.c index 4bf7ed7f9d..827a349913 100644 --- a/arch/z80/src/z8/z8_serial.c +++ b/arch/z80/src/z8/z8_serial.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/audio/audio.c b/audio/audio.c index dc624b9af0..716a1ac7c0 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -46,7 +46,7 @@ #include #include #include -#include +#include #include #include #include @@ -57,7 +57,7 @@ #include #include #include -#include +#include #include diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c index d8df0ee6a4..c35c9b3c82 100644 --- a/audio/pcm_decode.c +++ b/audio/pcm_decode.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include diff --git a/boards/arm/cxd56xx/common/src/cxd56_imageproc.c b/boards/arm/cxd56xx/common/src/cxd56_imageproc.c index 80b358f93c..4dc81c24af 100644 --- a/boards/arm/cxd56xx/common/src/cxd56_imageproc.c +++ b/boards/arm/cxd56xx/common/src/cxd56_imageproc.c @@ -43,11 +43,11 @@ #include #include #include -#include #include #include #include +#include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/ak09912_scu.c b/boards/arm/cxd56xx/drivers/sensors/ak09912_scu.c index de22ae1fea..bb470bcab8 100644 --- a/boards/arm/cxd56xx/drivers/sensors/ak09912_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/ak09912_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/apds9930_scu.c b/boards/arm/cxd56xx/drivers/sensors/apds9930_scu.c index 8322fb8ba9..79c5a06bb1 100644 --- a/boards/arm/cxd56xx/drivers/sensors/apds9930_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/apds9930_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/bh1721fvc_scu.c b/boards/arm/cxd56xx/drivers/sensors/bh1721fvc_scu.c index 6e98ed16a3..00f640a724 100644 --- a/boards/arm/cxd56xx/drivers/sensors/bh1721fvc_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/bh1721fvc_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/bh1745nuc_scu.c b/boards/arm/cxd56xx/drivers/sensors/bh1745nuc_scu.c index 5d41bd8cad..dbfeedd59f 100644 --- a/boards/arm/cxd56xx/drivers/sensors/bh1745nuc_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/bh1745nuc_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/bm1383glv_scu.c b/boards/arm/cxd56xx/drivers/sensors/bm1383glv_scu.c index b202b32786..a679a83648 100644 --- a/boards/arm/cxd56xx/drivers/sensors/bm1383glv_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/bm1383glv_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/bm1422gmv_scu.c b/boards/arm/cxd56xx/drivers/sensors/bm1422gmv_scu.c index 4bf18b6319..157c3994bc 100644 --- a/boards/arm/cxd56xx/drivers/sensors/bm1422gmv_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/bm1422gmv_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/kx022_scu.c b/boards/arm/cxd56xx/drivers/sensors/kx022_scu.c index 1d45997c61..c4b7bb8054 100644 --- a/boards/arm/cxd56xx/drivers/sensors/kx022_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/kx022_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/lt1pa01_scu.c b/boards/arm/cxd56xx/drivers/sensors/lt1pa01_scu.c index 96ccaa7cd4..997a593441 100644 --- a/boards/arm/cxd56xx/drivers/sensors/lt1pa01_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/lt1pa01_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/drivers/sensors/rpr0521rs_scu.c b/boards/arm/cxd56xx/drivers/sensors/rpr0521rs_scu.c index 1929b4caa9..bd3d5395c3 100644 --- a/boards/arm/cxd56xx/drivers/sensors/rpr0521rs_scu.c +++ b/boards/arm/cxd56xx/drivers/sensors/rpr0521rs_scu.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/boards/arm/cxd56xx/spresense/src/cxd56_power.c b/boards/arm/cxd56xx/spresense/src/cxd56_power.c index a706bc6058..0c15c959f3 100644 --- a/boards/arm/cxd56xx/spresense/src/cxd56_power.c +++ b/boards/arm/cxd56xx/spresense/src/cxd56_power.c @@ -45,9 +45,9 @@ #include #include #include -#include #include +#include #include "chip.h" #include "up_arch.h" diff --git a/boards/arm/lpc214x/mcu123-lpc214x/src/lpc2148_spi1.c b/boards/arm/lpc214x/mcu123-lpc214x/src/lpc2148_spi1.c index 4973d603b2..89a70fa3ec 100644 --- a/boards/arm/lpc214x/mcu123-lpc214x/src/lpc2148_spi1.c +++ b/boards/arm/lpc214x/mcu123-lpc214x/src/lpc2148_spi1.c @@ -66,13 +66,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/boards/arm/lpc214x/zp214xpa/src/lpc2148_spi1.c b/boards/arm/lpc214x/zp214xpa/src/lpc2148_spi1.c index 642c174a10..7786b59325 100644 --- a/boards/arm/lpc214x/zp214xpa/src/lpc2148_spi1.c +++ b/boards/arm/lpc214x/zp214xpa/src/lpc2148_spi1.c @@ -67,13 +67,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "up_internal.h" diff --git a/boards/arm/max326xx/max32660-evsys/src/max326_mmcsd.c b/boards/arm/max326xx/max32660-evsys/src/max326_mmcsd.c index f9c2b1c2f2..cf592f92f4 100644 --- a/boards/arm/max326xx/max32660-evsys/src/max326_mmcsd.c +++ b/boards/arm/max326xx/max32660-evsys/src/max326_mmcsd.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/boards/arm/sam34/sam4l-xplained/src/sam_slcd.c b/boards/arm/sam34/sam4l-xplained/src/sam_slcd.c index ce91bde550..7bcd538310 100644 --- a/boards/arm/sam34/sam4l-xplained/src/sam_slcd.c +++ b/boards/arm/sam34/sam4l-xplained/src/sam_slcd.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include #include @@ -57,6 +56,7 @@ #include #include #include +#include #include "up_arch.h" #include "sam_gpio.h" diff --git a/boards/arm/samv7/samv71-xult/src/sam_ili9488.c b/boards/arm/samv7/samv71-xult/src/sam_ili9488.c index c1c0a02e51..671cff8e0f 100644 --- a/boards/arm/samv7/samv71-xult/src/sam_ili9488.c +++ b/boards/arm/samv7/samv71-xult/src/sam_ili9488.c @@ -124,7 +124,6 @@ #include #include #include -#include #include #include #include @@ -135,6 +134,7 @@ #include #include #include +#include #include #include diff --git a/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c b/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c index 44924d78ad..5e4da3477d 100644 --- a/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c +++ b/boards/arm/stm32/mikroe-stm32f4/src/stm32_touchscreen.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -56,6 +55,7 @@ #include #include #include +#include #include #include "up_arch.h" diff --git a/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c b/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c index 3b0c5cf272..0dce60da54 100644 --- a/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c +++ b/boards/arm/stm32/omnibusf4/src/stm32_mmcsd.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c b/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c index 4480266ea3..8b0527dccf 100644 --- a/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c +++ b/boards/arm/stm32/stm32butterfly2/src/stm32_mmcsd.c @@ -40,13 +40,13 @@ #include #include -#include #include #include #include #include #include +#include #include #include "stm32.h" diff --git a/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c b/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c index fd570e7aea..da0de98b72 100644 --- a/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c +++ b/boards/arm/stm32/stm32f103-minimum/src/stm32_mmcsd.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/boards/arm/stm32/stm32f4discovery/src/stm32_mmcsd.c b/boards/arm/stm32/stm32f4discovery/src/stm32_mmcsd.c index cacd15aabb..d6f2f7025c 100644 --- a/boards/arm/stm32/stm32f4discovery/src/stm32_mmcsd.c +++ b/boards/arm/stm32/stm32f4discovery/src/stm32_mmcsd.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include diff --git a/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c b/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c index bbd74feb72..1ff5738fbc 100644 --- a/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c +++ b/boards/arm/stm32/stm32ldiscovery/src/stm32_lcd.c @@ -51,7 +51,6 @@ #include #include #include -#include #include #include #include @@ -61,6 +60,7 @@ #include #include #include +#include #include "up_arch.h" #include "stm32_gpio.h" diff --git a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c index 72d8d2f569..eb757c80eb 100644 --- a/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c +++ b/boards/arm/stm32l4/nucleo-l476rg/src/stm32_spimmcsd.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/boards/arm/str71x/olimex-strp711/src/str71_spi.c b/boards/arm/str71x/olimex-strp711/src/str71_spi.c index b76a0896b0..8f4a702fbf 100644 --- a/boards/arm/str71x/olimex-strp711/src/str71_spi.c +++ b/boards/arm/str71x/olimex-strp711/src/str71_spi.c @@ -43,13 +43,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/boards/arm/tms570/tms570ls31x-usb-kit/src/tms570_sdmmc.c b/boards/arm/tms570/tms570ls31x-usb-kit/src/tms570_sdmmc.c index aff121f67d..ff46826d6d 100644 --- a/boards/arm/tms570/tms570ls31x-usb-kit/src/tms570_sdmmc.c +++ b/boards/arm/tms570/tms570ls31x-usb-kit/src/tms570_sdmmc.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c b/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c index feea862858..015931728b 100644 --- a/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c +++ b/boards/mips/pic32mx/pic32mx7mmb/src/pic32_touchscreen.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include @@ -53,6 +52,7 @@ #include #include #include +#include #include #include "up_arch.h" diff --git a/boards/mips/pic32mx/sure-pic32mx/src/pic32mx_lcd1602.c b/boards/mips/pic32mx/sure-pic32mx/src/pic32mx_lcd1602.c index c17c4dc745..803a90048b 100644 --- a/boards/mips/pic32mx/sure-pic32mx/src/pic32mx_lcd1602.c +++ b/boards/mips/pic32mx/sure-pic32mx/src/pic32mx_lcd1602.c @@ -75,7 +75,6 @@ #include #include #include -#include #include #include #include @@ -87,6 +86,7 @@ #include #include #include +#include #include "up_arch.h" #include "pic32mx-ioport.h" diff --git a/boards/sim/sim/sim/src/sim_touchscreen.c b/boards/sim/sim/sim/src/sim_touchscreen.c index cc7cb0c022..e830c0ab3a 100644 --- a/boards/sim/sim/sim/src/sim_touchscreen.c +++ b/boards/sim/sim/sim/src/sim_touchscreen.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include @@ -52,6 +51,7 @@ #include #include #include +#include #include #include diff --git a/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c b/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c index 178bb2cafc..b455b7fecd 100644 --- a/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c +++ b/boards/z80/ez80/makerlisp/src/ez80_spimmcsd.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include diff --git a/drivers/1wire/1wire_internal.h b/drivers/1wire/1wire_internal.h index c981d93f55..62f8082ceb 100644 --- a/drivers/1wire/1wire_internal.h +++ b/drivers/1wire/1wire_internal.h @@ -43,7 +43,7 @@ #include #include -#include +#include #include /**************************************************************************** diff --git a/drivers/analog/ad5410.c b/drivers/analog/ad5410.c index efffa0fa83..3796434ebe 100644 --- a/drivers/analog/ad5410.c +++ b/drivers/analog/ad5410.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include diff --git a/drivers/analog/adc.c b/drivers/analog/adc.c index a9fc980a79..208b2000c6 100644 --- a/drivers/analog/adc.c +++ b/drivers/analog/adc.c @@ -51,14 +51,12 @@ #include #include #include -#include #include #include #include #include #include -#include #include #include diff --git a/drivers/analog/ads1255.c b/drivers/analog/ads1255.c index b815706eec..af5d0937fe 100644 --- a/drivers/analog/ads1255.c +++ b/drivers/analog/ads1255.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/analog/comp.c b/drivers/analog/comp.c index a85fbd850d..a200fe4be9 100644 --- a/drivers/analog/comp.c +++ b/drivers/analog/comp.c @@ -42,14 +42,12 @@ #include #include #include -#include #include #include #include #include #include -#include #include #include diff --git a/drivers/analog/dac.c b/drivers/analog/dac.c index 0dfbbcec3a..a5512f51f2 100644 --- a/drivers/analog/dac.c +++ b/drivers/analog/dac.c @@ -50,14 +50,12 @@ #include #include #include -#include #include #include #include #include #include -#include #include #include diff --git a/drivers/analog/dac7554.c b/drivers/analog/dac7554.c index 3fdb66a6b8..8aa4669201 100644 --- a/drivers/analog/dac7554.c +++ b/drivers/analog/dac7554.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include diff --git a/drivers/analog/dac7571.c b/drivers/analog/dac7571.c index f2a7956192..b151c41b4e 100644 --- a/drivers/analog/dac7571.c +++ b/drivers/analog/dac7571.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include diff --git a/drivers/analog/lmp92001.c b/drivers/analog/lmp92001.c index b4a1115595..27d531ad44 100644 --- a/drivers/analog/lmp92001.c +++ b/drivers/analog/lmp92001.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include diff --git a/drivers/analog/ltc1867l.c b/drivers/analog/ltc1867l.c index 209c3e0d8f..af67ef9806 100644 --- a/drivers/analog/ltc1867l.c +++ b/drivers/analog/ltc1867l.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include @@ -58,6 +57,7 @@ #include #include #include +#include #if defined(CONFIG_ADC_LTC1867L) diff --git a/drivers/analog/opamp.c b/drivers/analog/opamp.c index 82fd60d0a5..be4154b3a1 100644 --- a/drivers/analog/opamp.c +++ b/drivers/analog/opamp.c @@ -42,13 +42,11 @@ #include #include #include -#include #include #include #include #include -#include #include #include diff --git a/drivers/audio/tone.c b/drivers/audio/tone.c index 3d83267dd3..c916618cef 100644 --- a/drivers/audio/tone.c +++ b/drivers/audio/tone.c @@ -53,7 +53,6 @@ #include #include #include -#include #include #include #include @@ -65,6 +64,7 @@ #include #include #include +#include #include diff --git a/drivers/bch/bch.h b/drivers/bch/bch.h index 6ab72b0ab8..0813fae40f 100644 --- a/drivers/bch/bch.h +++ b/drivers/bch/bch.h @@ -45,7 +45,8 @@ #include #include #include -#include + +#include #include /**************************************************************************** diff --git a/drivers/bch/bchlib_sem.c b/drivers/bch/bchlib_sem.c index 3cdc308c7f..1495a935fd 100644 --- a/drivers/bch/bchlib_sem.c +++ b/drivers/bch/bchlib_sem.c @@ -43,8 +43,6 @@ #include #include -#include - #include "bch.h" /**************************************************************************** diff --git a/drivers/can/can.c b/drivers/can/can.c index e84729413b..bd9569ccec 100644 --- a/drivers/can/can.c +++ b/drivers/can/can.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include @@ -57,7 +56,6 @@ #include #include -#include #include #include #include diff --git a/drivers/can/mcp2515.c b/drivers/can/mcp2515.c index 487ab4bb8e..c58fcc4550 100644 --- a/drivers/can/mcp2515.c +++ b/drivers/can/mcp2515.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/i2c/i2c_driver.c b/drivers/i2c/i2c_driver.c index 00f8eba39a..e46313c74a 100644 --- a/drivers/i2c/i2c_driver.c +++ b/drivers/i2c/i2c_driver.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include @@ -50,6 +49,7 @@ #include #include #include +#include #ifdef CONFIG_I2C_DRIVER diff --git a/drivers/input/ads7843e.c b/drivers/input/ads7843e.c index d07b59b09d..d13bd1eaef 100644 --- a/drivers/input/ads7843e.c +++ b/drivers/input/ads7843e.c @@ -58,7 +58,6 @@ #include #include #include -#include #include #include #include @@ -73,7 +72,6 @@ #include #include -#include #include #include diff --git a/drivers/input/ads7843e.h b/drivers/input/ads7843e.h index e2f341dd61..e30ac40b64 100644 --- a/drivers/input/ads7843e.h +++ b/drivers/input/ads7843e.h @@ -53,12 +53,12 @@ #include #include -#include #include #include #include #include +#include #include #include diff --git a/drivers/input/ft5x06.c b/drivers/input/ft5x06.c index fc39cacff5..1e2cb85587 100644 --- a/drivers/input/ft5x06.c +++ b/drivers/input/ft5x06.c @@ -66,7 +66,6 @@ #include #include #include -#include #include #include #include @@ -77,6 +76,7 @@ #include #include #include +#include #include #include diff --git a/drivers/input/max11802.c b/drivers/input/max11802.c index 68a65a2f0c..d5180c31af 100644 --- a/drivers/input/max11802.c +++ b/drivers/input/max11802.c @@ -51,7 +51,6 @@ #include #include #include -#include #include #include #include @@ -66,7 +65,6 @@ #include #include -#include #include #include diff --git a/drivers/input/max11802.h b/drivers/input/max11802.h index 66846f67c6..1a2dc41f4f 100644 --- a/drivers/input/max11802.h +++ b/drivers/input/max11802.h @@ -48,12 +48,12 @@ #include #include -#include #include #include #include #include +#include #include #include diff --git a/drivers/input/mxt.c b/drivers/input/mxt.c index 1d8151403b..df42105037 100644 --- a/drivers/input/mxt.c +++ b/drivers/input/mxt.c @@ -52,7 +52,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/input/stmpe811.h b/drivers/input/stmpe811.h index f44b64c504..dccdf4860f 100644 --- a/drivers/input/stmpe811.h +++ b/drivers/input/stmpe811.h @@ -46,8 +46,7 @@ #include -#include - +#include #include #include #include diff --git a/drivers/input/stmpe811_tsc.c b/drivers/input/stmpe811_tsc.c index 1bdc453445..ecc15bf11d 100644 --- a/drivers/input/stmpe811_tsc.c +++ b/drivers/input/stmpe811_tsc.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include diff --git a/drivers/input/tsc2007.c b/drivers/input/tsc2007.c index 3b99fe4fc6..5c5de5beca 100644 --- a/drivers/input/tsc2007.c +++ b/drivers/input/tsc2007.c @@ -56,7 +56,6 @@ #include #include #include -#include #include #include #include @@ -67,6 +66,7 @@ #include #include #include +#include #include #include diff --git a/drivers/ioexpander/pca9555.c b/drivers/ioexpander/pca9555.c index 0c3174a2f8..177f4e77bc 100644 --- a/drivers/ioexpander/pca9555.c +++ b/drivers/ioexpander/pca9555.c @@ -43,7 +43,6 @@ #include -#include #include #include #include diff --git a/drivers/ioexpander/pca9555.h b/drivers/ioexpander/pca9555.h index dc8c13354e..ad7f3b2fe9 100644 --- a/drivers/ioexpander/pca9555.h +++ b/drivers/ioexpander/pca9555.h @@ -46,11 +46,9 @@ #include -#include - #include #include - +#include #include #include #include diff --git a/drivers/ioexpander/pcf8574.c b/drivers/ioexpander/pcf8574.c index 54653e6cf7..010ce993ff 100644 --- a/drivers/ioexpander/pcf8574.c +++ b/drivers/ioexpander/pcf8574.c @@ -40,7 +40,6 @@ #include -#include #include #include #include diff --git a/drivers/ioexpander/pcf8574.h b/drivers/ioexpander/pcf8574.h index 9ef0976729..0963032cf7 100644 --- a/drivers/ioexpander/pcf8574.h +++ b/drivers/ioexpander/pcf8574.h @@ -42,11 +42,9 @@ #include -#include - #include #include - +#include #include #include #include diff --git a/drivers/ioexpander/skeleton.c b/drivers/ioexpander/skeleton.c index 8469dd91e8..56e0dd44bb 100644 --- a/drivers/ioexpander/skeleton.c +++ b/drivers/ioexpander/skeleton.c @@ -39,12 +39,12 @@ #include -#include #include #include #include #include +#include #include #include diff --git a/drivers/ioexpander/tca64xx.c b/drivers/ioexpander/tca64xx.c index 8aea715563..82f5531746 100644 --- a/drivers/ioexpander/tca64xx.c +++ b/drivers/ioexpander/tca64xx.c @@ -44,7 +44,6 @@ #include -#include #include #include #include diff --git a/drivers/ioexpander/tca64xx.h b/drivers/ioexpander/tca64xx.h index c77ed6bc89..28c59e5c62 100644 --- a/drivers/ioexpander/tca64xx.h +++ b/drivers/ioexpander/tca64xx.h @@ -46,11 +46,9 @@ #include -#include - #include #include - +#include #include #include #include diff --git a/drivers/lcd/tda19988.c b/drivers/lcd/tda19988.c index defed9dd23..db8fa2cd7d 100644 --- a/drivers/lcd/tda19988.c +++ b/drivers/lcd/tda19988.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include diff --git a/drivers/leds/rgbled.c b/drivers/leds/rgbled.c index 404c29760d..128aed9dc6 100644 --- a/drivers/leds/rgbled.c +++ b/drivers/leds/rgbled.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include @@ -57,6 +56,7 @@ #include #include #include +#include #include diff --git a/drivers/loop/losetup.c b/drivers/loop/losetup.c index 5a4d67876b..385eb0cc85 100644 --- a/drivers/loop/losetup.c +++ b/drivers/loop/losetup.c @@ -53,13 +53,13 @@ #include #include #include -#include #include #include #include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c index 6d579f9e9c..dd8a81af60 100644 --- a/drivers/mmcsd/mmcsd_sdio.c +++ b/drivers/mmcsd/mmcsd_sdio.c @@ -54,7 +54,6 @@ #include #include #include -#include #include #include @@ -66,6 +65,7 @@ #include #include #include +#include #include "mmcsd.h" #include "mmcsd_sdio.h" diff --git a/drivers/modem/altair/altmdm_spi.h b/drivers/modem/altair/altmdm_spi.h index 0aa9769f43..4ff6d4944e 100644 --- a/drivers/modem/altair/altmdm_spi.h +++ b/drivers/modem/altair/altmdm_spi.h @@ -41,7 +41,6 @@ ****************************************************************************/ #include -#include #include "altmdm_dev.h" #include "altmdm_sys.h" diff --git a/drivers/modem/altair/altmdm_sys.c b/drivers/modem/altair/altmdm_sys.c index 1cad10cd9b..f4cb8e4e94 100644 --- a/drivers/modem/altair/altmdm_sys.c +++ b/drivers/modem/altair/altmdm_sys.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include "altmdm_dev.h" diff --git a/drivers/modem/altair/altmdm_sys.h b/drivers/modem/altair/altmdm_sys.h index 320e086234..33b5a4e9a3 100644 --- a/drivers/modem/altair/altmdm_sys.h +++ b/drivers/modem/altair/altmdm_sys.h @@ -43,7 +43,7 @@ ****************************************************************************/ #include -#include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/drivers/mtd/mtd_nand.c b/drivers/mtd/mtd_nand.c index 7f5a2781b2..55ec2a2424 100644 --- a/drivers/mtd/mtd_nand.c +++ b/drivers/mtd/mtd_nand.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/phy_notify.c b/drivers/net/phy_notify.c index 4f5cc93834..3ceda17e91 100644 --- a/drivers/net/phy_notify.c +++ b/drivers/net/phy_notify.c @@ -51,12 +51,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include diff --git a/drivers/net/telnet.c b/drivers/net/telnet.c index 9d142fe7e2..206349f685 100644 --- a/drivers/net/telnet.c +++ b/drivers/net/telnet.c @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/pipes/pipe.c b/drivers/pipes/pipe.c index 4a0668838d..d595d1655c 100644 --- a/drivers/pipes/pipe.c +++ b/drivers/pipes/pipe.c @@ -43,12 +43,12 @@ #include #include -#include #include #include #include #include +#include #include "pipe_common.h" diff --git a/drivers/pipes/pipe_common.c b/drivers/pipes/pipe_common.c index 0ecb54c0eb..2b4c80a07c 100644 --- a/drivers/pipes/pipe_common.c +++ b/drivers/pipes/pipe_common.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/power/battery_charger.c b/drivers/power/battery_charger.c index f77c85c602..f9c430b758 100644 --- a/drivers/power/battery_charger.c +++ b/drivers/power/battery_charger.c @@ -44,7 +44,6 @@ #include #include -#include #include #include #include diff --git a/drivers/power/battery_gauge.c b/drivers/power/battery_gauge.c index b56c6a9cc4..a0813680d1 100644 --- a/drivers/power/battery_gauge.c +++ b/drivers/power/battery_gauge.c @@ -44,7 +44,6 @@ #include #include -#include #include #include #include diff --git a/drivers/power/motor.c b/drivers/power/motor.c index 2e8061b3e9..8fc04e5e88 100644 --- a/drivers/power/motor.c +++ b/drivers/power/motor.c @@ -43,13 +43,11 @@ #include #include #include -#include #include #include #include #include -#include #include #include diff --git a/drivers/power/pm.h b/drivers/power/pm.h index 99543bd438..4d585c704e 100644 --- a/drivers/power/pm.h +++ b/drivers/power/pm.h @@ -43,7 +43,6 @@ #include -#include #include #include diff --git a/drivers/power/pm_initialize.c b/drivers/power/pm_initialize.c index ba068fd77d..56e66a3687 100644 --- a/drivers/power/pm_initialize.c +++ b/drivers/power/pm_initialize.c @@ -40,9 +40,6 @@ #include -#include - -#include #include #include "pm.h" diff --git a/drivers/power/powerled.c b/drivers/power/powerled.c index 14f8b0c62c..f10f64f294 100644 --- a/drivers/power/powerled.c +++ b/drivers/power/powerled.c @@ -43,13 +43,11 @@ #include #include #include -#include #include #include #include #include -#include #include #include diff --git a/drivers/power/smps.c b/drivers/power/smps.c index 819034d3f5..a898785053 100644 --- a/drivers/power/smps.c +++ b/drivers/power/smps.c @@ -43,13 +43,11 @@ #include #include #include -#include #include #include #include #include -#include #include #include diff --git a/drivers/rwbuffer.c b/drivers/rwbuffer.c index a4459c5845..889683f9b9 100644 --- a/drivers/rwbuffer.c +++ b/drivers/rwbuffer.c @@ -47,11 +47,11 @@ #include #include #include -#include #include #include #include +#include #include #include diff --git a/drivers/sensors/adxl345.h b/drivers/sensors/adxl345.h index e91fc6b074..8b61010a12 100644 --- a/drivers/sensors/adxl345.h +++ b/drivers/sensors/adxl345.h @@ -44,11 +44,10 @@ #include -#include - #include #include #include +#include #include #if defined(CONFIG_SENSORS_ADXL345) diff --git a/drivers/sensors/adxl372.c b/drivers/sensors/adxl372.c index 6539cb4fb6..003023cda1 100644 --- a/drivers/sensors/adxl372.c +++ b/drivers/sensors/adxl372.c @@ -46,11 +46,10 @@ #include #include #include -#include #include - #include +#include #include /**************************************************************************** diff --git a/drivers/sensors/ak09912.c b/drivers/sensors/ak09912.c index 01457c1e92..de1293e465 100644 --- a/drivers/sensors/ak09912.c +++ b/drivers/sensors/ak09912.c @@ -44,11 +44,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/drivers/sensors/bmg160.c b/drivers/sensors/bmg160.c index 9258189d7a..8dfd164336 100644 --- a/drivers/sensors/bmg160.c +++ b/drivers/sensors/bmg160.c @@ -44,12 +44,11 @@ #include #include #include -#include #include #include - #include +#include #include #include diff --git a/drivers/sensors/dhtxx.c b/drivers/sensors/dhtxx.c index c79eb8e8f6..59908f4577 100644 --- a/drivers/sensors/dhtxx.c +++ b/drivers/sensors/dhtxx.c @@ -48,10 +48,9 @@ #include #include #include -#include #include #include - +#include #include /***************************************************************************** diff --git a/drivers/sensors/kxtj9.c b/drivers/sensors/kxtj9.c index c34e34848b..96f5c6610e 100644 --- a/drivers/sensors/kxtj9.c +++ b/drivers/sensors/kxtj9.c @@ -43,7 +43,6 @@ #include #include -#include #include #include @@ -51,6 +50,7 @@ #include #include #include +#include #include #include diff --git a/drivers/sensors/lis3dh.c b/drivers/sensors/lis3dh.c index 050d75be08..bd86f03d3a 100644 --- a/drivers/sensors/lis3dh.c +++ b/drivers/sensors/lis3dh.c @@ -42,13 +42,12 @@ #include #include #include -#include #include #include #include - #include +#include #include #include diff --git a/drivers/sensors/lis3dsh.c b/drivers/sensors/lis3dsh.c index 35e4a8e352..3d3a1c8292 100644 --- a/drivers/sensors/lis3dsh.c +++ b/drivers/sensors/lis3dsh.c @@ -45,13 +45,12 @@ #include #include #include -#include #include #include #include - #include +#include #include #if defined(CONFIG_SPI) && defined(CONFIG_LIS3DSH) diff --git a/drivers/sensors/lis3mdl.c b/drivers/sensors/lis3mdl.c index 351c556e74..bcd8953e04 100644 --- a/drivers/sensors/lis3mdl.c +++ b/drivers/sensors/lis3mdl.c @@ -43,13 +43,12 @@ #include #include #include -#include #include #include #include - #include +#include #include #if defined(CONFIG_SPI) && defined(CONFIG_SENSORS_LIS3MDL) diff --git a/drivers/sensors/lsm330_spi.c b/drivers/sensors/lsm330_spi.c index b269306182..a9427261e5 100644 --- a/drivers/sensors/lsm330_spi.c +++ b/drivers/sensors/lsm330_spi.c @@ -46,11 +46,10 @@ #include #include #include -#include #include - #include +#include #include /**************************************************************************** diff --git a/drivers/sensors/mlx90393.c b/drivers/sensors/mlx90393.c index 3cdc28175f..36684f6f2f 100644 --- a/drivers/sensors/mlx90393.c +++ b/drivers/sensors/mlx90393.c @@ -43,12 +43,11 @@ #include #include #include -#include #include #include - #include +#include #include #include diff --git a/drivers/sensors/qencoder.c b/drivers/sensors/qencoder.c index f754ea3cee..6d45769a99 100644 --- a/drivers/sensors/qencoder.c +++ b/drivers/sensors/qencoder.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include @@ -54,6 +53,7 @@ #include #include #include +#include #include #include diff --git a/drivers/sensors/xen1210.h b/drivers/sensors/xen1210.h index 22ac33553c..5035ce8f4b 100644 --- a/drivers/sensors/xen1210.h +++ b/drivers/sensors/xen1210.h @@ -42,11 +42,10 @@ #include -#include - #include #include #include +#include #include #if defined(CONFIG_SENSORS_XEN1210) diff --git a/drivers/sensors/zerocross.c b/drivers/sensors/zerocross.c index da732ecfe3..9929cec57f 100644 --- a/drivers/sensors/zerocross.c +++ b/drivers/sensors/zerocross.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include @@ -55,6 +54,7 @@ #include #include #include +#include #include #include diff --git a/drivers/serial/pty.c b/drivers/serial/pty.c index 8693778017..470202f918 100644 --- a/drivers/serial/pty.c +++ b/drivers/serial/pty.c @@ -88,7 +88,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index f6df6e911f..2d9a761c73 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/serial/serial_dma.c b/drivers/serial/serial_dma.c index 7e831c97e3..c549efca09 100644 --- a/drivers/serial/serial_dma.c +++ b/drivers/serial/serial_dma.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/drivers/serial/serial_io.c b/drivers/serial/serial_io.c index 1bed0682de..575b90d484 100644 --- a/drivers/serial/serial_io.c +++ b/drivers/serial/serial_io.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include diff --git a/drivers/serial/uart_16550.c b/drivers/serial/uart_16550.c index a9050ef890..ef634d2dde 100644 --- a/drivers/serial/uart_16550.c +++ b/drivers/serial/uart_16550.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/spi/spi_bitbang.c b/drivers/spi/spi_bitbang.c index f228d12f11..e9314baa47 100644 --- a/drivers/spi/spi_bitbang.c +++ b/drivers/spi/spi_bitbang.c @@ -39,7 +39,6 @@ #include #include -#include #include #include #include diff --git a/drivers/spi/spi_driver.c b/drivers/spi/spi_driver.c index c3b2a57818..bdc0c7d6b9 100644 --- a/drivers/spi/spi_driver.c +++ b/drivers/spi/spi_driver.c @@ -42,13 +42,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #ifdef CONFIG_SPI_DRIVER diff --git a/drivers/syslog/syslog_device.c b/drivers/syslog/syslog_device.c index 2587213bbd..0036588cf9 100644 --- a/drivers/syslog/syslog_device.c +++ b/drivers/syslog/syslog_device.c @@ -47,13 +47,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include "syslog.h" diff --git a/drivers/timers/oneshot.c b/drivers/timers/oneshot.c index eb95ce0fd5..e4c047d314 100644 --- a/drivers/timers/oneshot.c +++ b/drivers/timers/oneshot.c @@ -43,13 +43,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #ifdef CONFIG_ONESHOT diff --git a/drivers/timers/pwm.c b/drivers/timers/pwm.c index 8e3e0814d4..060082f813 100644 --- a/drivers/timers/pwm.c +++ b/drivers/timers/pwm.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/timers/rtc.c b/drivers/timers/rtc.c index defd8d2d7e..4b62ae3a7d 100644 --- a/drivers/timers/rtc.c +++ b/drivers/timers/rtc.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include @@ -50,6 +49,7 @@ #include #include #include +#include #include /**************************************************************************** diff --git a/drivers/timers/timer.c b/drivers/timers/timer.c index 1be1837e17..3b68f314f1 100644 --- a/drivers/timers/timer.c +++ b/drivers/timers/timer.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -54,6 +53,7 @@ #include #include #include +#include #include #ifdef CONFIG_TIMER diff --git a/drivers/timers/watchdog.c b/drivers/timers/watchdog.c index d61098f560..c3e6d9d294 100644 --- a/drivers/timers/watchdog.c +++ b/drivers/timers/watchdog.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -53,6 +52,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/usbdev/cdcacm.c b/drivers/usbdev/cdcacm.c index f30d8663f9..9db75fa82c 100644 --- a/drivers/usbdev/cdcacm.c +++ b/drivers/usbdev/cdcacm.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/usbdev/pl2303.c b/drivers/usbdev/pl2303.c index 61d10216b2..6850a63a6c 100644 --- a/drivers/usbdev/pl2303.c +++ b/drivers/usbdev/pl2303.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/usbdev/usbmsc.c b/drivers/usbdev/usbmsc.c index 8c1b013df7..10340ef9b0 100644 --- a/drivers/usbdev/usbmsc.c +++ b/drivers/usbdev/usbmsc.c @@ -75,7 +75,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/usbdev/usbmsc.h b/drivers/usbdev/usbmsc.h index 227a357318..b39c2a027c 100644 --- a/drivers/usbdev/usbmsc.h +++ b/drivers/usbdev/usbmsc.h @@ -48,9 +48,9 @@ #include #include #include -#include #include +#include #include #include diff --git a/drivers/usbhost/usbhost_cdcacm.c b/drivers/usbhost/usbhost_cdcacm.c index 431b9c9183..2152b4a4fa 100644 --- a/drivers/usbhost/usbhost_cdcacm.c +++ b/drivers/usbhost/usbhost_cdcacm.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include @@ -55,6 +54,7 @@ #include #include #include +#include #include #include diff --git a/drivers/usbhost/usbhost_hidkbd.c b/drivers/usbhost/usbhost_hidkbd.c index 0ac3c5b2a7..de7af2bb81 100644 --- a/drivers/usbhost/usbhost_hidkbd.c +++ b/drivers/usbhost/usbhost_hidkbd.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/usbhost/usbhost_hidmouse.c b/drivers/usbhost/usbhost_hidmouse.c index 283b79fb62..9d69019b21 100644 --- a/drivers/usbhost/usbhost_hidmouse.c +++ b/drivers/usbhost/usbhost_hidmouse.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/usbhost/usbhost_hub.c b/drivers/usbhost/usbhost_hub.c index 5ac558dc8a..4c31f0f03b 100644 --- a/drivers/usbhost/usbhost_hub.c +++ b/drivers/usbhost/usbhost_hub.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -54,6 +53,7 @@ #include #include #include +#include #include #include diff --git a/drivers/usbhost/usbhost_max3421e.c b/drivers/usbhost/usbhost_max3421e.c index 219094788b..6267065072 100644 --- a/drivers/usbhost/usbhost_max3421e.c +++ b/drivers/usbhost/usbhost_max3421e.c @@ -50,7 +50,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/usbhost/usbhost_skeleton.c b/drivers/usbhost/usbhost_skeleton.c index a6348d592d..b1ee01d019 100644 --- a/drivers/usbhost/usbhost_skeleton.c +++ b/drivers/usbhost/usbhost_skeleton.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include @@ -51,6 +50,7 @@ #include #include #include +#include #include #include diff --git a/drivers/usbhost/usbhost_storage.c b/drivers/usbhost/usbhost_storage.c index d23150de2c..710d43b5a1 100644 --- a/drivers/usbhost/usbhost_storage.c +++ b/drivers/usbhost/usbhost_storage.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -55,6 +54,7 @@ #include #include #include +#include #include #include diff --git a/drivers/usbhost/usbhost_xboxcontroller.c b/drivers/usbhost/usbhost_xboxcontroller.c index b34861094c..796c89a46c 100644 --- a/drivers/usbhost/usbhost_xboxcontroller.c +++ b/drivers/usbhost/usbhost_xboxcontroller.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include @@ -56,6 +55,7 @@ #include #include #include +#include #include #include diff --git a/drivers/video/video_framebuff.h b/drivers/video/video_framebuff.h index aaeaf50379..1eeb085726 100644 --- a/drivers/video/video_framebuff.h +++ b/drivers/video/video_framebuff.h @@ -37,7 +37,7 @@ #define __VIDEO_VIDEO_FRAMEBUFF_H__ #include -#include +#include struct vbuf_container_s { diff --git a/drivers/wireless/bluetooth/bt_uart_bcm4343x.c b/drivers/wireless/bluetooth/bt_uart_bcm4343x.c index 2cdb5571fc..9378769a5e 100644 --- a/drivers/wireless/bluetooth/bt_uart_bcm4343x.c +++ b/drivers/wireless/bluetooth/bt_uart_bcm4343x.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/wireless/bluetooth/bt_uart_shim.c b/drivers/wireless/bluetooth/bt_uart_shim.c index 40d3940da5..a3a666ae6d 100644 --- a/drivers/wireless/bluetooth/bt_uart_shim.c +++ b/drivers/wireless/bluetooth/bt_uart_shim.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/wireless/gs2200m.c b/drivers/wireless/gs2200m.c index f02d216ef5..bea69b6385 100644 --- a/drivers/wireless/gs2200m.c +++ b/drivers/wireless/gs2200m.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_cdc.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_cdc.c index 2fa20192a8..e828c5183c 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_cdc.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_cdc.c @@ -46,7 +46,6 @@ #include #include #include -#include #include "bcmf_driver.h" #include "bcmf_ioctl.h" diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.h b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.h index 810d8e0849..d2529be415 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.h +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.h @@ -38,9 +38,9 @@ #include #include -#include #include +#include #include #include #include diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c index 8ef869e70c..3dc4fdd00a 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.h b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.h index 8365828412..e61ae78e28 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.h +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdio.h @@ -45,9 +45,9 @@ #include #include #include -#include #include +#include #include "bcmf_driver.h" #include "bcmf_sdio_core.h" diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdpcm.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdpcm.c index 2054775072..96c36a0988 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdpcm.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_sdpcm.c @@ -45,10 +45,10 @@ #include #include + #include #include #include -#include #include "bcmf_sdio.h" #include "bcmf_core.h" diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.c b/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.c index 3e49de9d2e..b5c60e60bb 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.c +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.c @@ -40,13 +40,10 @@ #include #include #include -#include #include #include #include -#include - #include "bcmf_utils.h" /**************************************************************************** diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.h b/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.h index 26851bbde3..a4e9529d68 100644 --- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.h +++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_utils.h @@ -41,9 +41,10 @@ ****************************************************************************/ #include -#include #include +#include + #define container_of(ptr, type, member) \ (type *)((uint8_t *)(ptr) - offsetof(type, member)) diff --git a/drivers/wireless/ieee802154/at86rf23x/at86rf23x.c b/drivers/wireless/ieee802154/at86rf23x/at86rf23x.c index b1bde8fc58..2a5416d19a 100644 --- a/drivers/wireless/ieee802154/at86rf23x/at86rf23x.c +++ b/drivers/wireless/ieee802154/at86rf23x/at86rf23x.c @@ -47,12 +47,12 @@ #include #include #include -#include #include #include #include #include +#include #include #include diff --git a/drivers/wireless/ieee802154/mrf24j40/mrf24j40.c b/drivers/wireless/ieee802154/mrf24j40/mrf24j40.c index 49f9e381d1..060311578b 100644 --- a/drivers/wireless/ieee802154/mrf24j40/mrf24j40.c +++ b/drivers/wireless/ieee802154/mrf24j40/mrf24j40.c @@ -47,14 +47,11 @@ #include #include #include -#include #include #include #include -#include - #include #include diff --git a/drivers/wireless/ieee802154/mrf24j40/mrf24j40.h b/drivers/wireless/ieee802154/mrf24j40/mrf24j40.h index b07714c429..88e0adb3d3 100644 --- a/drivers/wireless/ieee802154/mrf24j40/mrf24j40.h +++ b/drivers/wireless/ieee802154/mrf24j40/mrf24j40.h @@ -44,8 +44,8 @@ #include #include -#include +#include #include #include diff --git a/drivers/wireless/ieee802154/mrf24j40/mrf24j40_radif.c b/drivers/wireless/ieee802154/mrf24j40/mrf24j40_radif.c index a8f4b8ee6f..9d2b828c9d 100644 --- a/drivers/wireless/ieee802154/mrf24j40/mrf24j40_radif.c +++ b/drivers/wireless/ieee802154/mrf24j40/mrf24j40_radif.c @@ -46,10 +46,8 @@ #include #include #include -#include #include - #include #include diff --git a/drivers/wireless/ieee802154/xbee/xbee.c b/drivers/wireless/ieee802154/xbee/xbee.c index ac5c8c2418..1bf7ebff97 100644 --- a/drivers/wireless/ieee802154/xbee/xbee.c +++ b/drivers/wireless/ieee802154/xbee/xbee.c @@ -45,11 +45,9 @@ #include #include #include -#include #include #include -#include #include #include "xbee.h" diff --git a/drivers/wireless/ieee802154/xbee/xbee.h b/drivers/wireless/ieee802154/xbee/xbee.h index 03545dbe31..8510280af1 100644 --- a/drivers/wireless/ieee802154/xbee/xbee.h +++ b/drivers/wireless/ieee802154/xbee/xbee.h @@ -44,9 +44,9 @@ #include #include -#include #include +#include #include #include diff --git a/drivers/wireless/ieee802154/xbee/xbee_mac.h b/drivers/wireless/ieee802154/xbee/xbee_mac.h index 3caf1210df..6fc1979c4d 100644 --- a/drivers/wireless/ieee802154/xbee/xbee_mac.h +++ b/drivers/wireless/ieee802154/xbee/xbee_mac.h @@ -44,7 +44,6 @@ #include #include -#include #include #include diff --git a/drivers/wireless/lpwan/sx127x/sx127x.c b/drivers/wireless/lpwan/sx127x/sx127x.c index 6282878c75..d7991047d4 100644 --- a/drivers/wireless/lpwan/sx127x/sx127x.c +++ b/drivers/wireless/lpwan/sx127x/sx127x.c @@ -44,13 +44,13 @@ #include #include #include -#include #include #include #include #include #include +#include #include #include diff --git a/drivers/wireless/nrf24l01.c b/drivers/wireless/nrf24l01.c index a479948c6f..c5e5949fad 100644 --- a/drivers/wireless/nrf24l01.c +++ b/drivers/wireless/nrf24l01.c @@ -56,12 +56,12 @@ #include #include #include -#include #include #include #include #include +#include #include #ifdef CONFIG_WL_NRF24L01_RXSUPPORT diff --git a/drivers/wireless/spirit/drivers/spirit_netdev.c b/drivers/wireless/spirit/drivers/spirit_netdev.c index 3d2d91a736..7fac9b5335 100644 --- a/drivers/wireless/spirit/drivers/spirit_netdev.c +++ b/drivers/wireless/spirit/drivers/spirit_netdev.c @@ -117,10 +117,10 @@ #include #include #include -#include #include #include +#include #include #include #include diff --git a/fs/aio/aio_initialize.c b/fs/aio/aio_initialize.c index 0b892c77be..090e1e1fa8 100644 --- a/fs/aio/aio_initialize.c +++ b/fs/aio/aio_initialize.c @@ -39,12 +39,12 @@ #include -#include #include #include #include #include +#include #include "aio/aio.h" diff --git a/fs/driver/fs_blockproxy.c b/fs/driver/fs_blockproxy.c index 65141c2755..6fd0f53031 100644 --- a/fs/driver/fs_blockproxy.c +++ b/fs/driver/fs_blockproxy.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include @@ -55,6 +54,7 @@ #include #include #include +#include #if !defined(CONFIG_DISABLE_MOUNTPOINT) && \ !defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS) diff --git a/fs/driver/fs_mtdproxy.c b/fs/driver/fs_mtdproxy.c index 66bba129c6..0eab9da597 100644 --- a/fs/driver/fs_mtdproxy.c +++ b/fs/driver/fs_mtdproxy.c @@ -43,7 +43,6 @@ #include #include -#include #include #include #include @@ -51,6 +50,7 @@ #include #include +#include #include "driver/driver.h" diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c index 705e504535..6373e078db 100644 --- a/fs/fat/fs_fat32.c +++ b/fs/fat/fs_fat32.c @@ -54,7 +54,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/fat/fs_fat32.h b/fs/fat/fs_fat32.h index 78e2ae9fa3..6da8fc85e2 100644 --- a/fs/fat/fs_fat32.h +++ b/fs/fat/fs_fat32.h @@ -46,11 +46,11 @@ #include #include #include -#include #include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/fs/fat/fs_fat32util.c b/fs/fat/fs_fat32util.c index 0b718fc9cf..fda420539b 100644 --- a/fs/fat/fs_fat32util.c +++ b/fs/fat/fs_fat32util.c @@ -52,7 +52,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/hostfs/hostfs.c b/fs/hostfs/hostfs.c index e2cec8b778..5409f41ca1 100644 --- a/fs/hostfs/hostfs.c +++ b/fs/hostfs/hostfs.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h index bf501332f9..2dff01c042 100644 --- a/fs/hostfs/hostfs.h +++ b/fs/hostfs/hostfs.h @@ -45,7 +45,8 @@ #include #include #include -#include + +#include /**************************************************************************** * Pre-processor Definitions diff --git a/fs/inode/fs_filedetach.c b/fs/inode/fs_filedetach.c index 61b86b41a3..8203e49cd0 100644 --- a/fs/inode/fs_filedetach.c +++ b/fs/inode/fs_filedetach.c @@ -39,12 +39,12 @@ #include -#include #include #include #include #include +#include #include "inode/inode.h" diff --git a/fs/inode/fs_files.c b/fs/inode/fs_files.c index 58bab7a74a..342de6f563 100644 --- a/fs/inode/fs_files.c +++ b/fs/inode/fs_files.c @@ -42,13 +42,13 @@ #include #include -#include #include #include #include #include #include +#include #include "inode/inode.h" diff --git a/fs/inode/fs_inode.c b/fs/inode/fs_inode.c index 5c9423df39..6b108700aa 100644 --- a/fs/inode/fs_inode.c +++ b/fs/inode/fs_inode.c @@ -41,11 +41,11 @@ #include #include -#include #include #include #include +#include #include "inode/inode.h" diff --git a/fs/mmap/fs_rammap.h b/fs/mmap/fs_rammap.h index f09e418853..bbe76627a2 100644 --- a/fs/mmap/fs_rammap.h +++ b/fs/mmap/fs_rammap.h @@ -45,7 +45,7 @@ #include #include -#include +#include #ifdef CONFIG_FS_RAMMAP diff --git a/fs/nfs/nfs_mount.h b/fs/nfs/nfs_mount.h index 8f1f7be539..8984de7c59 100644 --- a/fs/nfs/nfs_mount.h +++ b/fs/nfs/nfs_mount.h @@ -49,6 +49,7 @@ ****************************************************************************/ #include +#include #include "rpc.h" diff --git a/fs/nfs/nfs_util.c b/fs/nfs/nfs_util.c index c2c2e26066..594f6f2e3c 100644 --- a/fs/nfs/nfs_util.c +++ b/fs/nfs/nfs_util.c @@ -52,7 +52,6 @@ #include #include -#include #include #include "rpc.h" diff --git a/fs/nfs/nfs_vfsops.c b/fs/nfs/nfs_vfsops.c index c02fd8e595..6e69a70d3f 100644 --- a/fs/nfs/nfs_vfsops.c +++ b/fs/nfs/nfs_vfsops.c @@ -59,7 +59,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/nxffs/nxffs.h b/fs/nxffs/nxffs.h index 32a648348f..d1338fac34 100644 --- a/fs/nxffs/nxffs.h +++ b/fs/nxffs/nxffs.h @@ -48,10 +48,10 @@ #include #include #include -#include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/fs/nxffs/nxffs_dirent.c b/fs/nxffs/nxffs_dirent.c index 4c21b1eada..90d3b1d72f 100644 --- a/fs/nxffs/nxffs_dirent.c +++ b/fs/nxffs/nxffs_dirent.c @@ -47,7 +47,6 @@ #include #include -#include #include #include #include diff --git a/fs/nxffs/nxffs_ioctl.c b/fs/nxffs/nxffs_ioctl.c index aca5bf378c..13af4d82e5 100644 --- a/fs/nxffs/nxffs_ioctl.c +++ b/fs/nxffs/nxffs_ioctl.c @@ -46,7 +46,6 @@ #include #include -#include #include #include #include diff --git a/fs/nxffs/nxffs_read.c b/fs/nxffs/nxffs_read.c index 80e4ec6278..d7a8570eae 100644 --- a/fs/nxffs/nxffs_read.c +++ b/fs/nxffs/nxffs_read.c @@ -48,7 +48,6 @@ #include #include -#include #include #include diff --git a/fs/nxffs/nxffs_stat.c b/fs/nxffs/nxffs_stat.c index 81c9624f85..9ac3bea131 100644 --- a/fs/nxffs/nxffs_stat.c +++ b/fs/nxffs/nxffs_stat.c @@ -50,7 +50,6 @@ #include #include -#include #include #include diff --git a/fs/nxffs/nxffs_truncate.c b/fs/nxffs/nxffs_truncate.c index cb5130101e..c1a73dd97d 100644 --- a/fs/nxffs/nxffs_truncate.c +++ b/fs/nxffs/nxffs_truncate.c @@ -46,8 +46,6 @@ #include #include -#include - #include "nxffs.h" #ifdef __NO_TRUNCATE_SUPPORT__ diff --git a/fs/nxffs/nxffs_unlink.c b/fs/nxffs/nxffs_unlink.c index e588503846..f80ef169fe 100644 --- a/fs/nxffs/nxffs_unlink.c +++ b/fs/nxffs/nxffs_unlink.c @@ -46,7 +46,6 @@ #include #include -#include #include #include diff --git a/fs/nxffs/nxffs_write.c b/fs/nxffs/nxffs_write.c index 324ee1850d..6e5a36ce83 100644 --- a/fs/nxffs/nxffs_write.c +++ b/fs/nxffs/nxffs_write.c @@ -48,7 +48,6 @@ #include #include -#include #include #include diff --git a/fs/semaphore/sem_close.c b/fs/semaphore/sem_close.c index 9b435fe72b..1e8233d358 100644 --- a/fs/semaphore/sem_close.c +++ b/fs/semaphore/sem_close.c @@ -39,7 +39,6 @@ #include -#include #include #include diff --git a/fs/semaphore/sem_open.c b/fs/semaphore/sem_open.c index 4c0fcf5051..8aa21a4b46 100644 --- a/fs/semaphore/sem_open.c +++ b/fs/semaphore/sem_open.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/semaphore/sem_unlink.c b/fs/semaphore/sem_unlink.c index 0c56e946e3..fa9ce5f3e3 100644 --- a/fs/semaphore/sem_unlink.c +++ b/fs/semaphore/sem_unlink.c @@ -41,13 +41,13 @@ #include #include -#include #include #include #include #include #include +#include #include "inode/inode.h" #include "semaphore/semaphore.h" diff --git a/fs/smartfs/smartfs.h b/fs/smartfs/smartfs.h index ddf285d807..fe6fd244f9 100644 --- a/fs/smartfs/smartfs.h +++ b/fs/smartfs/smartfs.h @@ -45,10 +45,10 @@ #include #include #include -#include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/fs/smartfs/smartfs_smart.c b/fs/smartfs/smartfs_smart.c index 4d142d0084..e9e6905402 100644 --- a/fs/smartfs/smartfs_smart.c +++ b/fs/smartfs/smartfs_smart.c @@ -46,7 +46,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/smartfs/smartfs_utils.c b/fs/smartfs/smartfs_utils.c index 6b70a23b07..41ff77909d 100644 --- a/fs/smartfs/smartfs_utils.c +++ b/fs/smartfs/smartfs_utils.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/spiffs/src/spiffs_vfs.c b/fs/spiffs/src/spiffs_vfs.c index 1befd98fca..812bb80fc5 100644 --- a/fs/spiffs/src/spiffs_vfs.c +++ b/fs/spiffs/src/spiffs_vfs.c @@ -51,7 +51,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/tmpfs/fs_tmpfs.c b/fs/tmpfs/fs_tmpfs.c index 5700a9fff2..19f36b4bfb 100644 --- a/fs/tmpfs/fs_tmpfs.c +++ b/fs/tmpfs/fs_tmpfs.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include #include diff --git a/fs/tmpfs/fs_tmpfs.h b/fs/tmpfs/fs_tmpfs.h index 8e4b1a32f5..b96efcb6d7 100644 --- a/fs/tmpfs/fs_tmpfs.h +++ b/fs/tmpfs/fs_tmpfs.h @@ -43,9 +43,9 @@ #include #include -#include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/fs/unionfs/fs_unionfs.c b/fs/unionfs/fs_unionfs.c index 39a6ac06b3..c135156ea6 100644 --- a/fs/unionfs/fs_unionfs.c +++ b/fs/unionfs/fs_unionfs.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include @@ -60,6 +59,7 @@ #include #include #include +#include #include "inode/inode.h" diff --git a/fs/userfs/fs_userfs.c b/fs/userfs/fs_userfs.c index 2d45a8f55b..7d01df183d 100644 --- a/fs/userfs/fs_userfs.c +++ b/fs/userfs/fs_userfs.c @@ -48,7 +48,6 @@ #include #include #include -#include #include #include #include @@ -62,6 +61,7 @@ #include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/fs/vfs/fs_fdopen.c b/fs/vfs/fs_fdopen.c index f054d51938..a2ba6e181b 100644 --- a/fs/vfs/fs_fdopen.c +++ b/fs/vfs/fs_fdopen.c @@ -41,11 +41,11 @@ #include #include -#include #include #include #include +#include #include #include diff --git a/fs/vfs/fs_poll.c b/fs/vfs/fs_poll.c index dbc04e9f41..f6098f4c34 100644 --- a/fs/vfs/fs_poll.c +++ b/fs/vfs/fs_poll.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/graphics/nxmu/nxmu.h b/graphics/nxmu/nxmu.h index 205f63f373..315ed65bec 100644 --- a/graphics/nxmu/nxmu.h +++ b/graphics/nxmu/nxmu.h @@ -45,7 +45,6 @@ #include #include #include -#include #include #include diff --git a/graphics/nxmu/nxmu_server.c b/graphics/nxmu/nxmu_server.c index 2d846cf61b..47ec68a1fc 100644 --- a/graphics/nxmu/nxmu_server.c +++ b/graphics/nxmu/nxmu_server.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/graphics/nxterm/nxterm.h b/graphics/nxterm/nxterm.h index 27f6011c32..f2753d2453 100644 --- a/graphics/nxterm/nxterm.h +++ b/graphics/nxterm/nxterm.h @@ -43,7 +43,6 @@ #include #include -#include #include #include diff --git a/graphics/nxterm/nxterm_redraw.c b/graphics/nxterm/nxterm_redraw.c index f7d6c5b35f..ea905cb1e3 100644 --- a/graphics/nxterm/nxterm_redraw.c +++ b/graphics/nxterm/nxterm_redraw.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/graphics/nxterm/nxterm_register.c b/graphics/nxterm/nxterm_register.c index 31e32d5751..507ebff0ab 100644 --- a/graphics/nxterm/nxterm_register.c +++ b/graphics/nxterm/nxterm_register.c @@ -48,7 +48,6 @@ #include #include -#include #include #include "nxterm.h" diff --git a/graphics/nxterm/nxterm_resize.c b/graphics/nxterm/nxterm_resize.c index 26bbf8eb69..3518e7e226 100644 --- a/graphics/nxterm/nxterm_resize.c +++ b/graphics/nxterm/nxterm_resize.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include diff --git a/graphics/nxterm/nxterm_scroll.c b/graphics/nxterm/nxterm_scroll.c index 56cb25a8d7..bb9bb57fc7 100644 --- a/graphics/nxterm/nxterm_scroll.c +++ b/graphics/nxterm/nxterm_scroll.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/graphics/nxterm/nxterm_sem.c b/graphics/nxterm/nxterm_sem.c index 9b1a70560f..eab1cda3ad 100644 --- a/graphics/nxterm/nxterm_sem.c +++ b/graphics/nxterm/nxterm_sem.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/graphics/vnc/server/vnc_fbdev.c b/graphics/vnc/server/vnc_fbdev.c index 6c21d16fe5..7cc4fe27f0 100644 --- a/graphics/vnc/server/vnc_fbdev.c +++ b/graphics/vnc/server/vnc_fbdev.c @@ -62,7 +62,6 @@ #include #include -#include #include #include diff --git a/graphics/vnc/server/vnc_server.c b/graphics/vnc/server/vnc_server.c index aaf6c98bff..e1f5c613a4 100644 --- a/graphics/vnc/server/vnc_server.c +++ b/graphics/vnc/server/vnc_server.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include @@ -68,7 +67,6 @@ #include #include -#include #include #include "vnc_server.h" diff --git a/graphics/vnc/server/vnc_server.h b/graphics/vnc/server/vnc_server.h index 3bf5216d67..8543af2b59 100644 --- a/graphics/vnc/server/vnc_server.h +++ b/graphics/vnc/server/vnc_server.h @@ -43,7 +43,6 @@ #include #include -#include #include #include @@ -53,6 +52,7 @@ #include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/graphics/vnc/server/vnc_updater.c b/graphics/vnc/server/vnc_updater.c index 7f06c9a80a..b80001c554 100644 --- a/graphics/vnc/server/vnc_updater.c +++ b/graphics/vnc/server/vnc_updater.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include @@ -64,8 +63,6 @@ #endif #include -#include - #include "vnc_server.h" /**************************************************************************** diff --git a/include/nuttx/analog/adc.h b/include/nuttx/analog/adc.h index c1eea3ea42..6f4f963217 100644 --- a/include/nuttx/analog/adc.h +++ b/include/nuttx/analog/adc.h @@ -54,8 +54,9 @@ #include #include #include -#include + #include +#include #include #include diff --git a/include/nuttx/analog/comp.h b/include/nuttx/analog/comp.h index 4b22da721f..7ae1213e2e 100644 --- a/include/nuttx/analog/comp.h +++ b/include/nuttx/analog/comp.h @@ -46,8 +46,9 @@ #include #include #include -#include + #include +#include #ifndef CONFIG_DEV_COMP_NPOLLWAITERS # define CONFIG_DEV_COMP_NPOLLWAITERS 2 diff --git a/include/nuttx/analog/dac.h b/include/nuttx/analog/dac.h index f51057aa18..deaf2dd110 100644 --- a/include/nuttx/analog/dac.h +++ b/include/nuttx/analog/dac.h @@ -53,9 +53,10 @@ #include #include #include -#include + #include #include +#include #include /**************************************************************************** diff --git a/include/nuttx/analog/opamp.h b/include/nuttx/analog/opamp.h index a0f3d55be0..da3575279d 100644 --- a/include/nuttx/analog/opamp.h +++ b/include/nuttx/analog/opamp.h @@ -46,8 +46,9 @@ #include #include #include -#include + #include +#include /************************************************************************************ * Public Types diff --git a/include/nuttx/audio/audio.h b/include/nuttx/audio/audio.h index f306cf2ea8..3f1c10310d 100644 --- a/include/nuttx/audio/audio.h +++ b/include/nuttx/audio/audio.h @@ -57,9 +57,10 @@ #include #include +#include #include + #include -#include #ifdef CONFIG_AUDIO diff --git a/include/nuttx/can/can.h b/include/nuttx/can/can.h index 165204d365..7c7bb5cc73 100644 --- a/include/nuttx/can/can.h +++ b/include/nuttx/can/can.h @@ -47,11 +47,11 @@ #include #include #include -#include #include #include #include +#include #ifdef CONFIG_CAN_TXREADY # include diff --git a/include/nuttx/drivers/rwbuffer.h b/include/nuttx/drivers/rwbuffer.h index eb2ced70fd..89f09e9c6d 100644 --- a/include/nuttx/drivers/rwbuffer.h +++ b/include/nuttx/drivers/rwbuffer.h @@ -44,7 +44,8 @@ #include #include -#include + +#include #include #if defined(CONFIG_DRVR_WRITEBUFFER) || defined(CONFIG_DRVR_READAHEAD) diff --git a/include/nuttx/mtd/hamming.h b/include/nuttx/mtd/hamming.h index 706cb125f1..e745e63990 100644 --- a/include/nuttx/mtd/hamming.h +++ b/include/nuttx/mtd/hamming.h @@ -50,7 +50,6 @@ #include #include -#include #include #include diff --git a/include/nuttx/mtd/nand.h b/include/nuttx/mtd/nand.h index ab3b73771f..fd769bb279 100644 --- a/include/nuttx/mtd/nand.h +++ b/include/nuttx/mtd/nand.h @@ -50,10 +50,10 @@ #include #include -#include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/include/nuttx/nx/nxmu.h b/include/nuttx/nx/nxmu.h index 7c37996c3f..df64573b69 100644 --- a/include/nuttx/nx/nxmu.h +++ b/include/nuttx/nx/nxmu.h @@ -45,7 +45,6 @@ #include #include #include -#include #include #include diff --git a/include/nuttx/power/battery_charger.h b/include/nuttx/power/battery_charger.h index e17618b293..c67b445e14 100644 --- a/include/nuttx/power/battery_charger.h +++ b/include/nuttx/power/battery_charger.h @@ -43,9 +43,9 @@ #include #include +#include #include -#include #ifdef CONFIG_BATTERY_CHARGER diff --git a/include/nuttx/power/battery_gauge.h b/include/nuttx/power/battery_gauge.h index d6bd280cf7..5088c05a45 100644 --- a/include/nuttx/power/battery_gauge.h +++ b/include/nuttx/power/battery_gauge.h @@ -43,9 +43,9 @@ #include #include +#include #include -#include #include #ifdef CONFIG_BATTERY_GAUGE diff --git a/include/nuttx/power/motor.h b/include/nuttx/power/motor.h index b64d6e517d..626817180c 100644 --- a/include/nuttx/power/motor.h +++ b/include/nuttx/power/motor.h @@ -59,6 +59,7 @@ #include #include +#include #ifdef CONFIG_DRIVERS_MOTOR diff --git a/include/nuttx/power/powerled.h b/include/nuttx/power/powerled.h index 3994cba31a..182b9afac1 100644 --- a/include/nuttx/power/powerled.h +++ b/include/nuttx/power/powerled.h @@ -53,6 +53,7 @@ #include #include +#include #ifdef CONFIG_DRIVERS_POWERLED diff --git a/include/nuttx/power/smps.h b/include/nuttx/power/smps.h index 3f54a51b0a..23aa2e81a7 100644 --- a/include/nuttx/power/smps.h +++ b/include/nuttx/power/smps.h @@ -61,6 +61,7 @@ #include #include +#include #ifdef CONFIG_DRIVERS_SMPS diff --git a/include/nuttx/serial/serial.h b/include/nuttx/serial/serial.h index 2549c3d99c..410bf379e2 100644 --- a/include/nuttx/serial/serial.h +++ b/include/nuttx/serial/serial.h @@ -45,13 +45,13 @@ #include #include #include -#include #include #ifdef CONFIG_SERIAL_TERMIOS # include #endif #include +#include /************************************************************************************ * Pre-processor Definitions diff --git a/include/nuttx/spi/spi_bitbang.h b/include/nuttx/spi/spi_bitbang.h index 15b761c1d1..25392b01c3 100644 --- a/include/nuttx/spi/spi_bitbang.h +++ b/include/nuttx/spi/spi_bitbang.h @@ -42,8 +42,7 @@ #include -#include - +#include #include #ifdef CONFIG_SPI_BITBANG diff --git a/include/nuttx/usb/usbhost_devaddr.h b/include/nuttx/usb/usbhost_devaddr.h index 20e6f6fb74..9909141431 100644 --- a/include/nuttx/usb/usbhost_devaddr.h +++ b/include/nuttx/usb/usbhost_devaddr.h @@ -50,7 +50,8 @@ #include #include -#include + +#include /**************************************************************************** * Pre-processor Definitions diff --git a/include/nuttx/wireless/cc1101.h b/include/nuttx/wireless/cc1101.h index 0a91aa3991..269fe8ffdd 100644 --- a/include/nuttx/wireless/cc1101.h +++ b/include/nuttx/wireless/cc1101.h @@ -45,9 +45,9 @@ #include #include #include -#include #include +#include #include /**************************************************************************** diff --git a/include/nuttx/wireless/ieee802154/ieee802154_radio.h b/include/nuttx/wireless/ieee802154/ieee802154_radio.h index 89051d8492..a9cbe3b500 100644 --- a/include/nuttx/wireless/ieee802154/ieee802154_radio.h +++ b/include/nuttx/wireless/ieee802154/ieee802154_radio.h @@ -46,7 +46,6 @@ #include #include -#include #include diff --git a/include/nuttx/wqueue.h b/include/nuttx/wqueue.h index 42d73f76fa..50d3d0bae8 100644 --- a/include/nuttx/wqueue.h +++ b/include/nuttx/wqueue.h @@ -45,7 +45,6 @@ #include #include -#include #include #include diff --git a/include/stdio.h b/include/stdio.h index cd8384bbda..3cc81ae7f7 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -46,7 +46,6 @@ #include #include #include -#include #include #include diff --git a/libs/libc/audio/lib_buffer.c b/libs/libc/audio/lib_buffer.c index bc551dc114..88fd735383 100644 --- a/libs/libc/audio/lib_buffer.c +++ b/libs/libc/audio/lib_buffer.c @@ -45,11 +45,9 @@ #include #include #include -#include #include #include -#include #include #include @@ -135,7 +133,7 @@ int apb_alloc(FAR struct audio_buf_desc_s *bufdesc) apb->session = bufdesc->session; #endif - nxsem_init(&apb->sem, 0, 1); + _SEM_INIT(&apb->sem, 0, 1); ret = sizeof(struct audio_buf_desc_s); } @@ -162,7 +160,7 @@ void apb_free(FAR struct ap_buffer_s *apb) if (refcount <= 1) { audinfo("Freeing %p\n", apb); - nxsem_destroy(&apb->sem); + _SEM_DESTROY(&apb->sem); lib_ufree(apb); } } diff --git a/libs/libc/misc/lib_filesem.c b/libs/libc/misc/lib_filesem.c index 247b7b3b04..25214b923a 100644 --- a/libs/libc/misc/lib_filesem.c +++ b/libs/libc/misc/lib_filesem.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/libs/libc/misc/lib_streamsem.c b/libs/libc/misc/lib_streamsem.c index 11f0f6fab4..3b2348283b 100644 --- a/libs/libc/misc/lib_streamsem.c +++ b/libs/libc/misc/lib_streamsem.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/libs/libc/modlib/modlib_registry.c b/libs/libc/modlib/modlib_registry.c index 384e3e3cf9..d97ec38f76 100644 --- a/libs/libc/modlib/modlib_registry.c +++ b/libs/libc/modlib/modlib_registry.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/libs/libc/netdb/lib_dnsinit.c b/libs/libc/netdb/lib_dnsinit.c index 4ff968931f..5e1ebbf0eb 100644 --- a/libs/libc/netdb/lib_dnsinit.c +++ b/libs/libc/netdb/lib_dnsinit.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/libs/libc/pthread/pthread_condinit.c b/libs/libc/pthread/pthread_condinit.c index 896c5b53fe..b01e782977 100644 --- a/libs/libc/pthread/pthread_condinit.c +++ b/libs/libc/pthread/pthread_condinit.c @@ -44,8 +44,6 @@ #include #include -#include - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/libs/libc/pthread/pthread_rwlock.c b/libs/libc/pthread/pthread_rwlock.c index 11388b3544..d9e915bc59 100644 --- a/libs/libc/pthread/pthread_rwlock.c +++ b/libs/libc/pthread/pthread_rwlock.c @@ -44,8 +44,6 @@ #include #include -#include - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/libs/libc/pthread/pthread_rwlock_rdlock.c b/libs/libc/pthread/pthread_rwlock_rdlock.c index 20553b6959..48fe5c6590 100644 --- a/libs/libc/pthread/pthread_rwlock_rdlock.c +++ b/libs/libc/pthread/pthread_rwlock_rdlock.c @@ -44,8 +44,6 @@ #include #include -#include - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/libs/libc/pthread/pthread_rwlock_wrlock.c b/libs/libc/pthread/pthread_rwlock_wrlock.c index e5c65f9190..520ded49db 100644 --- a/libs/libc/pthread/pthread_rwlock_wrlock.c +++ b/libs/libc/pthread/pthread_rwlock_wrlock.c @@ -44,8 +44,6 @@ #include #include -#include - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/libs/libc/semaphore/sem_getvalue.c b/libs/libc/semaphore/sem_getvalue.c index 3f83405593..41503a33a9 100644 --- a/libs/libc/semaphore/sem_getvalue.c +++ b/libs/libc/semaphore/sem_getvalue.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/libs/libc/semaphore/sem_init.c b/libs/libc/semaphore/sem_init.c index 786f1f7bce..a5c916ec0a 100644 --- a/libs/libc/semaphore/sem_init.c +++ b/libs/libc/semaphore/sem_init.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/libs/libc/stdio/lib_vfprintf.c b/libs/libc/stdio/lib_vfprintf.c index 9f4063a2d2..a014d36c60 100644 --- a/libs/libc/stdio/lib_vfprintf.c +++ b/libs/libc/stdio/lib_vfprintf.c @@ -40,7 +40,6 @@ #include #include -#include #include "libc.h" diff --git a/libs/libc/stdio/lib_vfscanf.c b/libs/libc/stdio/lib_vfscanf.c index 044632db4d..d07b23d5b6 100644 --- a/libs/libc/stdio/lib_vfscanf.c +++ b/libs/libc/stdio/lib_vfscanf.c @@ -40,7 +40,6 @@ #include #include -#include #include diff --git a/libs/libc/stdio/lib_vsscanf.c b/libs/libc/stdio/lib_vsscanf.c index 298ea13b72..979a019090 100644 --- a/libs/libc/stdio/lib_vsscanf.c +++ b/libs/libc/stdio/lib_vsscanf.c @@ -40,7 +40,6 @@ #include #include -#include #include diff --git a/libs/libc/stdlib/lib_mkstemp.c b/libs/libc/stdlib/lib_mkstemp.c index 2d1c198219..83696e96c0 100644 --- a/libs/libc/stdlib/lib_mkstemp.c +++ b/libs/libc/stdlib/lib_mkstemp.c @@ -45,7 +45,6 @@ #include #include #include -#include #include #include diff --git a/libs/libc/userfs/lib_userfs.c b/libs/libc/userfs/lib_userfs.c index b6041b03b5..2800220891 100644 --- a/libs/libc/userfs/lib_userfs.c +++ b/libs/libc/userfs/lib_userfs.c @@ -47,7 +47,6 @@ #include #include #include -#include #include #include @@ -55,6 +54,7 @@ #include #include +#include /**************************************************************************** * Private Types @@ -97,7 +97,7 @@ static inline uint16_t userfs_server_portno(void) { int ret; - ret = nxsem_wait(&g_userfs_exclsem); + ret = _SEM_WAIT(&g_userfs_exclsem); if (ret >= 0) { /* Get the next instance number. @@ -108,7 +108,7 @@ static inline uint16_t userfs_server_portno(void) */ ret = USERFS_SERVER_PORTBASE | g_userfs_next_instance++; - nxsem_post(&g_userfs_exclsem); + _SEM_POST(&g_userfs_exclsem); } return ret; diff --git a/libs/libc/wqueue/work_lock.c b/libs/libc/wqueue/work_lock.c index ef10e15972..90612f2a98 100644 --- a/libs/libc/wqueue/work_lock.c +++ b/libs/libc/wqueue/work_lock.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/libs/libnx/nxcontext.h b/libs/libnx/nxcontext.h index d482725328..910c9cc54c 100644 --- a/libs/libnx/nxcontext.h +++ b/libs/libnx/nxcontext.h @@ -46,7 +46,6 @@ #include #include #include -#include #include diff --git a/libs/libnx/nxfonts/nxfonts_cache.c b/libs/libnx/nxfonts/nxfonts_cache.c index bca20ef883..c23c5814c6 100644 --- a/libs/libnx/nxfonts/nxfonts_cache.c +++ b/libs/libnx/nxfonts/nxfonts_cache.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include @@ -755,7 +754,7 @@ FCACHE nxf_cache_connect(enum nx_fontid_e fontid, /* Initialize the mutual exclusion semaphore */ - nxsem_init(&priv->fsem, 0, 1); + _SEM_INIT(&priv->fsem, 0, 1); /* Add the new font cache to the list of font caches */ diff --git a/libs/libnx/nxmu/nx_connect.c b/libs/libnx/nxmu/nx_connect.c index 210b6baccb..018410d7ef 100644 --- a/libs/libnx/nxmu/nx_connect.c +++ b/libs/libnx/nxmu/nx_connect.c @@ -43,13 +43,11 @@ #include #include #include -#include #include #include #include #include -#include #include #include diff --git a/libs/libnx/nxmu/nx_getrectangle.c b/libs/libnx/nxmu/nx_getrectangle.c index cc92506207..2eb2c41eaf 100644 --- a/libs/libnx/nxmu/nx_getrectangle.c +++ b/libs/libnx/nxmu/nx_getrectangle.c @@ -116,7 +116,7 @@ int nx_getrectangle(NXWINDOW hwnd, FAR const struct nxgl_rect_s *rect, * priority inheritance enabled. */ - nxsem_setprotocol(&sem_done, SEM_PRIO_NONE); + _SEM_SETPROTOCOL(&sem_done, SEM_PRIO_NONE); /* Forward the fill command to the server */ diff --git a/libs/libnx/nxmu/nxmu_semtake.c b/libs/libnx/nxmu/nxmu_semtake.c index b2126a8466..c9a523e052 100644 --- a/libs/libnx/nxmu/nxmu_semtake.c +++ b/libs/libnx/nxmu/nxmu_semtake.c @@ -44,7 +44,6 @@ #include #include -#include #include #include diff --git a/libs/libnx/nxtk/nxtk_events.c b/libs/libnx/nxtk/nxtk_events.c index 89aaa2ecb3..78bb6d70dc 100644 --- a/libs/libnx/nxtk/nxtk_events.c +++ b/libs/libnx/nxtk/nxtk_events.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/libs/libnx/nxtk/nxtk_setsubwindows.c b/libs/libnx/nxtk/nxtk_setsubwindows.c index 698fc6371d..1f2cc697e4 100644 --- a/libs/libnx/nxtk/nxtk_setsubwindows.c +++ b/libs/libnx/nxtk/nxtk_setsubwindows.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/mm/iob/iob.h b/mm/iob/iob.h index 9604ba86d1..dbbfec49e4 100644 --- a/mm/iob/iob.h +++ b/mm/iob/iob.h @@ -42,10 +42,10 @@ #include -#include #include #include +#include #ifdef CONFIG_MM_IOB diff --git a/mm/iob/iob_alloc.c b/mm/iob/iob_alloc.c index 3aa995ff48..942ae27502 100644 --- a/mm/iob/iob_alloc.c +++ b/mm/iob/iob_alloc.c @@ -39,7 +39,6 @@ #include -#include #include #include diff --git a/mm/iob/iob_alloc_qentry.c b/mm/iob/iob_alloc_qentry.c index 1c969289cc..699040eaf1 100644 --- a/mm/iob/iob_alloc_qentry.c +++ b/mm/iob/iob_alloc_qentry.c @@ -39,7 +39,6 @@ #include -#include #include #include diff --git a/mm/iob/iob_free.c b/mm/iob/iob_free.c index fdee7cfaa6..6e78392843 100644 --- a/mm/iob/iob_free.c +++ b/mm/iob/iob_free.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/mm/iob/iob_free_qentry.c b/mm/iob/iob_free_qentry.c index e08daeeb94..fc6de92329 100644 --- a/mm/iob/iob_free_qentry.c +++ b/mm/iob/iob_free_qentry.c @@ -39,7 +39,6 @@ #include -#include #include #include diff --git a/mm/iob/iob_initialize.c b/mm/iob/iob_initialize.c index f0d54fa736..4837635f8b 100644 --- a/mm/iob/iob_initialize.c +++ b/mm/iob/iob_initialize.c @@ -41,7 +41,6 @@ #include -#include #include #include "iob.h" diff --git a/mm/iob/iob_navail.c b/mm/iob/iob_navail.c index 7592613134..e6104840b3 100644 --- a/mm/iob/iob_navail.c +++ b/mm/iob/iob_navail.c @@ -41,7 +41,6 @@ #include -#include #include #include "iob.h" diff --git a/mm/mm_gran/mm_gran.h b/mm/mm_gran/mm_gran.h index a252e6aff1..154ba104b6 100644 --- a/mm/mm_gran/mm_gran.h +++ b/mm/mm_gran/mm_gran.h @@ -43,10 +43,10 @@ #include #include -#include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/mm/mm_gran/mm_grancritical.c b/mm/mm_gran/mm_grancritical.c index 8dc9648ce1..0f5a4b7b0e 100644 --- a/mm/mm_gran/mm_grancritical.c +++ b/mm/mm_gran/mm_grancritical.c @@ -43,7 +43,6 @@ #include #include -#include #include #include diff --git a/mm/mm_heap/mm_sem.c b/mm/mm_heap/mm_sem.c index 4f6d1d9af4..1b8f77289c 100644 --- a/mm/mm_heap/mm_sem.c +++ b/mm/mm_heap/mm_sem.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/mm/shm/shm.h b/mm/shm/shm.h index 4bd3bf3179..2a87e469d9 100644 --- a/mm/shm/shm.h +++ b/mm/shm/shm.h @@ -45,9 +45,9 @@ #include #include #include -#include #include +#include #ifdef CONFIG_MM_SHM diff --git a/mm/shm/shmctl.c b/mm/shm/shmctl.c index 34e4dfeeff..9fc71d8023 100644 --- a/mm/shm/shmctl.c +++ b/mm/shm/shmctl.c @@ -43,7 +43,6 @@ #include #include #include -#include #include #include #include diff --git a/mm/shm/shmget.c b/mm/shm/shmget.c index 1fc1c10865..467d1e6bc2 100644 --- a/mm/shm/shmget.c +++ b/mm/shm/shmget.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/net/arp/arp.h b/net/arp/arp.h index 3214b36b0e..93900988dd 100644 --- a/net/arp/arp.h +++ b/net/arp/arp.h @@ -53,13 +53,13 @@ #include #include -#include #include #include #include #include +#include /**************************************************************************** * Pre-processor Definitions diff --git a/net/arp/arp_notify.c b/net/arp/arp_notify.c index 4176b9c6f9..4cbd2b0422 100644 --- a/net/arp/arp_notify.c +++ b/net/arp/arp_notify.c @@ -39,7 +39,6 @@ #include -#include #include #include #include @@ -47,7 +46,6 @@ #include #include -#include #include #include "arp/arp.h" diff --git a/net/arp/arp_send.c b/net/arp/arp_send.c index f3696efde1..c52c38ac8c 100644 --- a/net/arp/arp_send.c +++ b/net/arp/arp_send.c @@ -41,13 +41,11 @@ #include #include -#include #include #include #include -#include #include #include #include diff --git a/net/bluetooth/bluetooth_conn.c b/net/bluetooth/bluetooth_conn.c index 372cdbb9a8..bef7fbf0f7 100644 --- a/net/bluetooth/bluetooth_conn.c +++ b/net/bluetooth/bluetooth_conn.c @@ -37,7 +37,6 @@ #include -#include #include #include #include diff --git a/net/bluetooth/bluetooth_container.c b/net/bluetooth/bluetooth_container.c index ff78734a07..a4a81f11ad 100644 --- a/net/bluetooth/bluetooth_container.c +++ b/net/bluetooth/bluetooth_container.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/net/icmp/icmp_sendto.c b/net/icmp/icmp_sendto.c index 5cf638e1ff..f11dd6e383 100644 --- a/net/icmp/icmp_sendto.c +++ b/net/icmp/icmp_sendto.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/net/icmpv6/icmpv6.h b/net/icmpv6/icmpv6.h index c82b53d29e..a0cdf47403 100644 --- a/net/icmpv6/icmpv6.h +++ b/net/icmpv6/icmpv6.h @@ -44,13 +44,13 @@ #include #include -#include #include #include #include #include #include +#include #if defined(CONFIG_NET_ICMPv6) && !defined(CONFIG_NET_ICMPv6_NO_STACK) diff --git a/net/icmpv6/icmpv6_neighbor.c b/net/icmpv6/icmpv6_neighbor.c index 359fa1d8cc..a57d7a1754 100644 --- a/net/icmpv6/icmpv6_neighbor.c +++ b/net/icmpv6/icmpv6_neighbor.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/net/icmpv6/icmpv6_notify.c b/net/icmpv6/icmpv6_notify.c index f883a35906..a394a0647d 100644 --- a/net/icmpv6/icmpv6_notify.c +++ b/net/icmpv6/icmpv6_notify.c @@ -40,14 +40,12 @@ #include #include -#include #include #include #include #include -#include #include #include "icmpv6/icmpv6.h" diff --git a/net/icmpv6/icmpv6_poll.c b/net/icmpv6/icmpv6_poll.c index f50fd6af57..9c21be8cdc 100644 --- a/net/icmpv6/icmpv6_poll.c +++ b/net/icmpv6/icmpv6_poll.c @@ -40,7 +40,6 @@ #include #if defined(CONFIG_NET_ICMPv6_SOCKET) || defined(CONFIG_NET_ICMPv6_NEIGHBOR) -#include #include #include diff --git a/net/icmpv6/icmpv6_rnotify.c b/net/icmpv6/icmpv6_rnotify.c index d6ff6fa910..e69be2a060 100644 --- a/net/icmpv6/icmpv6_rnotify.c +++ b/net/icmpv6/icmpv6_rnotify.c @@ -40,14 +40,12 @@ #include #include -#include #include #include #include #include -#include #include #include diff --git a/net/icmpv6/icmpv6_sendto.c b/net/icmpv6/icmpv6_sendto.c index 2d17a988c4..02ea696d07 100644 --- a/net/icmpv6/icmpv6_sendto.c +++ b/net/icmpv6/icmpv6_sendto.c @@ -44,7 +44,6 @@ #include #include #include -#include #include #include diff --git a/net/ieee802154/ieee802154_conn.c b/net/ieee802154/ieee802154_conn.c index 4ae52f505f..0d28bf8aa9 100644 --- a/net/ieee802154/ieee802154_conn.c +++ b/net/ieee802154/ieee802154_conn.c @@ -37,7 +37,6 @@ #include -#include #include #include #include diff --git a/net/ieee802154/ieee802154_container.c b/net/ieee802154/ieee802154_container.c index a3b069d57b..ad8b9b83fd 100644 --- a/net/ieee802154/ieee802154_container.c +++ b/net/ieee802154/ieee802154_container.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/net/local/local.h b/net/local/local.h index 4eb0aaa5c6..426602e2bc 100644 --- a/net/local/local.h +++ b/net/local/local.h @@ -46,13 +46,13 @@ #include #include #include -#include #include #include #include #include #include +#include #ifdef CONFIG_NET_LOCAL diff --git a/net/local/local_accept.c b/net/local/local_accept.c index e847f1c5f9..8f03700f38 100644 --- a/net/local/local_accept.c +++ b/net/local/local_accept.c @@ -46,7 +46,6 @@ #include #include -#include #include #include "socket/socket.h" diff --git a/net/local/local_conn.c b/net/local/local_conn.c index 918835d3ac..d4c506d4cc 100644 --- a/net/local/local_conn.c +++ b/net/local/local_conn.c @@ -40,7 +40,6 @@ #include #if defined(CONFIG_NET) && defined(CONFIG_NET_LOCAL) -#include #include #include #include @@ -48,7 +47,6 @@ #include #include -#include #include "local/local.h" diff --git a/net/local/local_connect.c b/net/local/local_connect.c index 5df1700780..1ad4c298ed 100644 --- a/net/local/local_connect.c +++ b/net/local/local_connect.c @@ -46,7 +46,6 @@ #include #include -#include #include #include diff --git a/net/local/local_release.c b/net/local/local_release.c index 425c9e1911..4190f97b5a 100644 --- a/net/local/local_release.c +++ b/net/local/local_release.c @@ -40,12 +40,10 @@ #include #if defined(CONFIG_NET) && defined(CONFIG_NET_LOCAL) -#include #include #include #include -#include #include #include diff --git a/net/mld/mld.h b/net/mld/mld.h index e43f1245ad..36ec3930f1 100644 --- a/net/mld/mld.h +++ b/net/mld/mld.h @@ -108,9 +108,9 @@ #include #include -#include #include +#include #include #include diff --git a/net/mld/mld_group.c b/net/mld/mld_group.c index f1c0f34a23..364fd152b6 100644 --- a/net/mld/mld_group.c +++ b/net/mld/mld_group.c @@ -49,7 +49,6 @@ #include #include #include -#include #include #include #include diff --git a/net/mld/mld_poll.c b/net/mld/mld_poll.c index e9caf7d2ca..bc04cc23a4 100644 --- a/net/mld/mld_poll.c +++ b/net/mld/mld_poll.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include diff --git a/net/netdev/netdev_carrier.c b/net/netdev/netdev_carrier.c index 771352a299..ffccd8a1f4 100644 --- a/net/netdev/netdev_carrier.c +++ b/net/netdev/netdev_carrier.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/net/netdev/netdev_register.c b/net/netdev/netdev_register.c index ec1d227783..3b00ee60eb 100644 --- a/net/netdev/netdev_register.c +++ b/net/netdev/netdev_register.c @@ -42,7 +42,6 @@ #include #include -#include #include #include #include diff --git a/net/netdev/netdev_unregister.c b/net/netdev/netdev_unregister.c index aeb43dc733..7830135b78 100644 --- a/net/netdev/netdev_unregister.c +++ b/net/netdev/netdev_unregister.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/net/netlink/netlink.h b/net/netlink/netlink.h index 9232f8781f..f7012c130f 100644 --- a/net/netlink/netlink.h +++ b/net/netlink/netlink.h @@ -44,11 +44,11 @@ #include #include -#include #include #include #include +#include #include "devif/devif.h" #include "socket/socket.h" diff --git a/net/route/net_cacheroute.c b/net/route/net_cacheroute.c index 96d5ad4840..5e97871344 100644 --- a/net/route/net_cacheroute.c +++ b/net/route/net_cacheroute.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include diff --git a/net/route/net_fileroute.c b/net/route/net_fileroute.c index 13ce42a27a..40b91de76a 100644 --- a/net/route/net_fileroute.c +++ b/net/route/net_fileroute.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include #include diff --git a/net/sixlowpan/sixlowpan_reassbuf.c b/net/sixlowpan/sixlowpan_reassbuf.c index 4e124e0fe3..7cd36abf02 100644 --- a/net/sixlowpan/sixlowpan_reassbuf.c +++ b/net/sixlowpan/sixlowpan_reassbuf.c @@ -42,7 +42,6 @@ #include #include #include -#include #include #include diff --git a/net/sixlowpan/sixlowpan_send.c b/net/sixlowpan/sixlowpan_send.c index fe9b102793..ad9528aec6 100644 --- a/net/sixlowpan/sixlowpan_send.c +++ b/net/sixlowpan/sixlowpan_send.c @@ -39,7 +39,6 @@ #include -#include #include #include #include diff --git a/net/sixlowpan/sixlowpan_tcpsend.c b/net/sixlowpan/sixlowpan_tcpsend.c index dc7b51cfad..a7ff900a31 100644 --- a/net/sixlowpan/sixlowpan_tcpsend.c +++ b/net/sixlowpan/sixlowpan_tcpsend.c @@ -44,10 +44,10 @@ #include #include -#include "nuttx/semaphore.h" -#include "nuttx/net/netdev.h" -#include "nuttx/net/radiodev.h" -#include "nuttx/net/netstats.h" +#include +#include +#include +#include #include "netdev/netdev.h" #include "devif/devif.h" diff --git a/net/tcp/tcp_accept.c b/net/tcp/tcp_accept.c index 1b74d8e71e..94a9b90c3a 100644 --- a/net/tcp/tcp_accept.c +++ b/net/tcp/tcp_accept.c @@ -43,7 +43,6 @@ #include #include -#include #include #include #include diff --git a/net/tcp/tcp_sendfile.c b/net/tcp/tcp_sendfile.c index d5cbba0b1f..cba883f1a8 100644 --- a/net/tcp/tcp_sendfile.c +++ b/net/tcp/tcp_sendfile.c @@ -582,7 +582,7 @@ errout_datacb: errout_locked: - nxsem_destroy(&state. snd_sem); + nxsem_destroy(&state.snd_sem); net_unlock(); if (ret < 0) diff --git a/net/tcp/tcp_txdrain.c b/net/tcp/tcp_txdrain.c index 3c90470c50..d5ff3b2adb 100644 --- a/net/tcp/tcp_txdrain.c +++ b/net/tcp/tcp_txdrain.c @@ -40,11 +40,12 @@ #include #include -#include #include #include #include +#include + #include "tcp/tcp.h" #if defined(CONFIG_NET_TCP_WRITE_BUFFERS) && defined(CONFIG_NET_TCP_NOTIFIER) diff --git a/net/udp/udp_txdrain.c b/net/udp/udp_txdrain.c index 162935b305..d425397dfb 100644 --- a/net/udp/udp_txdrain.c +++ b/net/udp/udp_txdrain.c @@ -40,11 +40,12 @@ #include #include -#include #include #include #include +#include + #include "udp/udp.h" #if defined(CONFIG_NET_UDP_WRITE_BUFFERS) && defined(CONFIG_NET_UDP_NOTIFIER) diff --git a/net/usrsock/usrsock.h b/net/usrsock/usrsock.h index 1bacb9c138..d480db2a89 100644 --- a/net/usrsock/usrsock.h +++ b/net/usrsock/usrsock.h @@ -47,7 +47,8 @@ #include #include #include -#include + +#include #include "devif/devif.h" #include "socket/socket.h" diff --git a/net/usrsock/usrsock_accept.c b/net/usrsock/usrsock_accept.c index 707ae8a3e0..38357ee777 100644 --- a/net/usrsock/usrsock_accept.c +++ b/net/usrsock/usrsock_accept.c @@ -44,7 +44,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_bind.c b/net/usrsock/usrsock_bind.c index fad6fe398d..e9d508f311 100644 --- a/net/usrsock/usrsock_bind.c +++ b/net/usrsock/usrsock_bind.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_close.c b/net/usrsock/usrsock_close.c index 651174c5d4..15e5188983 100644 --- a/net/usrsock/usrsock_close.c +++ b/net/usrsock/usrsock_close.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_connect.c b/net/usrsock/usrsock_connect.c index 7ebd904409..4197f412e6 100644 --- a/net/usrsock/usrsock_connect.c +++ b/net/usrsock/usrsock_connect.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_event.c b/net/usrsock/usrsock_event.c index f05df9e814..62f307c966 100644 --- a/net/usrsock/usrsock_event.c +++ b/net/usrsock/usrsock_event.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_getpeername.c b/net/usrsock/usrsock_getpeername.c index 3518d16625..2b884d0d6f 100644 --- a/net/usrsock/usrsock_getpeername.c +++ b/net/usrsock/usrsock_getpeername.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_getsockname.c b/net/usrsock/usrsock_getsockname.c index 47931b0d33..ce2b44e8e8 100644 --- a/net/usrsock/usrsock_getsockname.c +++ b/net/usrsock/usrsock_getsockname.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_getsockopt.c b/net/usrsock/usrsock_getsockopt.c index cc91165061..e8b4d9cda5 100644 --- a/net/usrsock/usrsock_getsockopt.c +++ b/net/usrsock/usrsock_getsockopt.c @@ -50,7 +50,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_ioctl.c b/net/usrsock/usrsock_ioctl.c index 4f5b225aee..f881ed6a1d 100644 --- a/net/usrsock/usrsock_ioctl.c +++ b/net/usrsock/usrsock_ioctl.c @@ -47,7 +47,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_listen.c b/net/usrsock/usrsock_listen.c index d1e5b5daf2..30945885c3 100644 --- a/net/usrsock/usrsock_listen.c +++ b/net/usrsock/usrsock_listen.c @@ -44,7 +44,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_recvfrom.c b/net/usrsock/usrsock_recvfrom.c index 1b3e353e2e..2f12f10ac4 100644 --- a/net/usrsock/usrsock_recvfrom.c +++ b/net/usrsock/usrsock_recvfrom.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_sendto.c b/net/usrsock/usrsock_sendto.c index 3906cf555f..ed302a823a 100644 --- a/net/usrsock/usrsock_sendto.c +++ b/net/usrsock/usrsock_sendto.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_setsockopt.c b/net/usrsock/usrsock_setsockopt.c index a1db18e4ba..ef36fcbf5d 100644 --- a/net/usrsock/usrsock_setsockopt.c +++ b/net/usrsock/usrsock_setsockopt.c @@ -50,7 +50,6 @@ #include #include -#include #include #include diff --git a/net/usrsock/usrsock_socket.c b/net/usrsock/usrsock_socket.c index a515a647f7..dec3961a6b 100644 --- a/net/usrsock/usrsock_socket.c +++ b/net/usrsock/usrsock_socket.c @@ -49,7 +49,6 @@ #include #include -#include #include #include diff --git a/sched/pthread/pthread_initialize.c b/sched/pthread/pthread_initialize.c index 83bf7cb2b9..92f94b42f6 100644 --- a/sched/pthread/pthread_initialize.c +++ b/sched/pthread/pthread_initialize.c @@ -42,7 +42,6 @@ #include #include -#include #include #include diff --git a/sched/pthread/pthread_mutexdestroy.c b/sched/pthread/pthread_mutexdestroy.c index f5112a6a99..bbf21f2e35 100644 --- a/sched/pthread/pthread_mutexdestroy.c +++ b/sched/pthread/pthread_mutexdestroy.c @@ -40,7 +40,6 @@ #include #include -#include #include #include #include diff --git a/sched/pthread/pthread_mutextrylock.c b/sched/pthread/pthread_mutextrylock.c index 88c57d7d12..dab0c107a3 100644 --- a/sched/pthread/pthread_mutextrylock.c +++ b/sched/pthread/pthread_mutextrylock.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include diff --git a/sched/sched/sched_waitpid.c b/sched/sched/sched_waitpid.c index 13dcfc24f1..77718f1b5b 100644 --- a/sched/sched/sched_waitpid.c +++ b/sched/sched/sched_waitpid.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/sched/semaphore/sem_destroy.c b/sched/semaphore/sem_destroy.c index 0541d990e2..e24282ddc2 100644 --- a/sched/semaphore/sem_destroy.c +++ b/sched/semaphore/sem_destroy.c @@ -39,7 +39,6 @@ #include -#include #include #include "semaphore/semaphore.h" diff --git a/sched/semaphore/sem_holder.c b/sched/semaphore/sem_holder.c index 49ef51804e..78454091ac 100644 --- a/sched/semaphore/sem_holder.c +++ b/sched/semaphore/sem_holder.c @@ -40,7 +40,6 @@ #include -#include #include #include #include diff --git a/sched/semaphore/sem_post.c b/sched/semaphore/sem_post.c index 2bb22379ed..63d666939f 100644 --- a/sched/semaphore/sem_post.c +++ b/sched/semaphore/sem_post.c @@ -41,7 +41,6 @@ #include #include -#include #include #include diff --git a/sched/semaphore/sem_reset.c b/sched/semaphore/sem_reset.c index 052f901e51..1bcfc02be9 100644 --- a/sched/semaphore/sem_reset.c +++ b/sched/semaphore/sem_reset.c @@ -39,7 +39,6 @@ #include -#include #include #include diff --git a/sched/semaphore/sem_setprotocol.c b/sched/semaphore/sem_setprotocol.c index 0841d523ea..b999e2c639 100644 --- a/sched/semaphore/sem_setprotocol.c +++ b/sched/semaphore/sem_setprotocol.c @@ -42,8 +42,6 @@ #include #include -#include - #include "semaphore/semaphore.h" #ifdef CONFIG_PRIORITY_INHERITANCE diff --git a/sched/semaphore/sem_tickwait.c b/sched/semaphore/sem_tickwait.c index f134424d38..dacb564460 100644 --- a/sched/semaphore/sem_tickwait.c +++ b/sched/semaphore/sem_tickwait.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include @@ -50,7 +49,6 @@ #include #include #include -#include #include "sched/sched.h" #include "semaphore/semaphore.h" diff --git a/sched/semaphore/sem_timedwait.c b/sched/semaphore/sem_timedwait.c index 5455a208da..782738954e 100644 --- a/sched/semaphore/sem_timedwait.c +++ b/sched/semaphore/sem_timedwait.c @@ -41,7 +41,6 @@ #include #include -#include #include #include #include @@ -50,7 +49,6 @@ #include #include #include -#include #include "sched/sched.h" #include "clock/clock.h" diff --git a/sched/semaphore/sem_trywait.c b/sched/semaphore/sem_trywait.c index 8e7389e8e0..8de1526795 100644 --- a/sched/semaphore/sem_trywait.c +++ b/sched/semaphore/sem_trywait.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/sched/semaphore/sem_wait.c b/sched/semaphore/sem_wait.c index 59244abae5..b67249a06f 100644 --- a/sched/semaphore/sem_wait.c +++ b/sched/semaphore/sem_wait.c @@ -40,7 +40,6 @@ #include #include -#include #include #include diff --git a/sched/semaphore/semaphore.h b/sched/semaphore/semaphore.h index 72f7abb0a5..7008db8c66 100644 --- a/sched/semaphore/semaphore.h +++ b/sched/semaphore/semaphore.h @@ -42,10 +42,10 @@ #include #include +#include #include #include -#include #include #include diff --git a/sched/signal/sig_deliver.c b/sched/signal/sig_deliver.c index 17057cda20..7eadc3279b 100644 --- a/sched/signal/sig_deliver.c +++ b/sched/signal/sig_deliver.c @@ -50,7 +50,6 @@ #include #include -#include "semaphore/semaphore.h" #include "signal/signal.h" /**************************************************************************** diff --git a/sched/task/task_spawnparms.c b/sched/task/task_spawnparms.c index aa3ab13644..78293b2008 100644 --- a/sched/task/task_spawnparms.c +++ b/sched/task/task_spawnparms.c @@ -39,11 +39,11 @@ #include -#include #include #include #include +#include #include #include #include diff --git a/sched/wqueue/kwork_notifier.c b/sched/wqueue/kwork_notifier.c index 0eff25713f..d43b2e3645 100644 --- a/sched/wqueue/kwork_notifier.c +++ b/sched/wqueue/kwork_notifier.c @@ -197,7 +197,7 @@ static void work_notifier_worker(FAR void *arg) /* Put the notification to the free list */ - while (nxsem_wait(&g_notifier_sem) < 0); + nxsem_wait_uninterruptible(&g_notifier_sem); dq_addlast((FAR dq_entry_t *)notifier, &g_notifier_free); nxsem_post(&g_notifier_sem); } diff --git a/wireless/bluetooth/bt_hcicore.c b/wireless/bluetooth/bt_hcicore.c index 98301ee1c1..60e1202b7f 100644 --- a/wireless/bluetooth/bt_hcicore.c +++ b/wireless/bluetooth/bt_hcicore.c @@ -56,7 +56,6 @@ #include #include -#include #include #include #include diff --git a/wireless/bluetooth/bt_hcicore.h b/wireless/bluetooth/bt_hcicore.h index 437bb5c6d8..2b91785793 100644 --- a/wireless/bluetooth/bt_hcicore.h +++ b/wireless/bluetooth/bt_hcicore.h @@ -49,9 +49,9 @@ #include #include -#include #include +#include #include /**************************************************************************** diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index 9e42343153..46cd2560bf 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -52,7 +52,6 @@ #include #include -#include #include diff --git a/wireless/pktradio/pktradio_metadata.c b/wireless/pktradio/pktradio_metadata.c index 38cb53efe7..c5ee5fc416 100644 --- a/wireless/pktradio/pktradio_metadata.c +++ b/wireless/pktradio/pktradio_metadata.c @@ -42,12 +42,12 @@ #include #include #include -#include #include #include #include #include +#include #include