xtensa: ISS: avoid struct timeval
authorArnd Bergmann <arnd@arndb.de>
Fri, 25 Oct 2019 20:30:39 +0000 (22:30 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 18 Dec 2019 17:07:31 +0000 (18:07 +0100)
'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: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/xtensa/platforms/iss/include/platform/simcall.h

index 2ba4585..4e2a483 100644 (file)
@@ -113,9 +113,9 @@ static inline int simc_write(int fd, const void *buf, size_t count)
 
 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)