um: Compile with modern headers
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 14 Dec 2017 02:23:37 +0000 (03:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:36:33 +0000 (09:36 +0200)
commit 530ba6c7cb3c22435a4d26de47037bb6f86a5329 upstream.

Recent libcs have gotten a bit more strict, so we actually need to
include the right headers and use the right types. This enables UML to
compile again.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Cc: stable@vger.kernel.org
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/um/os-Linux/file.c
arch/um/os-Linux/signal.c
arch/x86/um/stub_segv.c

index 2db18cbbb0eaba83aba45bd809ba4ed0834e80b1..c0197097c86e5075c146ad17142895e70b9fe25c 100644 (file)
@@ -12,6 +12,7 @@
 #include <sys/mount.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 #include <sys/un.h>
 #include <sys/types.h>
 #include <os.h>
index a86d7cc2c2d82fa7d0e5c13d1f3188efcd660fba..fa29e92a16d1a8f4cbbdfd9a0dfe8a33a4a10151 100644 (file)
@@ -16,6 +16,7 @@
 #include <os.h>
 #include <sysdep/mcontext.h>
 #include <um_malloc.h>
+#include <sys/ucontext.h>
 
 void (*sig_info[NSIG])(int, struct siginfo *, struct uml_pt_regs *) = {
        [SIGTRAP]       = relay_signal,
index 1518d2805ae81733eb0629989f4d39ae595502c2..41780110252ee33479eb7262dfd39b632f1e7d42 100644 (file)
@@ -6,6 +6,7 @@
 #include <sysdep/stub.h>
 #include <sysdep/faultinfo.h>
 #include <sysdep/mcontext.h>
+#include <sys/ucontext.h>
 
 void __attribute__ ((__section__ (".__syscall_stub")))
 stub_segv_handler(int sig, siginfo_t *info, void *p)