• James Hogan's avatar
    MIPS: Fix uapi include in exported asm/siginfo.h · 4a16f41b
    James Hogan authored
    [ Upstream commit 987e5b83 ]
    
    Since commit 8cb48fe1 ("MIPS: Provide correct siginfo_t.si_stime"),
    MIPS' uapi/asm/siginfo.h has included uapi/asm-generic/siginfo.h
    directly before defining MIPS' struct siginfo, in order to get the
    necessary definitions needed for the siginfo struct without the generic
    copy_siginfo() hitting compiler errors due to struct siginfo not yet
    being defined.
    
    Now that the generic copy_siginfo() is moved out to linux/signal.h we
    can safely include asm-generic/siginfo.h before defining the MIPS
    specific struct siginfo, which avoids the uapi/ include as well as
    breakage due to generic copy_siginfo() being defined before struct
    siginfo.
    Reported-by: default avatarChristopher Ferris <cferris@google.com>
    Fixes: 8cb48fe1 ("MIPS: Provide correct siginfo_t.si_stime")
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Cc: Petr Malat <oss@malat.biz>
    Cc: linux-mips@linux-mips.org
    Cc: <stable@vger.kernel.org> # 4.0-
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
    4a16f41b
siginfo.h 2.99 KB