提交 1f092da9 编写于 作者: B bernard 提交者: guo

fix compiling warning.

上级 401ad164
......@@ -1135,7 +1135,7 @@ static rt_err_t rt_serial_control(struct rt_device *dev,
break;
case TCFLSH:
{
int queue = (int)args;
int queue = (int)(rt_ubase_t)args;
_tc_flush(serial, queue);
}
......
......@@ -13,6 +13,7 @@
#include <unistd.h>
#include <sys/errno.h>
#include "termios.h"
#include <rtthread.h>
int tcgetattr(int fd, struct termios *tio)
{
......@@ -95,12 +96,12 @@ int tcsendbreak(int fd, int dur)
int tcflush(int fd, int queue)
{
return ioctl(fd, TCFLSH, (void*)queue);
return ioctl(fd, TCFLSH, (void*)(rt_ubase_t)queue);
}
int tcflow(int fd, int action)
{
return ioctl(fd, TCXONC, (void*)action);
return ioctl(fd, TCXONC, (void*)(rt_ubase_t)action);
}
/**
......
......@@ -564,6 +564,7 @@ int rt_hw_mmu_ioremap_init(rt_mmu_info *mmu_info, void *v_address, size_t size)
return 0;
}
#ifdef RT_USING_SMART
static size_t find_vaddr(rt_mmu_info *mmu_info, int pages)
{
size_t loop_pages;
......@@ -607,7 +608,6 @@ static size_t find_vaddr(rt_mmu_info *mmu_info, int pages)
return 0;
}
#ifdef RT_USING_SMART
static int check_vaddr(rt_mmu_info *mmu_info, void *va, int pages)
{
size_t loop_va;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册