Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type mismatch and printf format fixes #2312

Merged
merged 90 commits into from
Nov 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
aea3784
arch/arm/src/sam34/sam_udp.c: Replace non-ascii characters in comments
yamt Nov 13, 2020
190730d
arch/xtensa/src/esp32/esp32_wifi_adapter.c: Fix a printf format
yamt Nov 5, 2020
7ea3e70
arch/xtensa/src/esp32/esp32_wifi_adapter.c: Fix a type mismatch
yamt Nov 5, 2020
2a48cbd
fs/procfs/fs_procfsuptime.c: Fix a printf format
yamt Nov 5, 2020
921ec40
libs/libc/time/lib_strftime.c: Fix a printf format warning
yamt Nov 9, 2020
4150438
libs/libc/uuid/lib_uuid_to_string.c: Fix a printf format warning
yamt Nov 9, 2020
097e818
arch/arm/src/efm32/efm32_leserial.c: Fix a type mismatch
yamt Nov 9, 2020
110edb2
arch/arm/src/imx6/imx_serial.c: Fix a type mismatch
yamt Nov 9, 2020
5267a93
fs/procfs/fs_procfsproc.c: Fix a printf format warning
yamt Nov 9, 2020
2f61006
arch/arm/src/dm320/dm320_serial.c: Fix a type mismatch
yamt Nov 9, 2020
889d0ce
arch/arm/src/a1x/a1x_serial.c: Fix a type mismatch
yamt Nov 9, 2020
2974b7c
arch/risc-v/src/nr5m100/nr5_serial.c: Fix a type mismatch
yamt Nov 9, 2020
ca6835c
arch/risc-v/src/litex/litex_serial.c: Fix a type mismatch
yamt Nov 9, 2020
7290068
arch/risc-v/src/k210/k210_serial.c: Fix a type mismatch
yamt Nov 9, 2020
e52082b
arch/risc-v/src/fe310/fe310_serial.c: Fix a type mismatch
yamt Nov 9, 2020
96e05fd
arch/risc-v/src/gap8/gap8_uart.c: Fix a type mismatch
yamt Nov 9, 2020
42ca26e
arch/renesas/src/sh1/sh1_serial.c: Fix a type mismatch
yamt Nov 10, 2020
05652a3
arch/renesas/src/rx65n/rx65n_serial.c: Fix a type mismatch
yamt Nov 10, 2020
80dfe72
arch/arm/src/nuc1xx/nuc_serial.c: Fix a type mismatch
yamt Nov 10, 2020
bb0dcda
arch/mips/src/pic32mz/pic32mz_serial.c: Fix a type mismatch
yamt Nov 10, 2020
fc31d84
arch/avr/src/at32uc3/at32uc3_serial.c: Fix a type mismatch
yamt Nov 10, 2020
2e24f1f
arch/arm/src/lpc43xx/lpc43_serial.c: Fix a type mismatch
yamt Nov 10, 2020
2bb6aab
arch/arm/src/lpc31xx/lpc31_serial.c: Fix a type mismatch
yamt Nov 10, 2020
90a7521
arch/mips/src/pic32mx/pic32mx_serial.c: Fix a type mismatch
yamt Nov 10, 2020
e19c4ec
arch/hc/src/m9s12/m9s12_serial.c: Fix a type mismatch
yamt Nov 10, 2020
20cde0a
arch/arm/src/tiva/common/tiva_serial.c: Fix a type mismatch
yamt Nov 10, 2020
086ee6a
arch/arm/src/str71x/str71x_serial.c: Fix a type mismatch
yamt Nov 10, 2020
92ea9e4
arch/arm/src/sama5/sam_serial.c: Fix a type mismatch
yamt Nov 10, 2020
fc146eb
arch/arm/src/sam34/sam_serial.c: Fix a type mismatch
yamt Nov 10, 2020
cc400fa
arch/arm/src/lpc2378/lpc23xx_serial.c: Fix a type mismatch
yamt Nov 10, 2020
35dc262
arch/arm/src/lpc214x/lpc214x_serial.c: Fix a type mismatch
yamt Nov 10, 2020
5d566a3
arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c: Fix a type mismatch
yamt Nov 10, 2020
2513518
arch/arm/src/lc823450/lc823450_serial.c: Fix a type mismatch
yamt Nov 10, 2020
c2921d7
arch/arm/src/kl/kl_serial.c: Fix a type mismatch
yamt Nov 10, 2020
23843f0
arch/arm/src/kinetis/kinetis_serial.c: Fix a type mismatch
yamt Nov 10, 2020
0f59d60
arch/arm/src/imx1/imx_serial.c: Fix a type mismatch
yamt Nov 10, 2020
16bac9d
arch/arm/src/cxd56xx/cxd56_serial.c: Fix a type mismatch
yamt Nov 10, 2020
44e7666
arch/arm/src/am335x/am335x_serial.c: Fix a type mismatch
yamt Nov 10, 2020
342d313
drivers/syslog/vsyslog.c: Fix a printf format warning
yamt Nov 10, 2020
b7ce6ee
arch/arm/src/stm32/stm32_sdio.c: Fix a type mismatch
yamt Nov 11, 2020
9c93de0
arch/arm/src/stm32f7/stm32_sdmmc.c: Fix a type mismatch
yamt Nov 11, 2020
2c5af1f
arch/arm/src/stm32h7/stm32_sdmmc.c: Fix a type mismatch
yamt Nov 11, 2020
c5f6d56
arch/arm/src/stm32l4/stm32l4_sdmmc.c: Fix a type mismatch
yamt Nov 11, 2020
eb333f7
stm32: Use the consistent type for stm32_dmacapable
yamt Nov 11, 2020
bb0df5f
arch/arm/src/c5471/c5471_watchdog.c: Fix printf format warnings
yamt Nov 11, 2020
1b2c67c
arch/arm/src/cxd56xx/cxd56_irq.c: Fix a type mismatch
yamt Nov 11, 2020
ad125d6
drivers/mtd/mtd_partition.c: Fix printf format warnings
yamt Nov 11, 2020
3315bc7
fs/smartfs/smartfs_procfs.c: Fix printf format warnings
yamt Nov 11, 2020
5d36ffa
arch/arm/src/sama5/sam_sdmmc.c: Fix a type mismatch
yamt Nov 13, 2020
cfac6e5
arch/arm/src/sama5/sam_udphs.c: Fix a type mismatch
yamt Nov 13, 2020
4076c91
arch/arm/src/lpc54xx/lpc54_serial.c: Fix a type mismatch
yamt Nov 13, 2020
5f3153a
arch/arm/src/sama5/sam_dbgu.c: Fix a type mismatch
yamt Nov 13, 2020
fdd2eef
drivers/audio/wm8904.c: Fix a printf format warning
yamt Nov 13, 2020
57963a0
drivers/audio/audio_null.c: Fix a printf format warning
yamt Nov 13, 2020
6bd8220
arch/arm/src/sam34/sam_udp.c: Fix a type mismatch
yamt Nov 13, 2020
32816c7
fs/procfs/fs_procfscpuload.c: Fix printf format warnings
yamt Nov 13, 2020
d6b4e27
fs/procfs/fs_procfsproc.c: Fix prinf format warnings
yamt Nov 13, 2020
257af85
arch/arm/src/samv7/sam_serial.c: Fix a type mismatch
yamt Nov 13, 2020
359cecd
arch/arm/src/samd2l2/sam_serial.c: Fix a type mismatch
yamt Nov 13, 2020
9bf9550
arch/arm/src/samd5e5/sam_serial.c: Fix a type mismatch
yamt Nov 13, 2020
9570625
net/procfs/netdev_statistics.c: Fix a printf format warning
yamt Nov 13, 2020
f41d223
drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c: Fix a printf …
yamt Nov 13, 2020
3a0d954
arch/arm/src/imxrt/imxrt_serial.c: Fix a type mismatch
yamt Nov 13, 2020
686b4dc
fs/procfs/fs_procfsiobinfo.c: Add a missing entry for can
yamt Nov 13, 2020
4f04efe
arch/arm/src/kinetis/kinetis_lpserial.c: Fix a type mismatch
yamt Nov 13, 2020
827c3e6
arch/arm/src/kinetis/kinetis_sdhc.c: Fix a type mismatch
yamt Nov 13, 2020
e63ac79
arch/arm/src/s32k1xx/s32k1xx_serial.c: Fix a type mismatch
yamt Nov 13, 2020
faad9b8
net/can/can_getsockopt.c: Fix type mismatches
yamt Nov 13, 2020
734e06c
drivers/audio/cxd56.c: Fix a printf format warning
yamt Nov 13, 2020
030fd7a
drivers/wireless/ieee802154/mrf24j40/mrf24j40_regops.c: Fix a printf …
yamt Nov 13, 2020
79c905e
drivers/audio/cs43l22.c: Fix a printf format warning
yamt Nov 13, 2020
68ca620
boards/arm/stm32/viewtool-stm32f107/src/stm32_highpri.c: Fix printf f…
yamt Nov 13, 2020
cccc2fe
net/local/local_fifo.c: Fix a few printf format warnings
yamt Nov 13, 2020
a45bb4e
boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c: Fix a printf format …
yamt Nov 13, 2020
8957be5
boards/arm/stm32/nucleo-f334r8/src/stm32_highpri.c: Fix a printf form…
yamt Nov 13, 2020
a40e697
boards/arm/stm32/nucleo-f302r8/src/stm32_highpri.c: Fix a printf form…
yamt Nov 13, 2020
d168ef5
boards/arm/stm32/stm32f429i-disco/src/stm32_highpri.c: Fix printf for…
yamt Nov 13, 2020
a7dcf28
drivers/audio/vs1053.c: Fix a printf format warning
yamt Nov 13, 2020
2b7ad08
drivers/audio/cs4344.c: Fix a printf format warning
yamt Nov 13, 2020
29a0f9c
drivers/audio/wm8776.c: Fix a printf format warning
yamt Nov 13, 2020
a0e054b
arch/arm/src/lc823450/lc823450_procfs_dvfs.c: Fix printf format warnings
yamt Nov 13, 2020
d860800
arch/arm/src/lc823450/lc823450_mtd.c: Fix a printf format warning
yamt Nov 13, 2020
dec37ee
arch/arm/src/max326xx/max32660/max32660_serial.c: Fix a printf format…
yamt Nov 13, 2020
b07d3bb
arch/arm/src/samd2l2/sam_usb.c: Fix type mismatches
yamt Nov 13, 2020
d191189
arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c: Fix a type mismatch
yamt Nov 13, 2020
34fc02f
arch/arm/src/eoss3/eoss3_serial.c: Fix a type mismatch
yamt Nov 13, 2020
97bb462
arch/arm/src/nrf52/nrf52_serial.c: Fix a type mismatch
yamt Nov 13, 2020
7146f71
arch/arm/src/xmc4/xmc4_serial.c: Fix a type mismatch
yamt Nov 13, 2020
2b62546
drivers/modem/altair/altmdm_spi.c: Fix type mismatches
yamt Nov 13, 2020
cf2dbae
boards/arm/nrf52/nrf52840-dk/src/nrf52_highpri.c: Fix a printf format…
yamt Nov 13, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions arch/arm/src/a1x/a1x_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int uart_interrupt(int irq, void *context, void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -1316,7 +1316,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint32_t rbr;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/am335x/am335x_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int uart_interrupt(int irq, void *context, void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -1142,7 +1142,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint32_t rbr;
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/src/c5471/c5471_watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ static ssize_t wdt_read(struct file *filep, char *buffer, size_t buflen)
wdinfo("buflen=%d\n", buflen);
if (buflen >= 18)
{
sprintf(buffer, "%08x %08x\n", c5471_wdt_cntl, c5471_wdt_count);
sprintf(buffer, "%08" PRIx32 " %08" PRIx32 "\n",
c5471_wdt_cntl, c5471_wdt_count);
return 18;
}

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/cxd56xx/cxd56_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static inline void cxd56_prioritize_syscall(int priority)
}
#endif

static int excinfo(int irq, uint32_t *regaddr, uint32_t *bit)
static int excinfo(int irq, uintptr_t *regaddr, uint32_t *bit)
{
*regaddr = NVIC_SYSHCON;
switch (irq)
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/cxd56xx/cxd56_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg);
static bool up_rxflowcontrol(FAR struct uart_dev_s *dev,
unsigned int nbuffered, bool upper);
#endif
static int up_receive(FAR struct uart_dev_s *dev, FAR uint32_t *status);
static int up_receive(FAR struct uart_dev_s *dev, FAR unsigned int *status);
static void up_rxint(FAR struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(FAR struct uart_dev_s *dev);
static void up_send(FAR struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -916,7 +916,7 @@ static int up_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(FAR struct uart_dev_s *dev, FAR uint32_t *status)
static int up_receive(FAR struct uart_dev_s *dev, FAR unsigned int *status)
{
FAR struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint32_t rbr;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/dm320/dm320_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupt(int irq, void *context, void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -592,7 +592,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint16_t dtrr;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/efm32/efm32_leserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static int efm32_attach(struct uart_dev_s *dev);
static void efm32_detach(struct uart_dev_s *dev);
static int efm32_interrupt(int irq, void *context, FAR void *arg);
static int efm32_ioctl(struct file *filep, int cmd, unsigned long arg);
static int efm32_receive(struct uart_dev_s *dev, uint32_t *status);
static int efm32_receive(struct uart_dev_s *dev, unsigned int *status);
static void efm32_rxint(struct uart_dev_s *dev, bool enable);
static bool efm32_rxavailable(struct uart_dev_s *dev);
static void efm32_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -583,7 +583,7 @@ static int efm32_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int efm32_receive(struct uart_dev_s *dev, uint32_t *status)
static int efm32_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct efm32_leuart_s *priv = (struct efm32_leuart_s *)dev->priv;
uint32_t rxdatax;
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/src/eoss3/eoss3_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int eoss3_attach(struct uart_dev_s *dev);
static void eoss3_detach(struct uart_dev_s *dev);
static int eoss3_interrupt(int irq, void *context, FAR void *arg);
static int eoss3_ioctl(struct file *filep, int cmd, unsigned long arg);
static int eoss3_receive(struct uart_dev_s *dev, uint32_t *status);
static int eoss3_receive(struct uart_dev_s *dev, unsigned int *status);
static void eoss3_rxint(struct uart_dev_s *dev, bool enable);
static bool eoss3_rxavailable(struct uart_dev_s *dev);
static void eoss3_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -414,7 +414,7 @@ static int eoss3_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int eoss3_receive(struct uart_dev_s *dev, uint32_t *status)
static int eoss3_receive(struct uart_dev_s *dev, unsigned int *status)
{
*status = getreg32(EOSS3_UART_RSR_ECR);
return (getreg32(EOSS3_UART_DR) & UART_DR_DATA_MASK);
Expand Down Expand Up @@ -633,4 +633,4 @@ int up_putc(int ch)
return ch;
}

#endif /* USE_SERIALDRIVER */
#endif /* USE_SERIALDRIVER */
4 changes: 2 additions & 2 deletions arch/arm/src/imx1/imx_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupt(int irq, void *context, FAR void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -931,7 +931,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint32_t rxd0;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/imx6/imx_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ static int imx_attach(struct uart_dev_s *dev);
static void imx_detach(struct uart_dev_s *dev);
static int imx_interrupt(int irq, void *context, FAR void *arg);
static int imx_ioctl(struct file *filep, int cmd, unsigned long arg);
static int imx_receive(struct uart_dev_s *dev, uint32_t *status);
static int imx_receive(struct uart_dev_s *dev, unsigned int *status);
static void imx_rxint(struct uart_dev_s *dev, bool enable);
static bool imx_rxavailable(struct uart_dev_s *dev);
static void imx_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -747,7 +747,7 @@ static int imx_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int imx_receive(struct uart_dev_s *dev, uint32_t *status)
static int imx_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct imx_uart_s *priv = (struct imx_uart_s *)dev->priv;
uint32_t rxd0;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/imxrt/imxrt_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ static int imxrt_attach(struct uart_dev_s *dev);
static void imxrt_detach(struct uart_dev_s *dev);
static int imxrt_interrupt(int irq, void *context, FAR void *arg);
static int imxrt_ioctl(struct file *filep, int cmd, unsigned long arg);
static int imxrt_receive(struct uart_dev_s *dev, uint32_t *status);
static int imxrt_receive(struct uart_dev_s *dev, unsigned int *status);
static void imxrt_rxint(struct uart_dev_s *dev, bool enable);
static bool imxrt_rxavailable(struct uart_dev_s *dev);
static void imxrt_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -1385,7 +1385,7 @@ static int imxrt_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int imxrt_receive(struct uart_dev_s *dev, uint32_t *status)
static int imxrt_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct imxrt_uart_s *priv = (struct imxrt_uart_s *)dev->priv;
uint32_t rxd;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/kinetis/kinetis_lpserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ static int kinetis_attach(struct uart_dev_s *dev);
static void kinetis_detach(struct uart_dev_s *dev);
static int kinetis_interrupt(int irq, void *context, void *arg);
static int kinetis_ioctl(struct file *filep, int cmd, unsigned long arg);
static int kinetis_receive(struct uart_dev_s *dev, uint32_t *status);
static int kinetis_receive(struct uart_dev_s *dev, unsigned int *status);
static void kinetis_rxint(struct uart_dev_s *dev, bool enable);
static bool kinetis_rxavailable(struct uart_dev_s *dev);
#ifdef CONFIG_SERIAL_IFLOWCONTROL
Expand Down Expand Up @@ -1076,7 +1076,7 @@ static int kinetis_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int kinetis_receive(struct uart_dev_s *dev, uint32_t *status)
static int kinetis_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct kinetis_dev_s *priv = (struct kinetis_dev_s *)dev->priv;
uint32_t regval;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/kinetis/kinetis_sdhc.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ static void kinetis_blocksetup(FAR struct sdio_dev_s *dev,
static int kinetis_recvsetup(FAR struct sdio_dev_s *dev,
FAR uint8_t *buffer, size_t nbytes);
static int kinetis_sendsetup(FAR struct sdio_dev_s *dev,
FAR const uint8_t *buffer, uint32_t nbytes);
FAR const uint8_t *buffer, size_t nbytes);
#endif

static int kinetis_cancel(FAR struct sdio_dev_s *dev);
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/kinetis/kinetis_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static int up_interrupts(int irq, void *context, FAR void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static void up_rxint(struct uart_dev_s *dev, bool enable);
#if !defined(SERIAL_HAVE_ALL_DMA)
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static bool up_rxavailable(struct uart_dev_s *dev);
#endif
#ifdef CONFIG_SERIAL_IFLOWCONTROL
Expand Down Expand Up @@ -1567,7 +1567,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
****************************************************************************/

#if !defined(SERIAL_HAVE_ALL_DMA)
static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint8_t s1;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/kl/kl_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupts(int irq, void *context, void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -635,7 +635,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint8_t s1;
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/src/lc823450/lc823450_mtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include <sys/types.h>

#include <inttypes.h>
#include <stdio.h>
#include <stdint.h>
#include <assert.h>
Expand Down Expand Up @@ -788,7 +789,7 @@ int lc823450_mtd_uninitialize(uint32_t devno)
return -ENODEV;
}

snprintf(devname, 16, "/dev/mtdblock%d", devno);
snprintf(devname, 16, "/dev/mtdblock%" PRId32, devno);

#ifdef CONFIG_MTD_REGISTRATION
mtd_unregister(g_mtdmaster[ch]);
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/src/lc823450/lc823450_procfs_dvfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <sys/types.h>
#include <sys/stat.h>

#include <inttypes.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
Expand Down Expand Up @@ -234,7 +235,7 @@ static ssize_t dvfs_read(FAR struct file *filep, FAR char *buffer,

linesize = snprintf(priv->line,
DVFS_LINELEN,
"fstat %d %d %d \n",
"fstat %" PRId32 " %" PRId32 " %" PRId32 " \n",
g_dvfs_freq_stat[0],
g_dvfs_freq_stat[1],
g_dvfs_freq_stat[2]);
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/lc823450/lc823450_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupt(int irq, void *context, FAR void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -845,7 +845,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint32_t rxd;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/lpc17xx_40xx/lpc17_40_sdcard.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ static int lpc17_40_sendcmd(FAR struct sdio_dev_s *dev, uint32_t cmd,
static int lpc17_40_recvsetup(FAR struct sdio_dev_s *dev,
FAR uint8_t *buffer, size_t nbytes);
static int lpc17_40_sendsetup(FAR struct sdio_dev_s *dev,
FAR const uint8_t *buffer, uint32_t nbytes);
FAR const uint8_t *buffer, size_t nbytes);
static int lpc17_40_cancel(FAR struct sdio_dev_s *dev);

static int lpc17_40_waitresponse(FAR struct sdio_dev_s *dev, uint32_t cmd);
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/lpc17xx_40xx/lpc17_40_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupt(int irq, void *context, void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -1459,7 +1459,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint32_t rbr;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/lpc214x/lpc214x_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupt(int irq, void *context, void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -621,7 +621,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint8_t rbr;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/lpc2378/lpc23xx_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupt(int irq, void *context, void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t * status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -740,7 +740,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t * status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
struct up_dev_s *priv = (struct up_dev_s *)dev->priv;
uint8_t rbr;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/src/lpc31xx/lpc31_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ static int up_attach(struct uart_dev_s *dev);
static void up_detach(struct uart_dev_s *dev);
static int up_interrupt(int irq, void *context, FAR void *arg);
static int up_ioctl(struct file *filep, int cmd, unsigned long arg);
static int up_receive(struct uart_dev_s *dev, uint32_t *status);
static int up_receive(struct uart_dev_s *dev, unsigned int *status);
static void up_rxint(struct uart_dev_s *dev, bool enable);
static bool up_rxavailable(struct uart_dev_s *dev);
static void up_send(struct uart_dev_s *dev, int ch);
Expand Down Expand Up @@ -640,7 +640,7 @@ static int up_ioctl(struct file *filep, int cmd, unsigned long arg)
*
****************************************************************************/

static int up_receive(struct uart_dev_s *dev, uint32_t *status)
static int up_receive(struct uart_dev_s *dev, unsigned int *status)
{
uint32_t rbr;

Expand Down
Loading