Commit 37e86e0f authored by Arnd Bergmann's avatar Arnd Bergmann

xtensa: ISS: avoid struct timeval

'struct timeval' will get removed from the kernel, change the one
user in arch/xtensa to avoid referencing it, by using a fixed-length
array instead.
Acked-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 5311f707
...@@ -113,9 +113,9 @@ static inline int simc_write(int fd, const void *buf, size_t count) ...@@ -113,9 +113,9 @@ static inline int simc_write(int fd, const void *buf, size_t count)
static inline int simc_poll(int fd) static inline int simc_poll(int fd)
{ {
struct timeval tv = { .tv_sec = 0, .tv_usec = 0 }; long timeval[2] = { 0, 0 };
return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&tv); return __simc(SYS_select_one, fd, XTISS_SELECT_ONE_READ, (int)&timeval);
} }
static inline int simc_lseek(int fd, uint32_t off, int whence) static inline int simc_lseek(int fd, uint32_t off, int whence)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment