lkml.org 
[lkml]   [2018]   [Apr]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.16 128/196] um: Compile with modern headers
    Date
    4.16-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Jason A. Donenfeld <Jason@zx2c4.com>

    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 | 1 +
    arch/um/os-Linux/signal.c | 1 +
    arch/x86/um/stub_segv.c | 1 +
    3 files changed, 3 insertions(+)

    --- a/arch/um/os-Linux/file.c
    +++ b/arch/um/os-Linux/file.c
    @@ -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>
    --- a/arch/um/os-Linux/signal.c
    +++ b/arch/um/os-Linux/signal.c
    @@ -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,
    --- a/arch/x86/um/stub_segv.c
    +++ b/arch/x86/um/stub_segv.c
    @@ -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)

    \
     
     \ /
      Last update: 2018-04-22 17:53    [W:3.202 / U:0.196 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site