]> git.baikalelectronics.ru Git - kernel.git/commit
sh: include linux/time_types.h for sockios
authorArnd Bergmann <arnd@arndb.de>
Sat, 23 May 2020 05:23:02 +0000 (22:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 23 May 2020 17:26:31 +0000 (10:26 -0700)
commit404c05d1af38037647b5c1c610f70c2e4223b795
tree08f49f8c08268a3f3bc638939c8cab987dad8030
parentd01cf2b50535d3575e802c3faef57ec8c7f6de30
sh: include linux/time_types.h for sockios

Using the socket ioctls on arch/sh (and only there) causes build time
problems when __kernel_old_timeval/__kernel_old_timespec are not already
visible to the compiler.

Add an explict include line for the header that defines these
structures.

Fixes: 3d28bac07f4f ("y2038: sh: remove timeval/timespec usage from headers")
Fixes: d5bedf892fe7 ("net: socket: implement 64-bit timestamps")
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Cc: <stable@vger.kernel.org>
Link: http://lkml.kernel.org/r/20200519131327.1836482-1-arnd@arndb.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sh/include/uapi/asm/sockios.h